Template:Infobox place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 10: Line 10:
-->{{#if:{{{site_store||}}}|<tr><th scope="row">Store</th><td>{{{site_store}}}</td></tr>|}}<!--
-->{{#if:{{{site_store||}}}|<tr><th scope="row">Store</th><td>{{{site_store}}}</td></tr>|}}<!--
-->{{#if:{{{site_blog||}}}|<tr><th scope="row">Blog</th><td>{{{site_blog}}}</td></tr>|}}
-->{{#if:{{{site_blog||}}}|<tr><th scope="row">Blog</th><td>{{{site_blog}}}</td></tr>|}}
|}<!--
|}</includeonly>
-->[[Category:Places]]<!--
-->{{#if:{{{place_type|}}}|
  {{#arraymap:{{{place_type}}}|,|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 {{{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}}}}}]]
      }}
|}} <!-- No delimiter -->
}}</includeonly>

Revision as of 19:41, 8 December 2024