Difference between revisions of "Template:Infobox road/meta/length/sandbox"
Jump to navigation
Jump to search
imported>Wikid77 (changed to round the result by simple {#expr: ...round...} rather than Template:Rnd which can add trailing zeroes; put typical doc-text to explain template operation.) |
imported>BrownHairedGirl (remove non-existent Category:Infobox road) |
||
| Line 5: | Line 5: | ||
The template rounds the result to the precision of the input decimal digits, where, for example, {{precision|234.65}} is {{precision|234.65}}, for 2 decimal digits. The template expansion depth is 6 levels, of the 41-level limit. | The template rounds the result to the precision of the input decimal digits, where, for example, {{precision|234.65}} is {{precision|234.65}}, for 2 decimal digits. The template expansion depth is 6 levels, of the 41-level limit. | ||
| − | |||
| − | |||
</noinclude> | </noinclude> | ||
Latest revision as of 01:42, 5 March 2017
567.3 mi (Expression error: Unrecognized punctuation character "[". km)
The Template:Infobox_road/meta/length converts miles to kilometres, or the reverse, where parameter 1 is "mi" or "km" and the distance is length=567.3 or such.
The template rounds the result to the precision of the input decimal digits, where, for example, {{precision|234.65}} is Template:Precision, for 2 decimal digits. The template expansion depth is 6 levels, of the 41-level limit.