Template:Place: Difference between revisions

From stencil.wiki
No edit summary
(Blanked the page)
Tag: Blanking
Line 1: Line 1:
<includeonly>
{{Infobox place
| title = {{PAGENAME}}
| Location = {{{Location|}}}
| Place Type = {{#arraymap:{{{Place Type|}}}|,|x|[[Place type::x]]}}
| Country = {{{Country|}}}
}}
[[Category:Places]]
{{#if:{{{Place Type|}}}|
  {{#arraymap:{{{Place Type}}}|,|x|
    <!-- General Place Type -->
    [[Category:{{#switch:{{lc:x}}
      | education center = Education Centers
      | print shop = Print Shops
      | publisher = Publishers
      | studio = Studios
      | store = Stores
      | venue = Venues
      | #default = {{ucfirst:x}}s
    }}]]


    <!-- Place Type + Country -->
    {{#if:{{{Country|}}}|
      [[Category:{{#switch:{{lc:x}}
        | education center = Education Centers
        | print shop = Print Shops
        | publisher = Publishers
        | studio = Studios
        | store = Stores
        | venue = Venues
        | #default = {{ucfirst:x}}s
      }} in {{ucfirst:{{lc:{{{Country}}}}}}}]]
    }}
    <!-- Place Type + Region -->
    {{#if:{{{Country|}}}|
      [[Category:{{#switch:{{lc:x}}
        | education center = Education Centers
        | print shop = Print Shops
        | publisher = Publishers
        | studio = Studios
        | store = Stores
        | venue = Venues
        | #default = {{ucfirst:x}}s
      }} in {{CountryRegionMapping|country={{{Country}}}}}]]
    }}
  }}
}}
</includeonly>
<noinclude>
{{#template_params:Place Location (label=Location;property=Location)|Place Type (label=Type;list;property=Place type)}}
</noinclude>

Revision as of 20:06, 4 December 2024