Difference between revisions of "Template:GRT/doc"

From blackwiki
Jump to navigation Jump to search
imported>Bellhalla
(→‎Examples: add example)
imported>Bellhalla
(→‎Usage: added usage example)
Line 15: Line 15:
  
 
Specify <tt>''first=yes''</tt> to create a verbose description suitable for the first occurrence on a page.
 
Specify <tt>''first=yes''</tt> to create a verbose description suitable for the first occurrence on a page.
 +
 +
Specify <tt>''first=short''</tt> to create a linked ''GRT'' suitable for tables or infoboxes.
  
 
==Examples==
 
==Examples==

Revision as of 16:21, 4 November 2008

Template:Template doc page viewed directly

Purpose

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

  • capitalization and spelling are standardized (i.e. GRT, Grt, grt, G.R.T., g.r.t. and so forth),
  • the link to the definition is standardized,
  • spells out "XXX gross register tons" and introduces the abbreviation GRT on the first use in an article,
  • links to Gross Register Tonnage on the first use in an article,
  • uses the abbreviation GRT on subsequent uses in the article, and
  • inserts a &nbsp; between the number and the unit.

Usage

{{GRT|number|first=yes}}

Specify first=yes to create a verbose description suitable for the first occurrence on a page.

Specify first=short to create a linked GRT suitable for tables or infoboxes.

Examples

Input Displays as
{{GRT|36,000|first=yes}} 36,000 GRT
{{GRT|36,000|first=short}} 36,000 GRT
{{GRT|36,000}} 36,000 GRT
  1. REDIRECT Template:WPSHIPS: Measurement templates


  • 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.