Difference between revisions of "Naming conventions for templates"

From Linking experiences of World War One
Jump to: navigation, search
m (Exceptions)
m (Exceptions: deleted PageRef template)
Line 16: Line 16:
  
 
* {{tl|WarDiaryHeading}}, {{tl|wo95import}} and {{tl|DiscoveryData}} are only ever added to a page automatically, and appear on very many pages. Updating them is a low priority.
 
* {{tl|WarDiaryHeading}}, {{tl|wo95import}} and {{tl|DiscoveryData}} are only ever added to a page automatically, and appear on very many pages. Updating them is a low priority.
* {{tl|Pageref}} and {{tl|RefLives}} might be obsolete soon.
+
* {{tl|RefLives}} might be obsolete soon.
 
* {{tl|BritishBrigade}} will be obsolete once level names are finalised.
 
* {{tl|BritishBrigade}} will be obsolete once level names are finalised.
 
* {{tl|Longitem}}, {{tl|UF-hcard-org}}, and {{tl|WPMILHIST Infobox style}} are imported from Wikipedia and should keep their existing names.
 
* {{tl|Longitem}}, {{tl|UF-hcard-org}}, and {{tl|WPMILHIST Infobox style}} are imported from Wikipedia and should keep their existing names.
  
 
[[Category:Templates]]
 
[[Category:Templates]]

Revision as of 09:10, 17 April 2016

The purpose of this page is to record and explain our current practices for naming units and pages. It's not a set of rules that you have to learn. If you want to create a page that doesn't exist, just create it. Don't worry about whether it has the right name. We can easily move it later.

Templates should have descriptive names where possible, but the names shouldn't be too long.

There is usually a space between each word in a template name.

Names are in lower case except for:

  • the first letter of a template name is case insensitive.
  • proper nouns should be capitalized: "James", not "james".
  • acronyms and initials should be all capitals. For example: "AWM", "TNA".

Exceptions

Some templates don't conform to these conventions for special reasons: