FANDOM


(Created page with "<includeonly>{{#switch:{{#expr:{{{1|}}} mod 100 }}|11|12|13 = {{{1|}}}th|{{#switch:{{#expr:{{{1|}}} mod 10 }}|1 = {{{1|}}}st|2 = {{{1|}}}nd|3 = {{{1|}}}rd|{{{1|}}}th}}}}</include...")
 
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{#expr:{{{1|}}} mod 100 }}|11|12|13 = {{{1|}}}th|{{#switch:{{#expr:{{{1|}}} mod 10 }}|1 = {{{1|}}}st|2 = {{{1|}}}nd|3 = {{{1|}}}rd|{{{1|}}}th}}}}</includeonly>
+
{{#if:{{{1|}}}
  +
|{{#iferror:{{#expr:{{{1|}}}}}
  +
|<span style="color:#f00;">(Invalid variable defined for 'Template:Ordinal')</span>
  +
|{{#ifexpr:{{{1|}}} - {{#expr:{{{1|}}} round0}} = 0 and {{{1|}}} > 0
  +
|{{{1|}}}{{#switch:{{#expr:{{{1|}}} mod 100}}
  +
|11|12|13 = th
  +
|{{#switch:{{#expr:{{{1|}}} mod 10}}
  +
|1 = st
  +
|2 = nd
  +
|3 = rd
  +
|#default = th
  +
}}
  +
}}
  +
|<span style="color:#f00;">(Invalid variable defined for 'Template:Ordinal')</span>
  +
}}
  +
}}
  +
|<span style="color:#f00;">(No variable defined for 'Template:Ordinal')</span>
  +
}}

Latest revision as of 15:12, May 15, 2012

(No variable defined for 'Template:Ordinal')

Community content is available under CC-BY-SA unless otherwise noted.