Difference between revisions of "Template:Districts of Turkey"

From blackwiki
Jump to navigation Jump to search
imported>Favonian
m (Bypass redirect to Tarsus, Mersin)
imported>Good Olfactory
(changing province cats)
Line 225: Line 225:
 
  | "{{{provname}}} Province" = [[Category:Provinces of Turkey|{{#if:{{{sortkey|}}}|{{{sortkey}}}_Province|{{PAGENAME}}}}]] [[Category:{{PAGENAME}}|*]]
 
  | "{{{provname}}} Province" = [[Category:Provinces of Turkey|{{#if:{{{sortkey|}}}|{{{sortkey}}}_Province|{{PAGENAME}}}}]] [[Category:{{PAGENAME}}|*]]
 
  | "{{{provname}}}" = [[Category:{{{provname}}} Province|*]] [[Category:Cities in Turkey|{{#if:{{{sortkey|}}}|{{{sortkey}}}|{{PAGENAME}}}}]]
 
  | "{{{provname}}}" = [[Category:{{{provname}}} Province|*]] [[Category:Cities in Turkey|{{#if:{{{sortkey|}}}|{{{sortkey}}}|{{PAGENAME}}}}]]
  | #default = {{#if:{{{provname|}}}|[[Category:Districts of {{{provname}}} |{{#if:{{{sortkey|}}}|{{{sortkey}}}|{{PAGENAME}}}}]]}}  
+
  | #default = {{#if:{{{provname|}}}|[[Category:Districts of {{{provname}}} Province |{{#if:{{{sortkey|}}}|{{{sortkey}}}|{{PAGENAME}}}}]]}}  
 
}}{{#switch: "{{region of Turkey|provname={{{provname}}}}}"
 
}}{{#switch: "{{region of Turkey|provname={{{provname}}}}}"
 
  | "[[Black Sea Region|Black Sea]]" = [[Category:Black Sea Region|{{#if:{{{sortkey|}}}|{{{sortkey}}}|{{PAGENAME}}}}]]
 
  | "[[Black Sea Region|Black Sea]]" = [[Category:Black Sea Region|{{#if:{{{sortkey|}}}|{{{sortkey}}}|{{PAGENAME}}}}]]

Revision as of 01:46, 22 February 2012

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

ckb:داڕێژە:پارێزگاکانی تورکیا fa:الگو:استان‌های ترکیه ms:Templat:Districts of Turkey sco:Template:Destricts o Turkey sw:Kigezo:Wilaya za Uturuki tr:Şablon:Türkiye idari