Difference between revisions of "Template:Reagent"
From Pangaea Wiki
MyraMidnight (Talk | contribs) |
MyraMidnight (Talk | contribs) |
||
Line 19: | Line 19: | ||
− | </noinclude><includeonly><span class="reagent_icon" data-character="{{{1|}}}" style="white-space: nowrap">[[File:{{{1|Reagent}}}.png|{{{size|20}}}px|alt={{{1|Reagent}}}|link= | + | </noinclude><includeonly><span class="reagent_icon" data-character="{{{1|}}}" style="white-space: nowrap">[[File:{{{1|Reagent}}}.png|{{{size|20}}}px|alt={{{1|Reagent}}}|link=Reagents]]{{<!-- |
-->#if:{{{icononly|}}}<!-- | -->#if:{{{icononly|}}}<!-- | ||
-->|| <span>[[{{{link|{{{1|{{{Champion}}}}}}}}}|{{{2|{{{1|Reagent}}}}}}]]</span>|<!-- | -->|| <span>[[{{{link|{{{1|{{{Champion}}}}}}}}}|{{{2|{{{1|Reagent}}}}}}]]</span>|<!-- | ||
-->}}</span></includeonly> | -->}}</span></includeonly> |
Revision as of 17:43, 18 March 2016
Template Parameters
This template relies on undefined parameters, which means it matters in which order you write them.
- The first undefined parameter is the reagent name as it would appear in the image file name.
- The second undefined parameter allows you to customize the name of the link
- If you wish to have only the image icon without a written link, then you add the
icononly=
parameter.
{{Reg |Name of Reagent |Custom link name |icononly= }}
Examples of using the tempate
{{Reg|Garlic}}
- Garlic
{{Reg|Garlic|Spicy Garlic }}
- Spicy Garlic
{{Reg|Garlic|icononly=yes}}