Template:Place/link: Difference between revisions
Robertbaxter (talk | contribs) (Created page with "{{Infobox place/link|link_label={{{link_label|}}}|link_url={{{link_url|}}}}}") |
Robertbaxter (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox place/link | <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
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
URL | link_url | The URL for the link. | URL | required |
Label | link_label | A custom label for the link. | String | required |