6,366
editsAd placeholder
Template:IconLink: Difference between revisions
Jump to navigation
Jump to search
add template params
No edit summary |
(add template params) |
||
Line 64: | Line 64: | ||
[[Category:Icon Templates]] | [[Category:Icon Templates]] | ||
</noinclude> | |||
== Template parameters == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"description": "The file to display as an icon, without the File: prefix.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"description": "Where to link to.", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"3": { | |||
"description": "(optional) Replaces the link text with this if specified.", | |||
"type": "string" | |||
}, | |||
"w": { | |||
"description": "(optional) Override the width of the image.", | |||
"type": "number" | |||
}, | |||
"h": { | |||
"description": "(optional) Override the height of the image.", | |||
"type": "number" | |||
}, | |||
"size": { | |||
"description": "(optional) Set the size of the image to this by this.", | |||
"type": "number" | |||
}, | |||
"block": {}, | |||
"gap": {} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3", | |||
"w", | |||
"h", | |||
"size", | |||
"block", | |||
"gap" | |||
], | |||
"description": "Insert a linked icon." | |||
} | |||
</templatedata></noinclude> |