Template:Place/link: Difference between revisions

From stencil.wiki
(Created page with "{{Infobox place/link|link_label={{{link_label|}}}|link_url={{{link_url|}}}}}")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox place/link|link_label={{{link_label|}}}|link_url={{{link_url|}}}}}
<noinclude>{{Class subtemplate}}
This is a pass-through function for custom links in [[Template:Place]], it is the output for the link values in [[Form:Place]]. No semantic values are stored (though they could be within this template) because secondary links are not saved as properties.
 
It calls [[Template:Infobox place/link]] to generate the infobox row to display the link.
 
== TemplateData ==
<templatedata>
{
"params": {
"link_url": {
"label": "URL",
"description": "The URL for the link.",
"type": "url",
"required": true
},
"link_label": {
"label": "Label",
"description": "A custom label for the link.",
"type": "string",
"required": true
}
},
"description": "Support function for the \"Place\" class to pass through link values.",
"format": "block"
}
</templatedata>
</noinclude><includeonly>{{Infobox place/link|{{{link_url|}}}|{{{link_label|}}}}}</includeonly>

Latest revision as of 03:15, 18 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 pass-through function for custom links in Template:Place, it is the output for the link values in Form:Place. No semantic values are stored (though they could be within this template) because secondary links are not saved as properties.

It calls Template:Infobox place/link to generate the infobox row to display the link.

TemplateData

Support function for the "Place" class to pass through link values.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
URLlink_url

The URL for the link.

URLrequired
Labellink_label

A custom label for the link.

Stringrequired