Template:SmallIcon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(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>

Revision as of 11:15, 11 November 2023

Template documentation

This is for the smallest kind of inline icon.

Usage: {{SmallIcon|Heavy Icon.png}}

Result:

Usage: {{SmallIcon|Heavy Icon.png|link=Heavy}}

Result: Heavy

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
11

The icon's filename, without FIle: prefix

Filerequired
linklink

Optional page to link to

Page nameoptional
classclass

Any classes to add to the img tag

Unknownoptional