Difference between revisions of "Template:Iconlink"
Jump to navigation
Jump to search
(Created page with "[[File:{{{image|{{{1}}}.png}}}|16x16px|link={{#ifeq:{{{link|}}}|none||{{{link|{{{1}}}}}}}}]] {{#ifeq:{{{link|}}}|none|{{{text|{{{2|{{{1}}}}}}}}}|{{{link|{{{1}}}}}}|{{{text|{...") |
m |
||
Line 1: | Line 1: | ||
− | [[File:{{{image|{{{1}}}.png}}}|16x16px|link={{#ifeq:{{{link|}}}|none||{{{link|{{{1}}}}}}}}]] {{#ifeq:{{{link|}}}|none|{{{text|{{{2|{{{1}}}}}}}}}|[[{{{link|{{{1}}}}}}|{{{text|{{{2|{{{1}}}}}}}}}]]}} | + | <includeonly>[[File:{{{image|{{{1}}}.png}}}|16x16px|link={{#ifeq:{{{link|}}}|none||{{{link|{{{1}}}}}}}}]] {{#ifeq:{{{link|}}}|none|{{{text|{{{2|{{{1}}}}}}}}}|[[{{{link|{{{1}}}}}}|{{{text|{{{2|{{{1}}}}}}}}}]]}}</includeonly><noinclude> |
+ | == Parameters == | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Name | ||
+ | ! Usage | ||
+ | |- | ||
+ | | <code><nowiki>{{{1}}}</nowiki></code> | ||
+ | | Set the defaults for all other parameters | ||
+ | |- | ||
+ | | <code><nowiki>{{{image}}}</nowiki></code> | ||
+ | | Set the image to be displayed | ||
+ | |- | ||
+ | | <code><nowiki>{{{link}}}</nowiki></code> | ||
+ | | Set the page to link<br>If set to <code>none</code>, no link will be added | ||
+ | |- | ||
+ | | <code><nowiki>{{{text}}}</nowiki></code> or <code><nowiki>{{{2}}}</nowiki></code> | ||
+ | | Set the text to be displayed | ||
+ | |} | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Code | ||
+ | ! Result | ||
+ | |- | ||
+ | | <nowiki>{{Iconlink|Bread}}</nowiki> || {{User:FnControlOption/Iconlink|Bread}} | ||
+ | |- | ||
+ | | <nowiki>{{Iconlink|Apple}}</nowiki> || {{User:FnControlOption/Iconlink|Apple}} | ||
+ | |- | ||
+ | | <nowiki>{{Iconlink|Cobblestone}}</nowiki> || {{User:FnControlOption/Iconlink|Cobblestone}} | ||
+ | |- | ||
+ | | <nowiki>{{Iconlink|Glass}}</nowiki> || {{User:FnControlOption/Iconlink|Glass}} | ||
+ | |- | ||
+ | | <nowiki>{{Iconlink|Lava}}</nowiki> || {{User:FnControlOption/Iconlink|Lava}} | ||
+ | |- | ||
+ | | <nowiki>{{Iconlink|image=Steel Pickaxe.png|Pickaxe}}</nowiki> || {{User:FnControlOption/Iconlink|image=Steel Pickaxe.png|Pickaxe}} | ||
+ | |} | ||
+ | </noinclude> |
Revision as of 17:02, 21 September 2020
Parameters
Name | Usage |
---|---|
{{{1}}}
|
Set the defaults for all other parameters |
{{{image}}}
|
Set the image to be displayed |
{{{link}}}
|
Set the page to link If set to none , no link will be added
|
{{{text}}} or {{{2}}}
|
Set the text to be displayed |
Examples
Code | Result |
---|---|
{{Iconlink|Bread}} | User:FnControlOption/Iconlink |
{{Iconlink|Apple}} | User:FnControlOption/Iconlink |
{{Iconlink|Cobblestone}} | User:FnControlOption/Iconlink |
{{Iconlink|Glass}} | User:FnControlOption/Iconlink |
{{Iconlink|Lava}} | User:FnControlOption/Iconlink |
{{Iconlink|image=Steel Pickaxe.png|Pickaxe}} | User:FnControlOption/Iconlink |