Template:Ordinal/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jimp
No edit summary
meta>Leolaursen
m {{Documentation subpage}}
Line 1: Line 1:
<noinclude{{Documentation subpage}}</noinclude>
This template will add the appropriate ordinal suffix to a given positive interger.
This template will add the appropriate ordinal suffix to a given positive interger.
:''<code><nowiki>{{Ordinal|101}}</nowiki></code>'', for example, produces ''{{Ordinal|101}}''.
:''<code><nowiki>{{Ordinal|101}}</nowiki></code>'', for example, produces ''{{Ordinal|101}}''.
Line 8: Line 9:
:''<code><nowiki>{{Ordinal|101|d}}</nowiki></code>'', for example, produces ''{{Ordinal|101|d}}''.
:''<code><nowiki>{{Ordinal|101|d}}</nowiki></code>'', for example, produces ''{{Ordinal|101|d}}''.


<includeonly>
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Mathematical function templates|{{PAGENAME}}]]
[[Category:Mathematical function templates|{{PAGENAME}}]]
</includeonly>

Revision as of 13:29, 7 January 2008

<noinclude

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

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

For superscripted suffixes set a second parameter to sup.

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

For the -d suffixes used in the legal field (e.g. 3d or 22d) set a second parameter to d.

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