Permanently protected template

Template:Districts of Turkey

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Initial visibility

To set the template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Districts of Turkey|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Districts of Turkey|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Districts of Turkey|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter is not set, the template's initial visibility is taken from the |default= parameter in the template. For this template, that currently evaluates to autocollapse.

Parameters

  • Usage: {{Districts of Turkey|provname= X |image= Y|sortkey= Z}}
  • X; name of province-without "province" word- . Do not worry about the rest of the data template will add it for you.
  • Y; if the X does not match the imagename in imagename Turkey Provinces locator.gif to bring correct map to template. If they are same, no need Y parameter.
  • Z; if the name contains any of the Turkish characters ıİ, öÖ, üÜ, çÇ, ğĞ, şŞ, provide a transcription with these characters replaced with Ascii characters iI oO uU cC gG sS, to serve as a sorting key for categorization.

Functions

Headline

The headline is not static and it reflects the info of the location: (a) the province (b) the region.

note:some of the functionality is achieved by a sub-template:Template:Regions of Turkey

Maps

The maps at the sidebar also changes based on the location and the region

note:this functionality is achieved by a sub-template:Template:Regions of Turkey

Categorization

The current structure of this template adds these categories (if a change performed please keep this section update)

If the page is a "X Province"
  • adds; Category:Provinces of Turkey
  • adds; Category:X Province
If the page is a X metropole
  • adds; Category:Cities in Turkey
  • adds; Category:X Province
    • note: "Districts of X" is listed under "X Province"
If the page is a X District
  • adds; Category:Districts of X
    • note: "Districts of X" is listed under "X Province"
If the page is in X region
  • adds; Category:X Region, Turkey
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Districts_of_Turkey&oldid=854387370"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Template:Districts_of_Turkey
This page is based on the copyrighted Wikipedia article "Template:Districts of Turkey"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA