Template:Ordinal: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zzyzx11
(Undid revision 372813547 by HJ Mitchell (talk) - it seemed to break all pages using {{day}})
meta>MSGJ
(simplify code and add sup option)
Line 1: Line 1:
<includeonly>{{{1}}}{{ {{{|safesubst:}}}Ordinal/{{{2|}}}th|{{{1}}}}}</includeonly><noinclude>
{{{1}}}{{{{{|safesubst:}}}#ifeq:{{{sup}}}|yes
{{Documentation}}
|<sup>
}}{{{{{|safesubst:}}}#ifeq:{{{2}}}|d
|d
|{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:{{{1}}} mod 100}}
  |11|12|13=th
  |{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:{{{1}}} mod 10}}
  |1=st
  |2=nd
  |3=rd
  |th
  }}
}}
}}{{{{{|safesubst:}}}#ifeq:{{{sup}}}|yes
|</sup>
}}<noinclude>
{{documentation}}
</noinclude>
</noinclude>

Revision as of 10:15, 12 July 2010

{{{1}}}th