Template:Infobox place: Difference between revisions
| Robertbaxter (talk | contribs) No edit summary | Robertbaxter (talk | contribs)  No edit summary | ||
| Line 8: | Line 8: | ||
| -->{{#if:{{{place_type|}}}|<tr><th scope="row">Type</th><td>{{{place_type}}}</td></tr>|}} | -->{{#if:{{{place_type|}}}|<tr><th scope="row">Type</th><td>{{{place_type}}}</td></tr>|}} | ||
| |} | |} | ||
| [[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 --> | |||
| }} | |||
Revision as of 18:20, 7 December 2024
| Infobox place | |
|---|---|