Template:IconLink: Difference between revisions

From Rhythm Game Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[{{{4|File:{{#if:{{{1}}}|{{{1}}}-|}}{{{2}}} Icon.png}}}|16px]] [[{{{1}}}:{{{2}}}|{{{3|{{{2}}}}}}]]
<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) or <code>image</code> || Image to use || File:Gadvia-Gold Coin Icon.png
|}
 
= Example =
 
=== Code ===
 
<pre><nowiki>
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}}.
</nowiki></pre>
 
=== Result ===
 
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>
 
 
<includeonly>
 
 
 
<onlyinclude>{{Icon|{{{1|}}}|{{{2|}}}|image={{{image|{{{4|}}} }}}|link={{{1}}}:{{{2}}}}}&nbsp;[[{{{1}}}:{{{2}}}|{{{3|{{{2}}}}}}]]</onlyinclude>
 
</includeonly>

Latest revision as of 20:31, 26 February 2025


Parameters

[edit source]
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

[edit source]
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

[edit source]

I have one  Gold Coin.

How about some  Blue Crystals?

This link actualy points to the  Main Page.