Server reboot imminent. Site will be down for up to 15 minutes, starting 15:00 UTC. (Current time: 14:27 UTC)

Please make sure you are not in the middle of an edit at that time, or make sure to save your work offline.

Template:IconLink: Difference between revisions

Jump to navigation Jump to search
add class
No edit summary
(add class)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
| {{{3|{{{2}}}}}}
| {{{3|{{{2}}}}}}
| link = {{{2}}}
| link = {{{2}}}
| size = {{{size|}}}
| w = {{{w|}}}
| w = {{{w|}}}
| h = {{{h|{{{size|}}}}}}
| h = {{{h|}}}
| block = {{{block|}}}
| block = {{{block|}}}
| gap = {{{gap|}}}
| gap = {{{gap|}}}
| nowrap = {{{nowrap|}}}
| class = {{{class|}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Usage: {{code|<nowiki>{{IconLink | Flourish Icon.png | Flourish }}</nowiki>}}
Usage: {{code|<nowiki>{{IconLink | Flourish Icon.png | Flourish }}</nowiki>}}
Line 64: Line 67:


[[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": {},
"nowrap": {
"description": "If specified, will add the nowrap css style to the span.",
"type": "boolean"
},
"class": {
"description": "Any classes to add to the img"
}
},
"paramOrder": [
"1",
"2",
"3",
"w",
"h",
"size",
"block",
"gap",
"nowrap",
"class"
],
"description": "Insert a linked icon."
}
</templatedata></noinclude>

Navigation menu