الگو:GT

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

Purpose[ویرایش]

To show gross tonnage in a consistent manner that is compliant with WP:MOSNUM. In particular it:

  • capitalization and spelling are standardized (i.e. GT, Gt, gt, G.T., g.t. and so forth),
  • the link to the definition is standardized,
  • links to gross tonnage on the first use in an article,
  • uses the abbreviation GT, i.e. "XXX GT" on subsequent uses in the article,
  • inserts  s where needed, and
  • spells out "gross tonnage (GT) of XXX tons", introducing the abbreviation GT on the first use in an article.

Note! Gross tonnage is a dimensionless index calculated with a mathematical formula. While this template allows, for the sake of backwards compatibility, the use of "tons" as the unit for gross tonnage, this is not correct and should not be used in future articles.

Usage[ویرایش]

{{GT|number|first=(yes|caps|short)}}

Use the first parameter the first time the template appears on the page. It has three options:

  • first=short to create a terse description, suitable for tables and infoboxes,
  • first=yes to create a verbose description,
  • first=caps to create a verbose description that starts with a capital letter.

See the examples below for more information.

Examples[ویرایش]

Input Displays as
{{GT|36,000|first=short}} 36,000 GT (gross tonnage)
{{GT|36,000}} 36,000 GT
{{GT|36,000|first=yes}} gross tonnage (GT) of 36,000 tons
{{GT|36,000|first=caps}} Gross tonnage (GT) of 36,000 tons
quoted to have a {{GT|anywhere from 550 to 598|first=yes}} quoted to have a gross tonnage (GT) of anywhere from 550 to 598 tons

Related templates[ویرایش]