Template:Town cats: Difference between revisions
Jump to navigation
Jump to search
Created page with "Category:{{#switch:{{{2}}} |bridge=Bridges of {{{1}}} |castle |building=Buildings in {{{1}}} |heritage=Heritage sites in {{{1}}} |church=Churches in {{{1}}} |university={{{1..." |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:{{#switch:{{{2}}} | <includeonly>[[Category:{{#switch:{{{2}}} | ||
|bridge=Bridges of {{{1}}} | |bridge=Bridges of {{{1}}} | ||
|castle | |castle | ||
Line 6: | Line 6: | ||
|church=Churches in {{{1}}} | |church=Churches in {{{1}}} | ||
|university={{{1}}} | |university={{{1}}} | ||
}}]]<noinclude> | }}]]</includeonly><noinclude> | ||
{{Town cats/doc}} | {{Town cats/doc}} | ||
[[Category:Town category templates]]<noinclude> | [[Category:Town category templates]]<noinclude> |
Latest revision as of 21:55, 24 October 2019
{{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.
[edit] [{{#invoke:Purge|main}}] Template documentation
Template loop detected: Template:Town cats/doc
The above documentation is transcluded from Template:Town cats/doc. (edit | history) 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. |