Template:Place/service: Difference between revisions

From stencil.wiki
(Created page with "<noinclude></noinclude><includeonly>{{#subobject:{{{service_name|service_type}}}|@category=Services | Has service type = {{{service_type}}} | Has service name = {{{service_name|service_type}}} | Has service url = {{{service_url|}}} }}</includeonly>")
 
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude></noinclude><includeonly>{{#subobject:{{{service_name|service_type}}}|@category=Services
<noinclude>{{Class subtemplate}}
| Has service type     = {{{service_type}}}
This is a helper function for [[Template:Place]], it handles the semantic assignment of properties for a single service. It should not need to be invoked directly—it is the output for the service values in [[Form:Place]].
| Has service name     = {{{service_name|service_type}}}
 
| Has service url      = {{{service_url|}}}
It calls [[Template:Infobox place/service]] to return the infobox row to display the service.
}}</includeonly>
 
== TemplateData ==
<templatedata>
{
"params": {
"service_type": {
"label": "Type",
"description": "The type of service (of a list of fixed types). Used for sorting (and display if no name is provided).",
"type": "string",
"suggestedvalues": [
"Print for hire",
"Public hours",
"Open submissions",
"Workshops",
"Print subscription",
"Residency",
"Periodical",
"Anthology"
],
"required": true
},
"service_name": {
"label": "Name",
"description": "The custom name for the service (what the studio calls it).",
"type": "string"
},
"service_url": {
"label": "Link",
"description": "A link to a site that describes the service in more detail.",
"type": "url",
"suggested": true
}
},
"description": "Support function for the \"Place\" class to make semantic annotations for a service.",
"format": "block"
}
</templatedata>
</noinclude><includeonly>{{#subobject:{{{service_type}}}|@category=Services
| Has service type = {{{service_type|}}}
| Has name         = {{{service_name|}}}
| Has URL          = {{{service_url|}}}
}}{{Infobox place/service|service_type={{{service_type|}}}|service_name={{{service_name|}}}|service_url={{{service_url|}}}}}</includeonly>

Latest revision as of 04:13, 20 December 2024

Warning: Class subtemplate
This is a support template for the main class template Template:Place—it should not invoked in other circumstances.

This is a helper function for Template:Place, it handles the semantic assignment of properties for a single service. It should not need to be invoked directly—it is the output for the service values in Form:Place.

It calls Template:Infobox place/service to return the infobox row to display the service.

TemplateData

Support function for the "Place" class to make semantic annotations for a service.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Typeservice_type

The type of service (of a list of fixed types). Used for sorting (and display if no name is provided).

Suggested values
Print for hire Public hours Open submissions Workshops Print subscription Residency Periodical Anthology
Stringrequired
Nameservice_name

The custom name for the service (what the studio calls it).

Stringoptional
Linkservice_url

A link to a site that describes the service in more detail.

URLsuggested