Open main menu

Gobblerpedia β

Changes

Template:Convert/list of units/row

2,542 bytes added, 08:25, 7 July 2012
m
r2.7.3) (Robot: Adding hi, km, ml, ne, simple, sw, ta, yo, zh
|-
|rowspan={{{3|1}}} valign=top align=center |[[{{{t|{{{n}}}}}}|{{{n}}}]]
|align=center valign=top|{{{1}}} {{
#switch:{{padleft:|1|{{{4|<>}}} }}
| = | < = | #default = ({{{4}}})}}
|align=center valign=top|{{{u}}}
|rowspan={{{3|1}}} valign=top|{{#if:{{{s|}}}|US spelling: ''{{{s}}}''<br />}}{{{2|}}}
|rowspan={{{3|1}}} valign=top align=right|{{#ifeq:{{padleft:|1|{{{4|}}} }}|<|{{{4}}}|{{{5|}}}}}{{convert/list of units/facdisp|{{{b|1.0}}}}}{{{6|</small>}}}
|valign=top|<noinclude>

<br>The '''[[Template:Convert/list_of_units/row]]''' displays one row of the unit-code tables in the {{tl|Convert/list_of_units}} documentation page. The template operates as a conversion output formatter, invoked during a partial conversion as the {d} display template (rather than converting to another unit). Parameters:
:* parameter 1 - the unit text title
:* parameter 2 - (not used)
:* parameter 3 - the rowspan setting (1 or 2)
:* parameter 4 - the {altab} text to show "( )" after the unit text, else {fmt}
:* parameter 5 - beginning markup {fmt} to format conversion factor {b}
:* parameter 6 - ending markup {fmtend} for conversion factor {b}
:* {n}, {u}, {t} - the unit name, symbol & article title of the unit
:* {s} - the U.S. spelling of the unit (aka us=...)
:* {b} - conversion factor defined for unit "zz" in {Convert/zz}
This template, used for documentation, is invoked from each {Convert/<unit>} to display one of the rows in each section's table of the short list of Convert's unit-codes. However, several rows in {Convert/list_of_units} are hard-coded rather than using this template to display {n}, {u}, {t} and {b} for a particular unit-code. The assignment of the 6 numbered parameters, as passed here, is set by template {{tl|Convert/list_of_units/item}}, acting as a dynamic template which changes it's target template based on the unit-code.

[[Category:Subtemplates of Template Convert]]
[[fa:الگو:Convert/list of units/row]]
[[hi:साँचा:Convert/list of units/row]]
[[sw:Kigezo:Convert/list of units/row]]
[[ml:ഫലകം:Convert/list of units/row]]
[[ne:ढाँचा:Convert/list of units/row]]
[[or:ଛାଞ୍ଚ:Convert/list of units/row]]
[[km:ទំព័រគំរូ:Convert/list of units/row]]
[[pt:Predefinição:Convert/lista de unidades/row]]
[[simple:Template:Convert/list of units/row]]
[[ta:வார்ப்புரு:Convert/list of units/row]]
[[vi:Bản mẫu:Convert/list of units/row]]
[[yo:Àdàkọ:Convert/list of units/row]]
[[zh:Template:Convert/list of units/row]]
</noinclude>
Anonymous user