模板:DWT/doc
此页面是Template:DWT的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
Purpose
编辑To show deadweight tonnage, whether expressed in metric or long tons, in a consistent manner. Also to introduce the units used and the intended meaning of the abbreviation DWT the first time it is used in an article.
Usage
编辑{{DWT|number|unit|disp=|link=}}
- Parameters
- number: numerical value of the deadweight tonnage;
- unit: specifies the units in which the dead weight tonnage is measured; use
long
ormetric
; - disp: controls how the template will render in the page:
|disp=
when empty or omitted, displays the abbreviated form:{{DWT|36,000|metric|disp=}}
→ 36,000 t DWT
|disp=long
creates a verbose description suitable for the first occurrence on a page{{DWT|36,000|metric|disp=long}}
→ 36,000 公吨载重吨位 (DWT)
|disp=adj
creates the adjectival form:{{DWT|36,000|metric|disp=adj}}
→ 36,000 公吨载重吨位 (DWT)
- link: controls when the template output is linked to the deadweight tonnage article
|link=
when empty or omitted, links to the deadweight tonnage article; this is the default;{{DWT|36,000|metric|disp=long|link=}}
→ 36,000 公吨载重吨位 (DWT)
|link=off
instances of the rendered template are not linked to the deadweight tonnage article:{{DWT|36,000|metric|disp=long|link=off}}
→ 36,000 公吨载重吨位 (DWT)
Examples
编辑Input | Displays as |
{{DWT|36,000|metric|disp=long}} | 36,000 公吨载重吨位 (DWT) |
{{DWT|36,000|long|disp=long}} | 36,000 长吨载重吨位 (DWT) |
{{DWT|36,000|metric}} | 36,000 t DWT |
{{DWT|36,000|long}} | 36,000 LT DWT |
{{DWT|36,000}} | 36,000 DWT |
相关模板
编辑模板 | 测量数据 | 栗子 | 单位类型 | 用法 |
---|---|---|---|---|
{{Displacement}} | for displacement (ships) | 36,000 公吨排水量 36,000 长吨排水量 |
weight | modern |
{{DWT}} | for deadweight tonnage | 36,000 长吨载重吨位 (DWT) | weight | modern |
{{GT}} | for gross tonnage | 36,000 总吨位(GT) | volume | modern |
{{NetT}} | for net tonnage | 36,000 净吨位(NT) | dimensionless index | modern |
{{TEU}} | for twenty-foot equivalent units | 36,000 廿呎标准货柜(TEU) | capacity | modern |
{{NRT}} | for net register tonnage | 36,000 净容积总吨(NRT) | volume | outdated |
{{GRT}} | for gross register tonnage | 36,000 容积总吨(GRT) | volume | outdated |