Template:Place/service: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
Line 41: | Line 41: | ||
</templatedata> | </templatedata> | ||
</noinclude><includeonly>{{#subobject:{{{service_type}}}|@category=Services | </noinclude><includeonly>{{#subobject:{{{service_type}}}|@category=Services | ||
| Has service type | | Has service type = {{{service_type|}}} | ||
| Has | | Has name = {{{service_name|}}} | ||
| Has | | Has URL = {{{service_url|}}} | ||
}}{{Infobox place/service|service_type={{{service_type|}}}|service_name={{{service_name|}}}|service_url={{{service_url|}}}}}</includeonly> | }}{{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
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | service_type | The type of service (of a list of fixed types). Used for sorting (and display if no name is provided).
| String | required |
Name | service_name | The custom name for the service (what the studio calls it). | String | optional |
Link | service_url | A link to a site that describes the service in more detail. | URL | suggested |