الگو:NRT

از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

Purpose[ویرایش]

To show net register tonnage in a consistent manner that is compliant with ویکی‌پدیا:شیوه‌نامه/تاریخ‌ها و اعداد. In particular it:

  • standardizes capitalization and spelling (i.e. NRT, Nrt, nrt, N.R.T., n.r.t. and so forth),
  • standardizes the link to the definition,
  • links to net register tonnage on the first use in an article,
  • uses the abbreviation NRT, i.e. "XXX NRT" on subsequent uses in the article,
  • inserts   where needed

Note! For ships built on or after 18 July 1982, use {{NetT}}.

Usage[ویرایش]

{{NRT|number|disp=|link=}}
Parameters
number: numerical value of the gross register tonnage;
disp: controls how the template will render in the page:
|disp= when empty or omitted, displays the abbreviated form:
{{NRT|36,000|disp=}} → ۳۶٬۰۰۰ NRT
|disp=long creates a verbose description suitable for the first occurrence on a page
{{NRT|36,000|disp=long}} → ۳۶٬۰۰۰ net register tons (NRT)
|disp=adj creates the adjectival form:
{{NRT|36,000|disp=adj}} → ۳۶٬۰۰۰-net register ton (NRT)
link: controls when the template output is linked to the net register tonnage article
|link= when empty or omitted, links to the gross register tonnage article; this is the default;
{{NRT|36,000|disp=long|link=}} → ۳۶٬۰۰۰ net register tons (NRT)
|link=off instances of the rendered template are not linked to the gross register tonnage article:
{{NRT|36,000|disp=long|link=off}} → ۳۶٬۰۰۰ net register tons (NRT)

Examples[ویرایش]

Input Displays as
{{NRT|36000|disp=long}} ۳۶٬۰۰۰ net register tons (NRT)
{{NRT|36000|disp=long|link=off}} ۳۶٬۰۰۰ net register tons (NRT)
{{NRT|36000|disp=adj}} ۳۶٬۰۰۰-net register ton (NRT)
{{NRT|36000|disp=adj|link=off}} ۳۶٬۰۰۰-net register ton (NRT)
{{NRT|36000|disp=}} ۳۶٬۰۰۰ NRT
{{NRT|36000}} ۳۶٬۰۰۰ NRT
{{NRT|36000|link=off}} ۳۶٬۰۰۰ NRT

Related templates[ویرایش]