Template:Ordinal: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
use absolute value to determine suffix, per request
Ookami (talk | contribs)
m 18 revisions imported
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{{1}}}{{{{{|safesubst:}}}#ifeq:{{{sup}}}|yes
{{SAFESUBST:<noinclude />#invoke:Ordinal|ordinal}}<noinclude>
|<sup>
}}{{{{{|safesubst:}}}#ifeq:{{{2}}}|d
|d
|{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:abs({{{1}}}) mod 100}}
  |11|12|13=th
  |{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:abs{{{1}}} mod 10}}
  |1=st
  |2=nd
  |3=rd
  |th
  }}
}}
}}{{{{{|safesubst:}}}#ifeq:{{{sup}}}|yes
|</sup>
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 17:28, 3 September 2020

{{{1}}}st