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...")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[User:FredBot|FredBot]] can create shorthand templates so editors can easily create links to our ship articles.   
+
[[User:FredBot|FredBot]] creates shorthand templates so (human) editors can more easily create links to our ship articles without having to remember the ship's year of launch, type any special characters, or properly employ italics, etcThese templates also offer some neat options to further describe the ship.
  
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.
+
==The Basic Idea==
 +
Each such has the form of XX-ShipName, where XX is a two-letter country code (UK, AU, FR, DE, AH, JP, etc).  It produces a link to the ship of the given 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".
+
==Ships of same Nation with the same Name==
 +
If there is more than one such ship, the last one of them launched for which we have pages is referenced by the default template.  Previous ships of the same name may be referenced by other templates with numeric prefixes (1, 2, 3, etc), counting backward in time.  For instance:
 +
*  H.M.S. Dreadnought (1906) is to be referenced by <nowiki>{{UK-Dreadnought}}</nowiki>, as it is the last ship by that name that we have a page for 
 +
* the turret ship H.M.S. Dreadnought launched in 1875 is referenced by a template named <nowiki>{{UK-1Dreadnought}}</nowiki>, as it is the next-previously launched ship by that name.
 +
* if we create a page for an even '''older''' ship by that name, we'd use <nowiki>{{UK-2Dreadnought}}</nowiki>
 +
 
 +
The charm to this convention is that one seldom has to think about ships with the same names when working with the World War I period ships.  Only when you know there was a later ship of the same name do you have to ask, "How many later ones were there?"  The answer to that question is the digit you place in the prefix.
 +
 
 +
The dismal aspect to this little innovation is the sickly feeling we get when a more modern ship page is created for an existing ship name.  Tony generally has to handle these, and FredBot "bumps" all the existing templates to higher digit prefixes and automatically updates all references on the site.  It's ugly.
 +
 
 +
==Parameters to include Type and/or Prefix==
 +
A parameter named "f" can be set to "p", "t", "c", "pt" or "pc" to cause the name to be embellished with any national prefix (e.g., "H.M.S.") or the ship type, e.g., "armoured cruiser" or ship class, e.g., "''London'' Class heavy cruiser", complete with a link to the page for the ship class. It's pretty neat!
  
 
For instance, using Devonshire as an example,  
 
For instance, using Devonshire as an example,  
Line 9: Line 21:
 
* <nowiki>{{UK-Devonshire}}</nowiki> produces: {{UK-Devonshire}}
 
* <nowiki>{{UK-Devonshire}}</nowiki> produces: {{UK-Devonshire}}
 
* <nowiki>{{UK-Devonshire|f=t}}</nowiki> produces: {{UK-Devonshire|f=t}}
 
* <nowiki>{{UK-Devonshire|f=t}}</nowiki> produces: {{UK-Devonshire|f=t}}
 +
* <nowiki>{{UK-Devonshire|f=c}}</nowiki> produces: {{UK-Devonshire|f=c}}
 
* <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-Devonshire|f=pt}}</nowiki> produces: {{UK-Devonshire|f=tp}}
 +
* <nowiki>{{UK-Devonshire|f=cp}}</nowiki> produces: {{UK-Devonshire|f=cp}}
  
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
+
[[Category:Editing Aids]]

Latest revision as of 18:42, 3 October 2021

FredBot creates shorthand templates so (human) editors can more easily create links to our ship articles without having to remember the ship's year of launch, type any special characters, or properly employ italics, etc. These templates also offer some neat options to further describe the ship.

The Basic Idea

Each such has the form of XX-ShipName, where XX is a two-letter country code (UK, AU, FR, DE, AH, JP, etc). It produces a link to the ship of the given name.

Ships of same Nation with the same Name

If there is more than one such ship, the last one of them launched for which we have pages is referenced by the default template. Previous ships of the same name may be referenced by other templates with numeric prefixes (1, 2, 3, etc), counting backward in time. For instance:

  • H.M.S. Dreadnought (1906) is to be referenced by {{UK-Dreadnought}}, as it is the last ship by that name that we have a page for
  • the turret ship H.M.S. Dreadnought launched in 1875 is referenced by a template named {{UK-1Dreadnought}}, as it is the next-previously launched ship by that name.
  • if we create a page for an even older ship by that name, we'd use {{UK-2Dreadnought}}

The charm to this convention is that one seldom has to think about ships with the same names when working with the World War I period ships. Only when you know there was a later ship of the same name do you have to ask, "How many later ones were there?" The answer to that question is the digit you place in the prefix.

The dismal aspect to this little innovation is the sickly feeling we get when a more modern ship page is created for an existing ship name. Tony generally has to handle these, and FredBot "bumps" all the existing templates to higher digit prefixes and automatically updates all references on the site. It's ugly.

Parameters to include Type and/or Prefix

A parameter named "f" can be set to "p", "t", "c", "pt" or "pc" to cause the name to be embellished with any national prefix (e.g., "H.M.S.") or the ship type, e.g., "armoured cruiser" or ship class, e.g., "London Class heavy cruiser", complete with a link to the page for the ship class. It's pretty neat!

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)