Template:Place/doc

From comp.tf
< Template:Place
Revision as of 09:34, 20 April 2020 by Garlic (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Place returns a given number as a placing with the appropriate suffix.

Usage

You type You get
{{place|1}} 1th
{{place|22}} 22th
{{place|33}} 33th
{{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
|sep=
  • If set to a symbol, the template will use it as a thousands separator.
    • e.g. {{place|5|sep=,}} returns {{#sub:5|-21|-18}},{{#sub:5|-18|-15}},{{#sub:5|-15|-12}},{{#sub:5|-12|-9}},{{#sub:5|-9|-6}},{{#sub:5|-6|-3}},{{#sub:5|-3|}}th