Template:Range
{{{1}}}-{{{2}}}
Documentation for Range
| This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Range/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: en, es, pt-br (add) |
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
yesto add a space on either side of the dash. Does not affectes,ja, andzh-hanttranslations.
- ndash (optional)
- Add it set to
yesto turn the small dash (-) into a medium dash (–). Does not affectes,ja, andzh-hanttranslations.
- from-to (optional)
- Add it set to
yesto 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