Template:Infobox place/service: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<noinclude></noinclude><includeonly><div>{{#if:{{{service_url|}}}|[{{{service_url}}} {{#if:{{{service_name|}}}|{{{service_name}}}|{{{service_type}}}}}]|{{#if:{{{service_name|}}}|{{{service_name}}}|{{{service_type}}}}}}}</div></includeonly> | <noinclude> | ||
This is a helper template for [[Template:Infobox place]], it takes information about a single service and displays it as a segment (wrapped in a <code><nowiki><div/></nowiki></code>) of the "Services" section. | |||
== Behavior== | |||
''The examples below are embedded in the "Services" section of empty infoboxes for accurate table row display.'' | |||
If an (optional) <code>service_name</code> has been provided, it is displayed as the text, otherwise the (required) <code>service_type</code> is used. Service types are a limited set of tokens that can be used for filtering in the atlas and elsewhere, where as service names are unique names for services (e.g. the "Periodical" at [[Taxonomy Press]] is named "The Floral Observer"). | |||
<pre>{{Infobox place/service|service_type=Residency}} | |||
{{Infobox place/service|service_type=Residency|service_name=Artist Residency at Directangle Press}} | |||
</pre> | |||
{| class="infobox" | |||
! Services | |||
{{Infobox place/service|service_type=Residency}} | |||
|- | |||
! Services | |||
{{Infobox place/service|service_type=Residency|service_name=Artist Residency at Directangle Press}} | |||
|} | |||
</noinclude><includeonly><div>{{#if:{{{service_url|}}}|[{{{service_url}}} {{#if:{{{service_name|}}}|{{{service_name}}}|{{{service_type}}}}}]|{{#if:{{{service_name|}}}|{{{service_name}}}|{{{service_type}}}}}}}</div></includeonly> |
Revision as of 00:34, 17 December 2024
This is a helper template for Template:Infobox place, it takes information about a single service and displays it as a segment (wrapped in a <div/>
) of the "Services" section.
Behavior
The examples below are embedded in the "Services" section of empty infoboxes for accurate table row display.
If an (optional) service_name
has been provided, it is displayed as the text, otherwise the (required) service_type
is used. Service types are a limited set of tokens that can be used for filtering in the atlas and elsewhere, where as service names are unique names for services (e.g. the "Periodical" at Taxonomy Press is named "The Floral Observer").
{{Infobox place/service|service_type=Residency}} {{Infobox place/service|service_type=Residency|service_name=Artist Residency at Directangle Press}}
Services
Residency
|
---|
Services
Artist Residency at Directangle Press
|