Template:Place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 9: Line 9:
[[Category:Places]]
[[Category:Places]]
{{#if:{{{Place Type|}}}|
{{#if:{{{Place Type|}}}|
   {{#arraymap:{{{Place Type|}}}|,|x|[[Category:{{#switch:{{lc:x}}
   {{#if:{{{Country|}}}|
    | education center = Education Centers
    <!-- General Place Type -->
    | print shop = Print Shops
    [[Category:{{#switch:{{lc:{{{Place Type}}}}}
    | publisher = Publishers
      | education center = Education Centers
    | studio = Studios
      | print shop = Print Shops
    | store = Stores
      | publisher = Publishers
    | venue = Venues
      | studio = Studios
    | #default = {{x}}s
      | store = Stores
  }}]]}}
      | venue = Venues
}}
      | #default = {{ucfirst:{{{Place Type}}}}}s
{{#if:{{{Country|}}}|
    }}]]
  [[Category:Places in {{{Country}}}]]
 
  [[Category:Places in {{CountryRegionMapping|country={{{Country}}}}}]]
    <!-- Place Type + Country -->
    [[Category:{{#switch:{{lc:{{{Place Type}}}}}
      | education center = Education Centers
      | print shop = Print Shops
      | publisher = Publishers
      | studio = Studios
      | store = Stores
      | venue = Venues
      | #default = {{ucfirst:{{{Place Type}}}}}s
    }} in {{uc:{{{Country}}}}}]]
 
    <!-- Place Type + Region -->
    [[Category:{{#switch:{{lc:{{{Place Type}}}}}
      | education center = Education Centers
      | print shop = Print Shops
      | publisher = Publishers
      | studio = Studios
      | store = Stores
      | venue = Venues
      | #default = {{ucfirst:{{{Place Type}}}}}s
    }} in {{CountryRegionMapping|country={{{Country}}}}}]]
  }}
}}
}}
</includeonly>
</includeonly>

Revision as of 17:15, 4 December 2024

This is the "Place" template.

It should be called in the following format:

{{Place
|Place Location=
|Place Type=
}}

Edit the page to see the template text.