Template:Infobox place/link: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 17: Line 17:
{
{
"params": {
"params": {
"link_url": {
"1": {
"label": "URL",
"label": "URL",
"description": "The URL for the link.",
"description": "The URL for the link.",
Line 23: Line 23:
"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.",

Revision as of 19:56, 17 December 2024


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