Template:Display Link: Difference between revisions
Template page
More actions
m fixed non-breaking space |
added break(br) parameter |
||
Line 1: | Line 1: | ||
[[File:{{{1}}}.{{#if: {{{gif|}}}|gif|png}}|{{{size|32px}}}|link={{#if: {{{nolink|}}}||{{{1}}}}}]] {{#if: {{{amount|}}}|{{{amount}}}x |}}{{#if: {{{nolink|}}}|{{{1}}}|[[{{{1}}}]]}}<noinclude> | [[File:{{{1}}}.{{#if: {{{gif|}}}|gif|png}}|{{{size|32px}}}|link={{#if: {{{nolink|}}}||{{{1}}}}}]]{{#if:{{{break|{{{br|}}}}}}|<br />| }}{{#if: {{{amount|}}}|{{{amount}}}x |}}{{#if: {{{nolink|}}}|{{{1}}}|[[{{{1}}}]]}}<noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 34: | Line 34: | ||
"type": "number", | "type": "number", | ||
"description": "Amount of item for certain usages" | "description": "Amount of item for certain usages" | ||
}, | |||
"break": { | |||
"type": "string", | |||
"description": "Whether there should be a break tag. Alternative parameter name: br" | |||
} | } | ||
}, | }, |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item | 1 | The item to be displayed and linked to | Page name | required |
Size | size | The size of the image | String | suggested |
Nolink | nolink | Use this parameter if a link is unwanted | String | optional |
Gif | gif | Use this parameter if the icon to display is a gif | String | optional |
amount | amount | Amount of item for certain usages | Number | optional |
break | break | Whether there should be a break tag. Alternative parameter name: br | String | optional |