Template:Ordinal/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SAE1962
m First <noinclude> wasn't closed!
meta>Julian Mendez
m +ia
Line 12: Line 12:
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Mathematical function templates|{{PAGENAME}}]]
[[Category:Mathematical function templates|{{PAGENAME}}]]
[[ia:Patrono:Ordinal]]
</includeonly>
</includeonly>

Revision as of 22:14, 15 June 2008

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

{{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.