Difference between revisions of "Template:Reagent"

From Pangaea Wiki
Jump to: navigation, search
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={{{link|{{{1}}}}}}]]{{<!--
+
</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|}}}<!--
 
   -->||&nbsp;<span>[[{{{link|{{{1|{{{Champion}}}}}}}}}|{{{2|{{{1|Reagent}}}}}}]]</span>|<!--
 
   -->||&nbsp;<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.

  1. The first undefined parameter is the reagent name as it would appear in the image file name.
  2. The second undefined parameter allows you to customize the name of the link
  3. 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 Garlic
{{Reg|Garlic|Spicy Garlic }}
Garlic Spicy Garlic
{{Reg|Garlic|icononly=yes}}
Garlic