Difference between revisions of "Template:Place"
Jump to navigation
Jump to search
(Created page with "{{#switch:{{#sub:{{{1|}}}|-2|}}|11|12|13={{{1|}}}th|#default={{#switch:{{#sub:{{{1|}}}|-1|}}|1={{{1|}}}st|2={{{1|}}}nd|3={{{1|}}}rd|#default={{{1|}}}th}}}}") |
|||
Line 1: | Line 1: | ||
− | {{#switch:{{#sub:{{{1|}}}|-2|}}|11|12|13={{{1|}}}th|#default={{#switch:{{#sub:{{{1|}}}|-1|}}|1={{{1|}}}st|2={{{1|}}}nd|3={{{1|}}}rd|#default={{{1|}}}th}}}} | + | <includeonly>{{#switch:{{#sub:{{{1|}}}|-2|}}|11|12|13={{{1|}}}th|#default={{#switch:{{#sub:{{{1|}}}|-1|}}|1={{{1|}}}st|2={{{1|}}}nd|3={{{1|}}}rd|#default={{{1|}}}th}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 09:28, 20 April 2020
(view - edit) Documentation
Template:Place returns a given number as a placing with the appropriate suffix.
Usage
You type | You get |
---|---|
{{place|1}}
|
1st |
{{place|22}}
|
22nd |
{{place|33}}
|
33rd |
{{place|111}}
|
111th |
Optional parameters
|sup=
- If set to 1, the template will return the suffix as subscript.
- e.g.
{{place|5|sup=1}}
returns 5th
- e.g.
|sep=
- If set to a symbol, the template will use it as a thousands separator.
- e.g.
{{place|1000|sep=,}}
returns 1000th
- e.g.