Jump to content

ထႅမ်းပလဵတ်ႉ:Convert/list of units/row

လုၵ်ႉတီႈ ဝီႇၶီႇပပ်ႉ မႃး

|- |rowspan="1" style="vertical-align:top; text-align:center;"|[[w:{{{n}}}|{{{n}}}]] |style="vertical-align:top; text-align:center;"|{{{1}}} |style="vertical-align:top; text-align:center;"|{{{u}}} |rowspan="1" style="vertical-align:top;"| |rowspan="1" style="vertical-align:top; text-align:right;"|1.0 |style="vertical-align:top;"|


The Template:Convert/list_of_units/row displays one row of the unit-code tables in the {{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.K. spelling of the unit (aka uk=...)
  • {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 {{Convert/list of units/item}}, acting as a dynamic template which changes it's target template based on the unit-code.