Template:Content/Icon: Difference between revisions

From Vintage Story Wiki
mNo edit summary
(Added optional custom name)
Line 1: Line 1:
<includeonly>[[File:{{{1}}}|25px|link={{{2}}}]][[{{{2}}}]]</includeonly><noinclude>
<includeonly>[[File:{{{1}}}|25px|link={{{2}}}]][[{{{2}}}|{{{3|{{{2}}}}}}]]</includeonly><noinclude>
Used to make [[Template:Navbox]] bearable to edit. <code><nowiki>{{Navbox/Icon|Rawclay blue.png|Clay}}</nowiki></code> turns to <code><nowiki>[[File:Rawclay blue.png|25px|link=Clay]][[Clay]]</nowiki></code>, ie, {{Navbox/Icon|Rawclay blue.png|Clay}} {{Navbox/Icon|Rawclay blue.png|Clay}}.
Used to make [[Template:Navbox]] bearable to edit. <code><nowiki>{{Navbox/Icon|Rawclay blue.png|Clay|Custom name}}</nowiki></code> turns to <code><nowiki>[[File:Rawclay blue.png|25px|link=Clay]][[Clay|Custom name]]</nowiki></code>, ie, {{Navbox/Icon|Rawclay blue.png|Clay|Custom name}}. Custom name is optional <code><nowiki>{{Navbox/Icon|Rawclay blue.png|Clay}}</nowiki></code> {{Navbox/Icon|Rawclay blue.png|Clay}}
</noinclude>
</noinclude>

Revision as of 15:46, 20 February 2022

Used to make Template:Navbox bearable to edit. {{Navbox/Icon|Rawclay blue.png|Clay|Custom name}} turns to [[File:Rawclay blue.png|25px|link=Clay]][[Clay|Custom name]], ie, Template:Navbox/Icon. Custom name is optional {{Navbox/Icon|Rawclay blue.png|Clay}} Template:Navbox/Icon