Template:Range
Appearance
From Meta, a Wikimedia project coordination wiki
Formats a number range according to language data.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Lower number | 1 | Lowest number in the range
| Number | required |
| Higher number | 2 | Highest number in the range
| Number | required |
| Unit | 3 | Unit name or symbol to display
| String | suggested |
| Is a currency | cur | True if unit is a currency. Do not set else.
| Unknown | optional |
| Language code | lang | Do not set to use page language.
| String | optional |
Examples
[edit ]{{range|5|50|$|cur=true}}→ 5ドル–50{{range|5|50|$|cur=true|lang=fr}}→ 5 – 50 $
Dependencies
[edit ]Internationalization range data must be up to date (else, this template will default to English data).
Uses Module:I18n/range.
The above documentation is transcluded from Template:Range/doc. (edit | history)
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.