Difference between revisions of "Template:DWT"
Jump to navigation
Jump to search
imported>Courcelles m (Protected Template:DWT: Batch semi-protection of highly visible templates listed on Wikipedia:Database reports/Unprotected templates with many transclusions/4 Any that were full-protected I will restore. using TW ([edit=autoconfirmed] (inde) |
imported>AGK m (Changed protection level of Template:DWT: Highly-visible template ([edit=autoconfirmed] (indefinite))) |
(No difference)
| |
Revision as of 22:38, 21 April 2012
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
longormetric; - 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 DWT
|disp=longcreates a verbose description suitable for the first occurrence on a page{{DWT|36,000|metric|disp=long}}→ 36,000 DWT
|disp=adjcreates 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
Examples
| Input | Displays as |
| {{DWT|36,000|metric|disp=long}} | 36,000 tonnes deadweight (DWT) |
| {{DWT|36,000|long|disp=long}} | 36,000 long tons deadweight (DWT) |
| {{DWT|36,000|metric}} | 36,000 t DWT |
| {{DWT|36,000|long}} | 36,000 LT DWT |
| {{DWT|36,000}} | 36,000 DWT |
- From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.
| The above documentation is transcluded from Template:DWT/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |