Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Ordinal/doc: Difference between revisions

Template page
{{Lang links|Template:Ordinal}}
No edit summary
Line 1: Line 1:
<noinclude>{{Documentation subpage}}</noinclude>
{{TemplateBox
This template will add the appropriate ordinal suffix to a given positive integer.
|1=1
|1d=positive integer number
|1def=
|1stat=
|2=style
|2d=Presentation style. Different options for different languages:
* In English there is "style=d" adding ''-d'' suffixes to all numbers. Used in the legal field (e.g. ''3d'' or ''22d'') .
:''<code><nowiki>{{Ordinal|101|d}}</nowiki></code>'', for example, produces ''{{Ordinal|101|d}}''.
* In French "style=roman" presenting the number as roman numeral
|2def=
|2stat=optional-
|3=gender
|3d=gender is used in French and Polish language versions. Genders: m for male, f for female and n for neuter.
|3def=m
|3stat=optional-
|4=lang
|4d=language
|4def=<nowiki>{{int:Lang}}</nowiki>
|4stat=optional-
|name=Ordinal
|desc=This template will add the appropriate ordinal suffix to a given positive integer.
:''<code><nowiki>{{Ordinal|101}}</nowiki></code>'', for example, produces ''{{Ordinal|101}}''.
:''<code><nowiki>{{Ordinal|101}}</nowiki></code>'', for example, produces ''{{Ordinal|101}}''.
 
|namespace=all
For the ''-d'' suffixes used in the legal field (e.g. ''3d'' or ''22d'') set a second parameter to ''d''.
|usergroup=all
:''<code><nowiki>{{Ordinal|101|d}}</nowiki></code>'', for example, produces ''{{Ordinal|101|d}}''.
|placement=
 
|usage-notes=
----
|type=
{{Lang links|Template:Ordinal}}
|example=
 
|i18n-method=LangSwitch
|i18n-desc=
|i18n-mediawiki-msg=
|seealso=
|setscats=
|lines=1
|shorthand=
|relieson=
}}
<includeonly>
<includeonly>
[[Category:Mathematical function templates|{{PAGENAME}}]]
[[Category:Mathematical function templates|{{PAGENAME}}]]

Revision as of 19:41, 21 April 2011

This template will add the appropriate ordinal suffix to a given positive integer.

{{Ordinal|101}}, for example, produces 101st.

Usage

{{Ordinal |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1positive integer numberemptyoptional
stylePresentation style. Different options for different languages:
  • In English there is "style=d" adding -d suffixes to all numbers. Used in the legal field (e.g. 3d or 22d) .
{{Ordinal|101|d}}, for example, produces 101st.
  • In French "style=roman" presenting the number as roman numeral
emptyoptional
gendergender is used in French and Polish language versions. Genders: m for male, f for female and n for neuter.moptional
langlanguage{{int:Lang}}optional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Cookies help us deliver our services. By using our services, you agree to our use of cookies.