Template:Place: Difference between revisions
IssuePress (talk | contribs) No edit summary |
IssuePress (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
| Country = {{{Country|}}} | | Country = {{{Country|}}} | ||
}} | }} | ||
[[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 {{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> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{#template_params:Place Location (label=Location;property=Location)|Place Type (label=Type;list;property=Place type)}} | {{#template_params:Place Location (label=Location;property=Location)|Place Type (label=Type;list;property=Place type)}} | ||
</noinclude> | </noinclude> |
Revision as of 20:08, 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.