Pages which use this template are listed at Category:Places.
Template:Place: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
(47 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Class template|class | <noinclude>{{Class template|class=Place|category=Places}} | ||
=== Subtemplates === | |||
Multiple subtemplates support this class: | |||
* [[Template:Place/service]] annotates subobject data for services. | |||
* [[Template:Place/person]] annotates subobject data for people. | |||
* [[Template:Place/link]] is a passthrough for infobox display of custom links. | |||
* [[Template:Place/preload]] holds the preload data for [[Form:Place]]. | |||
== TemplateData == | == TemplateData == | ||
Line 14: | Line 20: | ||
"country": { | "country": { | ||
"label": "Country", | "label": "Country", | ||
"description": "The country where the place is located.", | "description": "The country where the place is located (used for sorting, not address display).", | ||
"example": "Germany", | "example": "Germany", | ||
"type": "string", | "type": "string", | ||
Line 22: | Line 28: | ||
"label": "Place type", | "label": "Place type", | ||
"description": "A tokenized list of types for the location.", | "description": "A tokenized list of types for the location.", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Studio", | |||
"Print shop", | "Print shop", | ||
"Publisher", | "Publisher", | ||
"Store", | "Store", | ||
"School", | |||
"Community space", | |||
"Venue", | "Venue", | ||
" | "Archive", | ||
"Zine library" | |||
], | ], | ||
"suggested": true | "suggested": true | ||
Line 36: | Line 44: | ||
"coordinates": { | "coordinates": { | ||
"label": "Coordinates", | "label": "Coordinates", | ||
"description": "The latitude and longitude coordinates of the space (optional, to support map display) | "description": "The latitude and longitude coordinates of the space (optional, to support map display).", | ||
"example": "47.551523,-122.318688 ", | "example": "47.551523, -122.318688 ", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
Line 115: | Line 123: | ||
"description": "The year the place closed (if no longer active).", | "description": "The year the place closed (if no longer active).", | ||
"type": "number" | "type": "number" | ||
}, | |||
"status_text": { | |||
"label": "Status message", | |||
"description": "An optional status message that displays in the message box for places of status \"Closed,\" \"Temporarily closed,\" or \"Inactive.\" If not set a generic message will be shown.", | |||
"type": "string" | |||
}, | |||
"imports": { | |||
"label": "Imports", | |||
"description": "A hidden field which holds flags from the import process via the previous iteration of the wiki.", | |||
"type": "string", | |||
"deprecated": true | |||
}, | |||
"city": { | |||
"label": "City", | |||
"description": "The city where the place is located (used for sorting, not address display).", | |||
"type": "string" | |||
}, | |||
"state_province": { | |||
"label": "State/province", | |||
"description": "The state/province where the place is located (used for sorting, not address display).", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 122: | Line 151: | ||
"place_type", | "place_type", | ||
"status", | "status", | ||
"status_text", | |||
"start_year", | "start_year", | ||
"end_year", | "end_year", | ||
"location", | "location", | ||
"city", | |||
"state_province", | |||
"country", | "country", | ||
"coordinates", | "coordinates", | ||
Line 135: | Line 167: | ||
"people", | "people", | ||
"inks", | "inks", | ||
"machines" | "machines", | ||
"imports" | |||
] | ] | ||
} | } | ||
Line 141: | Line 174: | ||
</noinclude><!-- | </noinclude><!-- | ||
--><includeonly><!-- | --><includeonly><!-- | ||
{{{place_type}}} | |||
-->{{#switch:{{{status|}}} | -->{{#switch:{{{status|}}} | ||
| Closed={{Closed place}} | | Closed={{Closed place}} | ||
| Temporarily | | Temporarily closed={{Temporarily closed place}} | ||
| Inactive={{Inactive place}} | | Inactive={{Inactive place}} | ||
| Unknown={{Unknown place}} | | Unknown={{Unknown status place}} | ||
| Imported={{Imported place}} | |||
}}<!-- | }}<!-- | ||
-->{{Atlas place breadcrumb}}<!-- | |||
-->{{Infobox place | -->{{Infobox place | ||
| title = {{PAGENAME}} | | title = {{PAGENAME}} | ||
| location = {{{location|{{{country | | location = {{{location|}}} | ||
| country = {{{country|}}} | |||
| place_type = {{{place_type|}}} | | place_type = {{{place_type|}}} | ||
| start_year = {{{start_year|}}} | | start_year = {{{start_year|}}} | ||
| end_year = {{{end_year|}}} | | end_year = {{{end_year|}}} | ||
| status = {{{status|}}} | |||
| status_text = {{{status_text|}}} | | status_text = {{{status_text|}}} | ||
| coordinates = {{{coordinates|}}} | | coordinates = {{{coordinates|}}} | ||
Line 163: | Line 201: | ||
}}<!-- | }}<!-- | ||
-->{{{people|}}}<!-- | -->{{{people|}}}<!-- | ||
-->[[Category:Places]] | -->[[Category:Places]]<!-- | ||
{{#if:{{{place_type|}}}| | -->{{#if:{{{place_type|}}}|{{#arraymap:{{{place_type}}}|,|x|{{#if:x|[[Category:x{{#if:x|s}}]]}}|}}}}<!-- | ||
-->{{#invoke:Geography|geoCategories | |||
| class = place | |||
| country = {{{country|}}} | |||
| state_province = {{{state_province|}}} | |||
| city = {{{city|}}} | |||
}}<!-- | |||
-->{{#if:{{#show: {{FULLPAGENAME}} | ?At coordinates #}} | | |||
<!-- If coordinates exist, do nothing. --> | |||
| | |||
[[Category:Places needing coordinates]] | |||
}}<!-- | }}<!-- | ||
-->{{#set: | -->{{#set: | ||
Has place type | Has place type = {{{place_type|}}}|+sep=, | ||
| Has status | | Has status = {{{status||}}} | ||
| | | Is active = {{#ifeq:{{{status|}}}|Active|true|false}} | ||
| | | Has status message = {{{status_text||}}} | ||
| At coordinates | | Established in = {{{start_year||}}} | ||
| At location | | Closed in = {{{end_year||}}} | ||
| In country | | At coordinates = {{{coordinates|}}} | ||
| In region | | At location = {{{location|}}} | ||
| Has website | | At display location = {{#if:{{{coordinates|}}} | ||
| Has shop | | {{{coordinates}}}| {{{location}}}}} | ||
| Has blog | | In city = {{{city|}}} | ||
| Has instagram | | In state/province = {{{state_province|}}} | ||
| Has ink | | In country = {{{country|}}} | ||
| Has machine | | In region = {{#if:{{{country|}}}|{{CountryRegionMapping|country={{{country}}}}}|}} | ||
}}</includeonly> | | Has website = {{{website|}}} | ||
| Has shop = {{{site_shop|}}} | |||
| Has blog = {{{site_blog|}}} | |||
| Has instagram = {{{site_insta|}}} | |||
| Has ink = {{{inks|}}}|+sep=, | |||
| Has machine = {{{machines|}}}|+sep=, | |||
}}{{XML import|{{{imports|}}}}}</includeonly> |
Latest revision as of 00:46, 12 January 2025
Subtemplates
Multiple subtemplates support this class:
- Template:Place/service annotates subobject data for services.
- Template:Place/person annotates subobject data for people.
- Template:Place/link is a passthrough for infobox display of custom links.
- Template:Place/preload holds the preload data for Form:Place.
TemplateData
The 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 | |
---|---|---|---|---|
Place type | place_type | A tokenized list of types for the location.
| String | suggested |
Status | status | The status of the place (generally whether it is open or closed).
| String | required |
Status message | status_text | An optional status message that displays in the message box for places of status "Closed," "Temporarily closed," or "Inactive." If not set a generic message will be shown. | String | optional |
Start year | start_year | The year the place opened/started. | Number | optional |
End year | end_year | The year the place closed (if no longer active). | Number | optional |
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 |
City | city | The city where the place is located (used for sorting, not address display). | String | optional |
State/province | state_province | The state/province where the place is located (used for sorting, not address display). | String | optional |
Country | country | The country where the place is located (used for sorting, not address display).
| String | required |
Coordinates | coordinates | The latitude and longitude coordinates of the space (optional, to support map display).
| 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 |
Imports | imports | A hidden field which holds flags from the import process via the previous iteration of the wiki. | String | deprecated |