Template:Place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 2: Line 2:
{{Infobox place
{{Infobox place
| title = {{PAGENAME}}
| title = {{PAGENAME}}
| Location = {{{Location|}}}{{#if:{{{Country|}}}|, {{{Country|}}}}}
| location = {{{location|}}}{{#if:{{{country|}}}|, {{{country|}}}}}
| Place Type = {{#arraymap:{{{Place Type|}}}|,|x|[[Place type::x]]}}
| place_type = {{#arraymap:{{{place_type|}}}|,|x|[[place_type::x]]}}
| Country = {{{Country|}}}
| country = {{{country|}}}
| Coordinates = {{{Coordinates|}}}
| coordinates = {{{coordinates|}}}
| Websites = {{{Websites|}}}
| websites = {{{websites|}}}
}}
}}
[[Category:Places]]
[[Category:Places]]
{{#if:{{{Place Type|}}}|
{{#if:{{{place_type|}}}|
   {{#arraymap:{{{Place Type}}}|,|x|
   {{#arraymap:{{{place_type}}}|,|x|
     {{#if:x|
     {{#if:x|
       <!-- General Place Type -->
       <!-- General Place Type -->
Line 24: Line 24:
     }}
     }}
         <!-- Place Type + Country -->
         <!-- Place Type + Country -->
       {{#if:{{{Country|}}}|
       {{#if:{{{country|}}}|
         [[Category:{{#switch:{{lc:x}}
         [[Category:{{#switch:{{lc:x}}
           | education center = Education Centers
           | education center = Education Centers
Line 33: Line 33:
           | venue = Venues
           | venue = Venues
           | #default = {{ucfirst:x}}s
           | #default = {{ucfirst:x}}s
         }} in {{{Country}}}]]
         }} in {{{country}}}]]
       }}
       }}


       <!-- Place Type + Region -->
       <!-- Place Type + Region -->
       {{#if:{{{Country|}}}|
       {{#if:{{{country|}}}|
         [[Category:{{#switch:{{lc:x}}
         [[Category:{{#switch:{{lc:x}}
           | education center = Education Centers
           | education center = Education Centers
Line 46: Line 46:
           | venue = Venues
           | venue = Venues
           | #default = {{ucfirst:x}}s
           | #default = {{ucfirst:x}}s
         }} in {{CountryRegionMapping|country={{{Country}}}}}]]
         }} in {{CountryRegionMapping|country={{{country}}}}}]]
       }}
       }}
  |}} <!-- No delimiter -->
  |}} <!-- No delimiter -->

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