Template:Infobox place/link: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is a helper template for [[Template:Infobox place]], it takes information about a link and displays it as a row in the infobox. | This is a helper template for [[Template:Infobox place]], it takes information about a link and displays it as a row in the infobox. | ||
Line 17: | Line 16: | ||
{ | { | ||
"params": { | "params": { | ||
" | "1": { | ||
"label": "URL", | "label": "URL", | ||
"description": "The URL for the link.", | "description": "The URL for the link.", | ||
Line 23: | Line 22: | ||
"required": true | "required": true | ||
}, | }, | ||
" | "2": { | ||
"label": "Label", | "label": "Label", | ||
"description": "A custom label for the link.", | "description": "A custom label for the link.", |
Latest revision as of 20:55, 29 January 2025
This is a helper template for Template:Infobox place, it takes information about a link and displays it as a row in the infobox.
Behavior
The examples below are embedded in an empty infobox for accurate table row display.
Both a URL and a label must be provided—the label serves as the row header, while the URL is simplified with Template:clean URL and is displayed as the row data.
{{Infobox place/link|https://www.iprc.org/events|Calendar}}
Calendar | iprc.org/events |
---|---|
Template Data
A helper template to display custom links in the infobox for a place.
Parameter | Description | Type | Status | |
---|---|---|---|---|
URL | 1 | The URL for the link. | URL | required |
Label | 2 | A custom label for the link. | String | required |