Template:Germany by state category navigation
| This template is being discussed in accordance with Wikipedia's deletion policy. Help reach a consensus at its entry. |
| This template uses Lua: |
A category navigation template, designed to be used on any by-state category for any of the 16 current states of Germany.
It creates a navbox with links to identically-named categories for other states. For example, on Category:Landforms of Baden-Württemberg, it creates links to Category:Landforms of Bavaria, Category:Landforms of Brandenburg etc.
Non-existent categories are not linked. Instead, they are listed in grey, i.e. greyed out.
If there are no navigable links, the navbox will not be displayed, and the page will be categorised in Category:Germany by state category navigation with all grey links.
Usage
{{Germany by state category navigation}}
No parameters are available.
Examples
See the template in use on e.g.
- Category:Baden-Württemberg
- Category:Churches in Bremen (state)
- Category:Culture of Hesse
- Category:Elections in Bavaria
- Category:History of Hamburg
- Category:Landforms of Brandenburg
- Category:Museums in Lower Saxony
- Category:Sport in Berlin
- Category:Transport in Mecklenburg-Vorpommern
- Category:Writers from North Rhine-Westphalia
Errors
If the template is used on page which is not a category, or on a category page whose title does not include a valid state of Germany, then no navbox is built. An error message is displayed, and the page is categorised in Category:Germany by state category navigation on invalid category
Tracking categories
- Category:Germany by state category navigation on invalid category (population: 1)
- Category:Germany by state category navigation with no grey links (population: 769)
- Category:Germany by state category navigation with 1–5 grey links (population: 789)
- Category:Germany by state category navigation with 6–10 grey links (population: 302)
- Category:Germany by state category navigation with 11 or more grey links (population: 300)
- Category:Germany by state category navigation with all grey links (population: 168)
- TOTAL: 2,329
Development
This template was adapted in September 2019 from {{All Ireland by county category navigation}}, which began as a proposal at WP:WikiProject Ireland/CatNavProposal. The idea was refined through discussion at WT:WikiProject Ireland/CatNavProposal, and deployed in May 2018 after a 15-day trial on 150 pages.
See also
- Template:Austria by state category navigation (use)
- Template:Brazil by state category navigation (use)
- Template:Belgium by province category navigation (use)
- Template:Bulgaria by province category navigation (use)
- Template:Canada by province category navigation (use)
- Template:Finland by region category navigation (use)
- Template:France by department category navigation (use)
- Template:France by region category navigation (use)
- Template:Germany by state category navigation (use)
- Template:Greece by administrative division category navigation (use)
- Template:Indonesia by province category navigation (use)
- Ireland
- Template:Netherlands by province category navigation (use)
- Template:Nigeria by state category navigation (use)
- Template:Norway by county category navigation (use)
- Template:Portugal by district category navigation (use)
- Template:Russia by federal subject category navigation (use)
- Template:Senegal by region category navigation (use)
- Template:South Africa by province category navigation (use)
- Template:Spain by autonomous community category navigation (use)
- Template:Sweden by county category navigation (use)
- Template:Switzerland by canton category navigation (use)
- Template:Turkey by province category navigation (use)