跳至內容

模板:Val/unitswithlink

對Wikipedia

Subtemplate for turning an easily typeable name for a unit into a proper scientific notation for the unit, including a link to a page about the unit. See {{val/units}} for a version that does not provide a link. If the template does not have an entry for the unit, it is returned "as is".

This template is used by {{val}} to translate the ul and upl arguments. When adding a unit of the type X/Y (eg. m/s), please consider adding a X·Y模板:Sup version as well (and name it X*Y-1).

Arguments

[Gāi nguòng-mā]
1 = The easily typable name of the unit.
{{val/unitswithlink|m/s}}  →  m/s
{{val/unitswithlink|m*s-1}}  →  [[Metre per second|m·s模板:Sup]]
{{val/unitswithlink|MeV}}  →  MeV
{{val/unitswithlink|kg}}  →  kg
{{val/unitswithlink|whatever}}  →  whatever (unimplemented)

Feel free to add new units if they are not implemented.