Template:Infobox place/service: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
{| class="infobox" | {| class="infobox" | ||
! Services | ! Services | ||
{{Infobox place/service|service_type=Residency}} | | {{Infobox place/service|service_type=Residency}} | ||
|- | |- | ||
! Services | ! Services | ||
{{Infobox place/service|service_type=Residency|service_name=Artist Residency at Directangle Press}} | | {{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> | </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
|