Template:Range

From Team Fortress Wiki
Jump to: navigation, search

{{{1}}}-{{{2}}}

Documentation for Range

For inserting the ranges of things, such as the duration of an event or the min/max damage outputs of a weapon.

Syntax

{{Range| 1 | 2 }}

Parameters

1, 2
Replace with any text.
nbsp (optional)
Add it set to yes to add a space on either side of the dash. Does not affect es, ja, and zh-hant translations.
ndash (optional)
Add it set to yes to turn the small dash (-) into a medium dash (–). Does not affect es, ja, and zh-hant translations.
from-to (optional)
Add it set to yes to change the format from "1-2" to "From 1 to 2".

Examples

  • {{range|50|150}}
In a page in English, it generates 50-150
In a page in Spanish, it generates 50 a 150


  • {{range|50|150|nbsp=yes|ndash=yes}}
In a page in English, it generates 50 – 150
In a page in Spanish, it generates 50 a 150


  • {{range|{{Patch name|10|1|2019|date-only=yes}}|{{Patch name|11|7|2019|date-only=yes}}|from-to=yes}}
In a page in English, it generates From October 1, 2019 to November 7, 2019
In a page in Spanish, it generates De 1 de octubre de 2019 a 7 de noviembre de 2019