Khác biệt giữa bản sửa đổi của “Bản mẫu:Giá trị/unitswithlink”

Bách khoa toàn thư mở Wikipedia
Nội dung được xóa Nội dung được thêm vào
Qbot (thảo luận | đóng góp)
n robot Thêm: en, mk, pt, tr
n Bot: Di chuyển 6 liên kết ngôn ngữ đến d:q14346754 tại Wikidata
Dòng 231: Dòng 231:
|#default = {{#ifexist:Template:Convert/{{{1}}}|{{convert/{{{1}}}|d=ScientificValue/LonAonSoff|r=re}}|{{{1}}}}}
|#default = {{#ifexist:Template:Convert/{{{1}}}|{{convert/{{{1}}}|d=ScientificValue/LonAonSoff|r=re}}|{{{1}}}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>

[[ar:قالب:Val/unitswithlink]]
[[id:Templat:Val/unitswithlink]]
[[en:Template:Val/unitswithlink]]
[[mk:Шаблон:Val/unitswithlink]]
[[pt:Predefinição:Val/unidades com link]]
[[tr:Şablon:Val/unitswithlink]]
</noinclude>
</noinclude>

Phiên bản lúc 03:03, ngày 8 tháng 8 năm 2013

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 {tl|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. 1 = The easily typable name of the unit.

Examples

{{val/units|m/s}}  →  m/s
{{val/units|m*s-1}}  →  m·s-1
{{val/units|MeV}}  →  MeV
{{val/units|kg}}  →  kg
{{val/units|whatever}}  →  whatever
(unimplemented)

Notes

  • This is a sub-template used by Template:ScientificValue. Please do not use this directly. Feel free to add new units if they are not implemented.