Difference between revisions of "Template:Place/doc"
Jump to navigation
Jump to search
(Created page with "'''Template:Place''' returns a given number as a placing with the appropriate suffix. == Usage == {| class="wikitable" ! You type ! You get |- |<code><nowiki>{{place|1}}</no...") |
|||
Line 26: | Line 26: | ||
;<code>|sep=</code> | ;<code>|sep=</code> | ||
* If set to a symbol, the template will use it as a [[Template:Thousands separator|thousands separator]]. | * If set to a symbol, the template will use it as a [[Template:Thousands separator|thousands separator]]. | ||
− | ** e.g. <code><nowiki>{{place| | + | ** e.g. <code><nowiki>{{place|1000|sep=,}}</nowiki></code> returns {{place|1000|sep=,}} |
Latest revision as of 09:39, 20 April 2020
Template:Place returns a given number as a placing with the appropriate suffix.
Usage[edit]
You type | You get |
---|---|
{{place|1}}
|
1st |
{{place|22}}
|
22nd |
{{place|33}}
|
33rd |
{{place|111}}
|
111th |
Optional parameters[edit]
|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 1,000th
- e.g.