Sjabloon:Val/unitswithlink

Uit informatiestandaarden
< Sjabloon:Val
Versie door Ahenket (overleg | bijdragen) op 18 jul 2013 om 08:41 (Nieuwe pagina aangemaakt met '<includeonly>{{#switch:{{{1}}} |bps=bps |bit/s=bit/s |kbit/s=kbit/s |Mbit/s=Megabit per second|Mbit...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen
[bewerken] [purge] Template documentation

Purpose

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−1 version as well (and name it X*Y-1).

Arguments

1 = The easily typable name of the unit.

Examples

{{val/unitswithlink|m/s}}  →  m/s
{{val/unitswithlink|m*s-1}}  →  m⋅s−1
{{val/unitswithlink|MeV}}  →  MeV
{{val/unitswithlink|kg}}  →  kg
{{val/unitswithlink|whatever}}  →  whatever (unimplemented)

Feel free to add new units if they are not implemented. See Template:Val/unitswithlink/test for a page that should include all units processed by this template and their links. You should update the test page when you make changes to this template and check if the links you are adding/modifying make sense.


af:Sjabloon:Val/unitswithlink ar:قالب:Val/unitswithlink bn:টেমপ্লেট:Val/unitswithlink id:Templat:Val/unitswithlink mk:Шаблон:Val/unitswithlink pt:Predefinição:Val/unidades com link tr:Şablon:Val/unitswithlink