Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Display Link: Difference between revisions

Template page
Created Display Link
 
added break(br) parameter
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:{{{1}}}.png|32x32px|link=]] [[{{{1}}}]]<noinclude>
[[File:{{{1}}}.{{#if: {{{gif|}}}|gif|png}}|{{{size|32px}}}|link={{#if: {{{nolink|}}}||{{{1}}}}}]]{{#if:{{{break|{{{br|}}}}}}|<br />|&nbsp;}}{{#if: {{{amount|}}}|{{{amount}}}x&nbsp;|}}{{#if: {{{nolink|}}}|{{{1}}}|[[{{{1}}}]]}}<noinclude>
<templatedata>
<templatedata>
{
{
Line 5: Line 5:
"1": {
"1": {
"label": "Item",
"label": "Item",
"description": "The item to be displayed and linked too",
"description": "The item to be displayed and linked to",
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true,
"required": true,
"suggested": true
"suggested": true
},
"size": {
"label": "Size",
"description": "The size of the image",
"type": "string",
"required": false,
"suggested": true
},
"nolink": {
"label": "Nolink",
"description": "Use this parameter if a link is unwanted",
"type": "string",
"required": false,
"suggested": false
},
"gif": {
"label": "Gif",
"description": "Use this parameter if the icon to display is a gif",
"type": "string",
"required": false,
"suggested": false
},
"amount": {
"type": "number",
"description": "Amount of item for certain usages"
},
"break": {
"type": "string",
"description": "Whether there should be a break tag. Alternative parameter name: br"
}
}
},
},
"description": "Adds a link with icon to the page"
"description": "Adds a link with an icon to the page."
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 09:49, 12 July 2025

[[File:{{{1}}}.png|32px|link={{{1}}}]] [[{{{1}}}]]

Adds a link with an icon to the page.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Item1

The item to be displayed and linked to

Page namerequired
Sizesize

The size of the image

Stringsuggested
Nolinknolink

Use this parameter if a link is unwanted

Stringoptional
Gifgif

Use this parameter if the icon to display is a gif

Stringoptional
amountamount

Amount of item for certain usages

Numberoptional
breakbreak

Whether there should be a break tag. Alternative parameter name: br

Stringoptional