Template:Ordinal: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
use absolute value to determine suffix, per request
meta>Tra
change how |d is handled, per talk
Line 1: Line 1:
{{{1}}}{{{{{|safesubst:}}}#ifeq:{{{sup}}}|yes
{{{1}}}{{{{{|safesubst:}}}#ifeq:{{{sup}}}|yes
  |<sup>
  |<sup>
}}{{{{{|safesubst:}}}#ifeq:{{{2}}}|d
}}{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:abs({{{1}}}) mod 100}}
|d
|{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:abs({{{1}}}) mod 100}}
   |11|12|13=th
   |11|12|13=th
   |{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:abs{{{1}}} mod 10}}
   |{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:abs{{{1}}} mod 10}}
   |1=st
   |1=st
   |2=nd
   |2={{{{{|safesubst:}}}#ifeq:{{{2|}}}|d|d|nd}}
   |3=rd
   |3={{{{{|safesubst:}}}#ifeq:{{{2|}}}|d|d|rd}}
   |th
   |th
   }}
   }}
  }}
  }}{{{{{|safesubst:}}}#ifeq:{{{sup}}}|yes
}}{{{{{|safesubst:}}}#ifeq:{{{sup}}}|yes
  |</sup>
  |</sup>
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 16:51, 21 March 2012

{{{1}}}th