Template:Convert/spell
nine thousand five hundred point one two metres (31,168.4 ft)
The converter Template:Convert/spell will convert an amount and display the amount spelled in words. The resulting 2nd amount will be shown using a numeral ("330 ft"), unless option words=out is used. To set the rounding precision, the output unit must be specified, or put "0" to default.
Use case=u to show an upper-case letter (capital letter) in the number. The template allows the same parameters as Template:Convert, and so it allows abbreviation abbr=in or abbr=out or abbr=none, wikilinks lk=in or lk=out, and adjective mode adj=on or adj=mid. The separator can also be a semicolon: disp=semi, disp=or, disp=comma, disp=x (customized), disp=br (brackets), disp=b (default as parentheses), disp=2 (or disp=out) and disp=# (or disp=number). ExamplesThe examples show various options of conversions:
Display types: disp=comma, disp=semi, disp=or, disp=out, disp=number, disp=x and disp=b. The numeric results are identical to using Template:Convert to show numerals instead of words. Common problemsNote the name of this template is "convert/spell" and omitting the suffix "/spell" will not show words for numbers. Also, putting "spell" as parameter 1 will cause the number to be treated as a template name "Convert/<number>" such as {{convert|spell|34|km}} will show "Template:Convert/34". The amount is followed by a unit-code (such as "|m") as the 2nd parameter. The output unit-code can be "0" as the 3rd parameter, to allow the default output unit to be triggered, while setting parameter 4 to a rounding precision (such as "|5") or use r=5 to set the rounding level. |