Template:Town site: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
|Glasgow | |Glasgow | ||
|Leeds | |Leeds | ||
|Lincoln | |||
|Liverpool | |Liverpool | ||
|London | |London |
Revision as of 06:50, 16 September 2020
{{Town cats}} is part of a system intended to allow certain infoboxes to categorise pages not just by county but also by town. It is anticipated that this will apply only to certain major cities and famous towns.
The two templates working together are:
- {{Town site}}: This determines whether the town or city name fed from the infobox is one of the listed cities or towns. If the list of towns with their own categories should be lengthened or shortened, it will be in this template.
- {{Town cats}}: This creates the appropriate category, if the infobox 'type' is one which can generate a town category. If the number of in-town categories should be change, it will be in this template.
All is dependent however on the Infobox template: if it is to be capable of generating an in-town category it must have the coding to extract the town name and to feed it to {{Town site}}. One would not have such coding in, for example {{Infobox waterfall}}, but for {{Infobox building}} it could.
[create] Template documentation
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |