Template:Place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 10: Line 10:
   {{#arraymap:{{{Place Type}}}|,|x|
   {{#arraymap:{{{Place Type}}}|,|x|
     {{#if:x|
     {{#if: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}}}}}]]
      }}
     }}
     }}
   }}
   }}

Revision as of 21:28, 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.