Template:Place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(120 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<noinclude>{{Class template|class=Place|category=Places}}
{{Infobox place
=== 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>
{
"params": {
"location": {
"label": "Location",
"description": "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.",
"example": "5628 Airport Way S, Suite 175 Seattle, WA 98108",
"type": "string",
"suggested": true
},
"country": {
"label": "Country",
"description": "The country where the place is located (used for sorting, not address display).",
"example": "Germany",
"type": "string",
"required": true
},
"place_type": {
"label": "Place type",
"description": "A tokenized list of types for the location.",
"type": "string",
"suggestedvalues": [
"Studio",
"Print shop",
"Publisher",
"Store",
"School",
"Community space",
"Venue",
"Archive",
"Zine library"
],
"suggested": true
},
"coordinates": {
"label": "Coordinates",
"description": "The latitude and longitude coordinates of the space (optional, to support map display).",
"example": "47.551523, -122.318688 ",
"type": "string",
"suggested": true
},
"services": {
"label": "Services",
"description": "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.",
"type": "content"
},
"website": {
"label": "Website",
"description": "A link to the main website for the place.",
"example": "https://www.colourcodeprinting.com/",
"type": "url",
"suggested": true
},
"site_shop": {
"label": "Shop",
"description": "A link to the online shop/store for the place.",
"example": "https://shop.colourcodeprinting.com/",
"type": "url"
},
"site_blog": {
"label": "Blog",
"description": "A link to the blog/feed for a place.",
"example": "https://zinehug.substack.com/",
"type": "url"
},
"site_insta": {
"label": "Instagram",
"description": "A link to the Instagram profile for the place.",
"example": "https://www.instagram.com/zinehug/",
"type": "url"
},
"links": {
"label": "Additional links",
"description": "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."
},
"people": {
"label": "People",
"description": "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."
},
"inks": {
"label": "Available inks",
"description": "A list of the inks/colors available (for places that print with a duplicator). Formatted as a list with commas and spaces.",
"example": "Light Lime, Sunflower, Aqua",
"type": "string",
"suggested": true
},
"machines": {
"label": "Machines",
"description": "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.",
"example": "MZ1090, RZ1090, SF5130",
"type": "string",
"suggested": true
},
"status": {
"label": "Status",
"description": "The status of the place (generally whether it is open or closed).",
"type": "string",
"suggestedvalues": [
"Active",
"Closed",
"Temporarily closed",
"Historic",
"Unknown"
],
"required": true
},
"start_year": {
"label": "Start year",
"description": "The year the place opened/started.",
"type": "number"
},
"end_year": {
"label": "End year",
"description": "The year the place closed (if no longer active).",
"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"
}
},
"description": "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).",
"format": "block",
"paramOrder": [
"place_type",
"status",
"status_text",
"start_year",
"end_year",
"location",
"city",
"state_province",
"country",
"coordinates",
"services",
"website",
"site_shop",
"site_blog",
"site_insta",
"links",
"people",
"inks",
"machines",
"imports"
]
}
</templatedata>
</noinclude><!--
--><includeonly><!--
{{{place_type}}}
-->{{#switch:{{{status|}}}
| Closed={{Closed place}}
| Temporarily closed={{Temporarily closed place}}
| Inactive={{Inactive place}}
| Unknown={{Unknown status place}}
| Imported={{Imported place}}
}}<!--
-->{{Atlas place breadcrumb}}<!--
-->{{Infobox place
| title = {{PAGENAME}}
| title = {{PAGENAME}}
| Location = {{{Location|}}}{{#if:{{{Country|}}}|, {{{Country|}}}}}
| location = {{{location|}}}
| Place Type = {{#arraymap:{{{Place Type|}}}|,|x|[[Place type::x]]}}
| country = {{{country|}}}
| Country = {{{Country|}}}
| place_type = {{{place_type|}}}
}}
| start_year = {{{start_year|}}}
[[Category:Places]]
| end_year = {{{end_year|}}}
{{#if:{{{Place Type|}}}|
| status = {{{status|}}}
  {{#arraymap:{{{Place Type}}}|,|x|
| status_text = {{{status_text|}}}
    {{#if:x|
| coordinates = {{{coordinates|}}}
      <!-- General Place Type -->
| services = {{{services|}}}
      [[Category:{{#switch:{{lc:x}}
| website = {{{website|}}}
        | education center = Education Centers
| site_shop = {{{site_shop|}}}
        | print shop = Print Shops
| site_blog = {{{site_blog|}}}
        | publisher = Publishers
| site_insta = {{{site_insta|}}}
        | studio = Studios
| links = {{{links|}}}
        | store = Stores
}}<!--
        | venue = Venues
-->{{{people|}}}<!--
         | #default = {{ucfirst:x}}s
-->[[Category:Places]]<!--
      }}]]
-->{{#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|}}}
</includeonly>
  | city = {{{city|}}}
<noinclude>
}}<!--
{{#template_params:Place Location (label=Location;property=Location)|Place Type (label=Type;list;property=Place type)}}
-->{{#if:{{#show: {{FULLPAGENAME}} | ?At coordinates #}} |
</noinclude>
<!-- If coordinates exist, do nothing. -->
|
[[Category:Places needing coordinates]]
}}<!--
-->{{#set:
    Has place type      = {{{place_type|}}}|+sep=,
  | Has status          = {{{status||}}}
  | Is active          = {{#ifeq:{{{status|}}}|Active|true|false}}
  | Has status message  = {{{status_text||}}}
  | Established in      = {{{start_year||}}}
  | Closed in          = {{{end_year||}}}
  | At coordinates      = {{{coordinates|}}}
  | At location         = {{{location|}}}
  | At display location = {{#if:{{{coordinates|}}}
  | {{{coordinates}}}| {{{location}}}}}
  | In city            = {{{city|}}}
   | In state/province  = {{{state_province|}}}
  | 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=,
}}{{XML import|{{{imports|}}}}}</includeonly>

Latest revision as of 00:46, 12 January 2025

Warning: Class template
This is the main template for the Place class—it should primarily be used with Form:Place to create or edit associated pages, and not invoked in other circumstances. Most of the content can be edited with the VisualEditor, but for best functionality please use the specified form.

Pages which use this template are listed at Category:Places.

Subtemplates

Multiple subtemplates support this class:

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).

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Place typeplace_type

A tokenized list of types for the location.

Suggested values
Studio Print shop Publisher Store School Community space Venue Archive Zine library
Stringsuggested
Statusstatus

The status of the place (generally whether it is open or closed).

Suggested values
Active Closed Temporarily closed Historic Unknown
Stringrequired
Status messagestatus_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.

Stringoptional
Start yearstart_year

The year the place opened/started.

Numberoptional
End yearend_year

The year the place closed (if no longer active).

Numberoptional
Locationlocation

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.

Example
5628 Airport Way S, Suite 175 Seattle, WA 98108
Stringsuggested
Citycity

The city where the place is located (used for sorting, not address display).

Stringoptional
State/provincestate_province

The state/province where the place is located (used for sorting, not address display).

Stringoptional
Countrycountry

The country where the place is located (used for sorting, not address display).

Example
Germany
Stringrequired
Coordinatescoordinates

The latitude and longitude coordinates of the space (optional, to support map display).

Example
47.551523, -122.318688
Stringsuggested
Servicesservices

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.

Contentoptional
Websitewebsite

A link to the main website for the place.

Example
https://www.colourcodeprinting.com/
URLsuggested
Shopsite_shop

A link to the online shop/store for the place.

Example
https://shop.colourcodeprinting.com/
URLoptional
Blogsite_blog

A link to the blog/feed for a place.

Example
https://zinehug.substack.com/
URLoptional
Instagramsite_insta

A link to the Instagram profile for the place.

Example
https://www.instagram.com/zinehug/
URLoptional
Additional linkslinks

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.

Unknownoptional
Peoplepeople

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.

Unknownoptional
Available inksinks

A list of the inks/colors available (for places that print with a duplicator). Formatted as a list with commas and spaces.

Example
Light Lime, Sunflower, Aqua
Stringsuggested
Machinesmachines

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.

Example
MZ1090, RZ1090, SF5130
Stringsuggested
Importsimports

A hidden field which holds flags from the import process via the previous iteration of the wiki.

Stringdeprecated