Template:Ordinal: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
simplify code and add sup option
meta>MSGJ
use absolute value to determine suffix, per request
Line 3: Line 3:
}}{{{{{|safesubst:}}}#ifeq:{{{2}}}|d
}}{{{{{|safesubst:}}}#ifeq:{{{2}}}|d
  |d
  |d
  |{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:{{{1}}} mod 100}}
  |{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:abs({{{1}}}) mod 100}}
   |11|12|13=th
   |11|12|13=th
   |{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:{{{1}}} mod 10}}
   |{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr:abs{{{1}}} mod 10}}
   |1=st
   |1=st
   |2=nd
   |2=nd

Revision as of 05:28, 27 July 2010

{{{1}}}th