Module:Ordinal/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{documentation| | {{documentation|{{dochead|header=dualuse}} | ||
{{dochead|header= | |||
This module automatically determines the ordinal of a given number (i.e. {{nowrap|1 → first|2 → second|3 → third}}, etc.). | This module automatically determines the ordinal of a given number (i.e. {{nowrap|1 → first|2 → second|3 → third}}, etc.). | ||
On templates, you can use <code><nowiki>{{Ordinal}}</nowiki></code>. | On templates, you can use <code><nowiki>{{Ordinal}}</nowiki></code>. | ||
On modules, you can include <syntaxhighlight inline lang="lua">local ordinal= require("Module:Ordinal")._ordinal</syntaxhighlight>.{{ | On modules, you can include <syntaxhighlight inline lang="lua">local ordinal= require("Module:Ordinal")._ordinal</syntaxhighlight>. | ||
{{module introspection}} | |||
}} | }} | ||
Latest revision as of 06:15, 31 October 2025
- This module may be invoked by templates using its corresponding template Template:Ordinal, or used directly from other modules.
This module automatically determines the ordinal of a given number (i.e. 1 → first, 2 → second, 3 → third, etc.).
On templates, you can use {{Ordinal}}.
On modules, you can include local ordinal= require("Module:Ordinal")._ordinal.
To see introspection summary, see this module's main page.