Template documentation

Formats a number range according to language data.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Lower number1

Lowest number in the range

Example
0
Numberrequired
Higher number2

Highest number in the range

Example
2500
Numberrequired
Unit3

Unit name or symbol to display

Example
$
Stringsuggested
Is a currencycur

True if unit is a currency. Do not set else.

Suggested values
true
Example
true
Unknownoptional
Language codelang

Do not set to use page language.

Example
fr
Stringoptional

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.