Pages which use this template are listed at Category:Places.
Template:Place: Difference between revisions
Robertbaxter (talk | contribs) No edit summary Tag: Manual revert |
Robertbaxter (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | |||
{{Class template|class=Place|form=Place|category=Places}} | |||
== TemplateData == | == TemplateData == | ||
Line 167: | Line 98: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude><!-- | ||
--><includeonly><!-- | |||
-->{{Infobox place | |||
| title = {{PAGENAME}} | |||
| location = {{{location|{{{country}}}}}} | |||
| place_type = {{{place_type|}}} | |||
| coordinates = {{{coordinates|}}} | |||
| services = {{{services|}}} | |||
| website = {{{website|}}} | |||
| site_shop = {{{site_shop|}}} | |||
| site_blog = {{{site_blog|}}} | |||
| site_insta = {{{site_insta|}}} | |||
| links = {{{links|}}} | |||
}}<!-- | |||
-->{{{people|}}}<!-- | |||
-->[[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 --> | |||
}}<!-- | |||
-->{{#set: | |||
Has place type = {{{place_type|}}}|+sep=, | |||
| At coordinates = {{{coordinates|}}} | |||
| At location = {{{location|}}} | |||
| In country = {{{country|}}} | |||
| In region = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}} | |||
| Has website = {{{website|}}} | |||
| Has shop = {{{site_shop|}}} | |||
| Has blog = {{{site_blog|}}} | |||
| Has instagram = {{{site_insta|}}} | |||
| Has ink = {{{inks|}}}|+sep=, | |||
| Has machine = {{{machines|}}}|+sep=, | |||
}}</includeonly> |
Revision as of 17:48, 14 December 2024
TemplateData
Main template for the "Place" class (which is mostly studios/printshops, but constitutes all the things that show up in the Atlas). This template handles semantic annotation and transcludes display templates for the data (mainly Template:Infobox place).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Location | location | Open format location for the place—can be as detailed as full street address, or just a city + state/province, or left blank. This will be displayed in the infobox as typed. It should not include the country.
| String | suggested |
Country | country | The country where the place is located.
| String | required |
Place type | place_type | A tokenized list of types for the location.
| String | suggested |
Coordinates | coordinates | The latitude and longitude coordinates of the space (optional, to support map display). Formatted with a comma, no space.
| String | suggested |
Services | services | A list of services provided by the place. These are implemented with Template:Place/service—please use the page form Form:Place to edit them. | Content | optional |
Website | website | A link to the main website for the place.
| URL | suggested |
Shop | site_shop | A link to the online shop/store for the place.
| URL | optional |
Blog | site_blog | A link to the blog/feed for a place.
| URL | optional |
site_insta | A link to the Instagram profile for the place.
| URL | optional | |
Additional links | links | Holds any extra links besides those specified above, along with labels for each. These are implemented with Template:Place/link—please use the page form Form:Place to edit them. | Unknown | optional |
People | people | A list of the people associated with a place. This is optional and potentially personal data and SHOULD ONLY BE ADDED WITH CONSENT. These are implemented with Template:Place/person—please use the page form Form:Place to edit them. | Unknown | optional |
Available inks | inks | A list of the inks/colors available (for places that print with a duplicator). Formatted as a list with commas and spaces.
| String | suggested |
Machines | machines | A list of machines in use at the place (specifically duplicators). Formatted as a list with commas and spaces—machines should use the same format as they are listed under on their series page.
| String | suggested |