6,366
editsAd placeholder
Template:SmallIcon: Difference between revisions
Jump to navigation
Jump to search
m
add class parameter, templatedata
(Created page with "<includeonly>{{icon|{{{1}}}|25|link={{{link|}}}}}</includeonly><noinclude> This is for the smallest kind of inline icon. Usage: {{code|<nowiki>{{SmallIcon|Heavy Icon.png}}</nowiki>}} Result: {{SmallIcon|Heavy Icon.png}} Usage: {{code|<nowiki>{{SmallIcon|Heavy Icon.png|link=Heavy}}</nowiki>}} Result: {{SmallIcon|Heavy Icon.png|link=Heavy}} Category:Icon Templates </noinclude>") |
m (add class parameter, templatedata) |
||
Line 1: | Line 1: | ||
<includeonly>{{icon|{{{1}}}|25|link={{{link|}}}}}</includeonly><noinclude> | <includeonly>{{icon|{{{1}}}|25|link={{{link|}}}|class={{{class|}}} }}</includeonly><noinclude>{{documentation|content= | ||
This is for the smallest kind of inline icon. | This is for the smallest kind of inline icon. | ||
Line 10: | Line 10: | ||
Result: {{SmallIcon|Heavy Icon.png|link=Heavy}} | Result: {{SmallIcon|Heavy Icon.png|link=Heavy}} | ||
[[Category:Icon Templates]] | == Template data == | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"1": { | |||
"description": "The icon's filename, without FIle: prefix", | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"link": { | |||
"description": "Optional page to link to", | |||
"type": "wiki-page-name" | |||
}, | |||
"class": { | |||
"description": "Any classes to add to the img tag" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
}} | |||
[[Category:Icon Templates]]</noinclude> |