Template:Districts of Turkey
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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
This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation. |
This is a navigational template created using {{navbox}}. It can be transcluded on pages by placing {{Districts of Turkey}}
below the standard article appendices.
Initial visibility
This template's initial visibility currently defaults to autocollapse
, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state=
parameter may be used:
{{Districts of Turkey|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{Districts of Turkey|state=expanded}}
will show the template expanded, i.e. fully visible.
Templates using the classes class=navbox
({{navbox}}) or class=nomobile
({{sidebar}}) are not displayed in article space on the mobile web site of English Wikipedia. Mobile page views account for approximately 68% of all page views (90-day average as of September 2024[update]). Briefly, these templates are not included in articles because 1) they are not well designed for mobile, and 2) they significantly increase page sizes—bad for mobile downloads—in a way that is not useful for the mobile use case. You can review/watch phab:T124168 for further discussion.
TemplateData
A navigational box that can be placed at the bottom of articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
State | state | The initial visibility of the navbox
| String | suggested |
Template transclusions
Transclusion maintenance |
---|
Check completeness of transclusions |