Template:IconLink: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | |||
= Parameters = | |||
{| class="wikitable" | |||
|- | |||
! Parameter !! Purpose !! Example Value | |||
|- | |||
| 1 || Link namespace || Gadvia | |||
|- | |||
| 2 || Linked page || Blue Crystal | |||
|- | |||
| 3 (optional) || Visible Text || Blue Crystals | |||
|- | |||
| 4 (optional) || Image to use || File:Example File | |||
|} | |||
= Example = | |||
=== Code === | |||
<code> | |||
<nowiki> | |||
{{IconLinkTest|Gadvia|Blue Crystal|Blue Crystals}} | |||
</nowiki> | |||
</code> | |||
=== Result === | |||
{{IconLinkTest|Gadvia|Blue Crystal|Blue Crystals}} | |||
</noinclude> | |||
<includeonly> | |||
[[{{{4|File:{{{1}}}-{{{2}}} Icon.png}}}|16px]] [[{{{1}}}:{{{2}}}|{{{3|{{{2}}}}}}]] | |||
</includeonly> | |||
<!-- | |||
replace {{{1}}}- with {{#if:{{{1}}}|{{{1}}}-|}} once ParserFunctions is installed, to make mainspace links work | |||
--> |