Difference between revisions of "Template:Infobox number/box"
Jump to navigation
Jump to search
imported>R'n'B (revert; I can't get this to work, so will just have to deal with incorrect links for now) |
imported>Ianblair23 (links) |
||
| Line 14: | Line 14: | ||
| subheader = {{Infobox number/range|{{{number}}}}} | | subheader = {{Infobox number/range|{{{number}}}}} | ||
| − | | label1 = [[Cardinal | + | | label1 = [[Cardinal numeral|Cardinal]] |
| data1 = {{#if: {{{cardinal|}}} | {{{cardinal}}} | {{#invoke:ConvertNumeric|numeral_to_english|{{{number}}}|sp=us}} }} | | data1 = {{#if: {{{cardinal|}}} | {{{cardinal}}} | {{#invoke:ConvertNumeric|numeral_to_english|{{{number}}}|sp=us}} }} | ||
| − | | label2 = [[Ordinal | + | | label2 = [[Ordinal numeral|Ordinal]] |
| data2 = {{#if: {{{ordinal|}}} | {{{ordinal}}} | {{Ordinal|{{{number}}}}}<br />({{#if:{{{ordinal text|}}}|{{{ordinal text}}}|{{#invoke:convertNumeric|numeral_to_english|{{{number}}}|ord=on|sp=us}} }})}} | | data2 = {{#if: {{{ordinal|}}} | {{{ordinal}}} | {{Ordinal|{{{number}}}}}<br />({{#if:{{{ordinal text|}}}|{{{ordinal text}}}|{{#invoke:convertNumeric|numeral_to_english|{{{number}}}|ord=on|sp=us}} }})}} | ||
Revision as of 11:30, 15 October 2019
50px Template documentation
This subtemplate is used to generate the infobox for {{infobox number}}. By using a subtemplate, it reduces the repetition in the code by using a single computation of the value for |number= by {{infobox number}}, which is passed to this subtemplate. This subtemplate should by used only by {{infobox number}}, and not used directly.
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |