Difference between revisions of "Template:Reagent/doc"
From Pangaea Wiki
MyraMidnight (Talk | contribs) (Created page with "{{documentation subpage}} ===Template Parameters=== This template relies on undefined parameters, which means it matters in which order you write them. #The first undefined p...") |
MyraMidnight (Talk | contribs) (→Examples of using the tempate) |
||
| Line 59: | Line 59: | ||
==Examples of using the tempate== | ==Examples of using the tempate== | ||
| − | + | {|class=wikitable | |
| − | + | !code || results | |
| − | + | |- | |
| − | + | |<code>{{Reg|Garlic}}</code> | |
| − | + | |{{Reg|Garlic}} | |
| − | + | |- | |
| + | |<code>{{Reg|Garlic|Spicy Garlic }}</code> | ||
| + | |{{Reg|Garlic|Spicy Garlic}} | ||
| + | |- | ||
| + | |<code>{{Reg|''Garlic''|icononly=yes}}</code> | ||
| + | |{{Reg|Garlic|icononly=yes}} | ||
| + | |} | ||
<includeonly>[[category:template-forms]]</includeonly> | <includeonly>[[category:template-forms]]</includeonly> | ||
Revision as of 13:53, 13 August 2018
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=
}}
Compatible Reagent names
Wiki is very case senstive, except when it comes to the FIRST letter of a link/file name.
| Normal Reagents | Special Reagents | Other Reagents |
|---|---|---|
|
|
|
Examples of using the tempate
| code | results |
|---|---|
{{Reg|Garlic}}
|
|
{{Reg|Garlic|Spicy Garlic }}
|
|
{{Reg|Garlic|icononly=yes}}
|