Difference between revisions of "Template:Reagent"
From Pangaea Wiki
MyraMidnight (Talk | contribs) |
MyraMidnight (Talk | contribs) |
||
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. | ||
− | {{ | + | {{Reg |
|Name of Reagent | |Name of Reagent | ||
|Custom link name | |Custom link name | ||
Line 11: | Line 11: | ||
}} | }} | ||
===Examples of using the tempate=== | ===Examples of using the tempate=== | ||
− | :<code>{{ | + | :<code>{{Reg|Garlic}}</code> |
− | :{{ | + | :{{Reg|Garlic}} |
− | :<code>{{ | + | :<code>{{Reg|Garlic|Spicy Garlic }}</code> |
− | :{{ | + | :{{Reg|Garlic|Spicy Garlic}} |
− | :<code>{{ | + | :<code>{{Reg|''Garlic''|icononly=yes}}</code> |
− | :{{ | + | :{{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.
- 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}}