Difference between revisions of "Category:ShipLink Templates"

From The Dreadnought Project
Jump to: navigation, search
(Created page with "FredBot can create shorthand templates so editors can easily create links to our ship articles. Each such has the form of XX-ShipName, where XX is a two-lette...")
 
Line 1: Line 1:
 
[[User:FredBot|FredBot]] can create shorthand templates so editors can easily create links to our ship articles.   
 
[[User:FredBot|FredBot]] can create shorthand templates so editors can easily create links to our ship articles.   
  
Each such has the form of XX-ShipName, where XX is a two-letter country code.  It produces a link to the ship of the given name.  If there is more than one such ship, the last launched in our period is referenced, and others may be obtained by specifying y=XXXX for its year of launch.
+
Each such has the form of XX-ShipName, where XX is a two-letter country code.  It produces a link to the ship of the given name.  If there is more than one such ship, the last launched prior to 1 January, 1926 is referenced, and others may be obtained by additional templates that add suffixes 1, 2, 3, etc, counting backward in time.  e.g., H.M.S. Dreadnought (1906) is to be referenced by <nowiki>{{UK-Dreadnought}}</nowiki>, as it is the last ship by that name launched prior to 1926.  The old ship H.M.S. Dreadnought (1875) should be referenced by a template named <nowiki>{{UK-Dreadnought1}}</nowiki>, as it is the next-previously launched ship by that name.
  
 
Another parameter, "f" can be set to "p", "t", or "pt" to cause the name to be embellished with any national prefix (e.g., "H.M.S.") or the ship type, e.g., "armoured cruiser".
 
Another parameter, "f" can be set to "p", "t", or "pt" to cause the name to be embellished with any national prefix (e.g., "H.M.S.") or the ship type, e.g., "armoured cruiser".
Line 11: Line 11:
 
* <nowiki>{{UK-Devonshire|f=p}}</nowiki> produces: {{UK-Devonshire|f=p}}
 
* <nowiki>{{UK-Devonshire|f=p}}</nowiki> produces: {{UK-Devonshire|f=p}}
 
* <nowiki>{{UK-Devonshiref=pt}}</nowiki> produces: {{UK-Devonshire|f=tp}}
 
* <nowiki>{{UK-Devonshiref=pt}}</nowiki> produces: {{UK-Devonshire|f=tp}}
 
Support for multiple ships of the same name is, for now, provided by manually editing the templates.  See [[Template:UK-Dreadnought|<nowiki>{{UK-Dreadnought}}</nowiki>]] for an example
 

Revision as of 12:52, 10 October 2012

FredBot can create shorthand templates so editors can easily create links to our ship articles.

Each such has the form of XX-ShipName, where XX is a two-letter country code. It produces a link to the ship of the given name. If there is more than one such ship, the last launched prior to 1 January, 1926 is referenced, and others may be obtained by additional templates that add suffixes 1, 2, 3, etc, counting backward in time. e.g., H.M.S. Dreadnought (1906) is to be referenced by {{UK-Dreadnought}}, as it is the last ship by that name launched prior to 1926. The old ship H.M.S. Dreadnought (1875) should be referenced by a template named {{UK-Dreadnought1}}, as it is the next-previously launched ship by that name.

Another parameter, "f" can be set to "p", "t", or "pt" to cause the name to be embellished with any national prefix (e.g., "H.M.S.") or the ship type, e.g., "armoured cruiser".

For instance, using Devonshire as an example,

Pages in category "ShipLink Templates"

The following 200 pages are in this category, out of 5,518 total.

(previous 200) (next 200)

A

A cont.

A cont.

B

(previous 200) (next 200)