Difference between revisions of "Template:Reagent"

From Pangaea Wiki
Jump to: navigation, search
Line 5: Line 5:
 
#The second undefined parameter allows you to customize the name of the link
 
#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 <code>icononly=</code> parameter.
 
#If you wish to have only the image icon without a written link, then you add the <code>icononly=</code> parameter.
  {{Reagent
+
  {{Reg
 
  &#124;Name of Reagent
 
  &#124;Name of Reagent
 
  &#124;Custom link name
 
  &#124;Custom link name
Line 11: Line 11:
 
  }}
 
  }}
 
===Examples of using the tempate===
 
===Examples of using the tempate===
:<code>{{Reagent&#124;Garlic}}</code>
+
:<code>{{Reg&#124;Garlic}}</code>
:{{Reagent|Garlic}}
+
:{{Reg|Garlic}}
:<code>{{Reagent&#124;Garlic&#124;Spicy Garlic }}</code>
+
:<code>{{Reg&#124;Garlic&#124;Spicy Garlic }}</code>
:{{Reagent|Garlic|Spicy Garlic}}
+
:{{Reg|Garlic|Spicy Garlic}}
:<code>{{Reagent&#124;''Garlic''&#124;icononly=yes}}</code>
+
:<code>{{Reg&#124;''Garlic''&#124;icononly=yes}}</code>
:{{Reagent|Garlic|icononly=yes}}
+
:{{Reg|Garlic|icononly=yes}}
  
  

Revision as of 17:41, 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