Difference between revisions of "Naming conventions for templates"
From Linking experiences of World War One
(Created page with "{{Naming conventions}} These are new conventions introduced in July 2015. You will see lots of references in page source code to old names of templates that don't conform to...") |
m (→Exceptions: got rid of RefLives) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Naming conventions}} | {{Naming conventions}} | ||
− | |||
− | |||
Templates should have descriptive names where possible, but the names shouldn't be too long. | Templates should have descriptive names where possible, but the names shouldn't be too long. | ||
Line 17: | Line 15: | ||
Some templates don't conform to these conventions for special reasons: | Some templates don't conform to these conventions for special reasons: | ||
− | * {{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|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]] |
Latest revision as of 10:56, 11 August 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:
- {{WarDiaryHeading}}, {{wo95import}} and {{DiscoveryData}} are only ever added to a page automatically, and appear on very many pages. Updating them is a low priority.
- {{BritishBrigade}} will be obsolete once level names are finalised.
- {{Longitem}}, {{UF-hcard-org}}, and {{WPMILHIST Infobox style}} are imported from Wikipedia and should keep their existing names.