Difference between revisions of "Template:Reagent"
From Pangaea Wiki
MyraMidnight (Talk | contribs) (Created page with "<noinclude> ===Examples of using the tempate=== {{Reagent | ''reagent-name''}} {{Reagent|spidersilk}} {{Reagent | ''reagent-name'' | ''custom link'' }} {{Reag...") |
MyraMidnight (Talk | contribs) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
+ | ===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 <code>icononly=</code> parameter. | ||
+ | {{Reagent | ||
+ | |Name of Reagent | ||
+ | |Custom link name | ||
+ | |icononly= | ||
+ | }} | ||
===Examples of using the tempate=== | ===Examples of using the tempate=== | ||
− | + | :<code>{{Reagent|Garlic}}</code> | |
− | {{Reagent| | + | :{{Reagent|Garlic}} |
− | + | :<code>{{Reagent|Garlic|Spicy Garlic }}</code> | |
− | {{Reagent| | + | :{{Reagent|Garlic|Spicy Garlic}} |
− | + | :<code>{{Reagent|''Garlic''|icononly=yes}}</code> | |
− | {{Reagent| | + | :{{Reagent|Garlic|icononly=yes}} |
− | </noinclude><includeonly><span class="reagent_icon" data-character="{{{1|}}}" style="white-space: nowrap">[[File:{{{1|Reagent}}} | + | </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}}}}}}]]{{<!-- |
-->#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:35, 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.
{{Reagent |Name of Reagent |Custom link name |icononly= }}
Examples of using the tempate
{{Reagent|Garlic}}
- Garlic
{{Reagent|Garlic|Spicy Garlic }}
- Spicy Garlic
{{Reagent|Garlic|icononly=yes}}