Template:Spain by autonomous community category navigation
| This template uses Lua: |
A category navigation template, designed to be used on any by-autonomous community category for any of the 19 current autonomous communities of Spain.
It creates a navbox with links to identically-named categories for other regions. For example, on Category:Landforms of Andalusia, it creates links to Category:Landforms of Aragon, Category:Landforms of Asturias 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:Spain by autonomous community category navigation with all grey links.
Usage
{{Spain by autonomous community category navigation}}
No parameters are available.
Examples
See the template in use on e.g.
- Category:Balearic Islands
- Category:Buildings and structures in the Basque Country (autonomous community)
- Category:Culture of the Canary Islands
- Category:History of Cantabria
- Category:Landforms of Castile and León
- Category:Museums in Castilla–La Mancha
- Category:People from Catalonia
- Category:Railway stations in the Community of Madrid
- Category:Sport in Extremadura
- Category:Transport in Galicia (Spain)
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 autonomous community of Spain, then no navbox is built. An error message is displayed, and the page is categorised in Category:Spain by autonomous community category navigation on invalid category
Tracking categories
- Category:Spain by autonomous community category navigation on invalid category (population: 0)
- Category:Spain by autonomous community category navigation with no grey links (population: 81)
- Category:Spain by autonomous community category navigation with 1–5 grey links (population: 265)
- Category:Spain by autonomous community category navigation with 6–15 grey links (population: 324)
- Category:Spain by autonomous community category navigation with 16 or more grey links (population: 76)
- Category:Spain by autonomous community category navigation with all grey links (population: 88)
- TOTAL: 834
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)