Template:Infobox place/link: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
<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": {
"link_url": {
"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
},
},
"link_label": {
"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}}
Calendariprc.org/events

Template Data

A helper template to display custom links in the infobox for a place.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
URL1

The URL for the link.

URLrequired
Label2

A custom label for the link.

Stringrequired