Template:IconLink: Difference between revisions

From Rhythm Game Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
| 3 (optional) || Visible Text || Blue Crystals
| 3 (optional) || Visible Text || Blue Crystals
|-
|-
| 4 (optional) or <code>image</code> || Image to use || File:Example File
| 4 (optional) or <code>image</code> || Image to use || File:Gadvia-Gold Coin Icon.png
|}
|}


Line 19: Line 19:
=== Code ===
=== Code ===


<code>
<pre><nowiki>
<nowiki>
I have one {{IconLink|Gadvia|Gold Coin}}.
{{IconLink|Gadvia|Blue Crystal|Blue Crystals}}
 
</nowiki>
How about some {{IconLink|Gadvia|Blue Crystal|Blue Crystals}}?
</code>
 
This link actualy points to the {{IconLink|Gadvia|Main Page|image=File:Gadvia-Gold Coin Icon.png}}.
</nowiki></pre>


=== Result ===
=== Result ===


{{IconLink|Gadvia|Blue Crystal|Blue Crystals}}
I have one {{IconLink|Gadvia|Gold Coin}}.
 
How about some {{IconLink|Gadvia|Blue Crystal|Blue Crystals}}?
 
This link actualy points to the {{IconLink|Gadvia|Main Page|image=File:Gadvia-Gold Coin Icon.png}}.


</noinclude>
</noinclude>
Line 34: Line 40:
<includeonly>
<includeonly>


<onlyinclude>[[{{{image|{{{4|File:{{#if:{{{1}}}|{{{1}}}-|}}{{{2}}} Icon.png}}}}}}|16px]] [[{{{1}}}:{{{2}}}|{{{3|{{{2}}}}}}]]</onlyinclude>
 
 
<onlyinclude>{{Icon|{{{1|}}}|{{{2|}}}| image={{{image|{{{4|}}} }}} }} [[{{{1}}}:{{{2}}}|{{{3|{{{2}}}}}}]]</onlyinclude>


</includeonly>
</includeonly>

Revision as of 10:57, 17 August 2024


Parameters

Parameter Purpose Example Value
1 Link namespace Gadvia
2 Linked page Blue Crystal
3 (optional) Visible Text Blue Crystals
4 (optional) or image Image to use File:Gadvia-Gold Coin Icon.png

Example

Code

I have one {{IconLink|Gadvia|Gold Coin}}.

How about some {{IconLink|Gadvia|Blue Crystal|Blue Crystals}}?

This link actualy points to the {{IconLink|Gadvia|Main Page|image=File:Gadvia-Gold Coin Icon.png}}.

Result

I have one Gold Coin.

How about some Blue Crystals?

This link actualy points to the Main Page.