Template:Place/doc

From comp.tf
Jump to navigation Jump to search

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

Usage[edit]

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