Difference between revisions of "Template:Ingredient"
From DDO Compendium
m |
MNDeveloper (talk | contribs) |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
|example2 = <nowiki>{{Ingredient|Dark Scarab Powder|5}}</nowiki><br>Has no Icon in database | |example2 = <nowiki>{{Ingredient|Dark Scarab Powder|5}}</nowiki><br>Has no Icon in database | ||
|example2output = {{Ingredient|Dark Scarab Powder|5}} | |example2output = {{Ingredient|Dark Scarab Powder|5}} | ||
|example3 = <nowiki>{{Ingredient| | |example3 = <nowiki>{{Ingredient|Lily Petal (Collectable)|5}</nowiki> | ||
|example3output = {{Ingredient| | |example3output = {{Ingredient|Lily Petal (Collectable)|5}} | ||
|example4 = <nowiki>{{Ingredient| | |example4 = <nowiki>{{Ingredient|Verdant Swamp Pearl|3}}</nowiki> | ||
|example4output = {{Ingredient| | |example4output = {{Ingredient|Verdant Swamp Pearl|3}} | ||
|parameter1name = | |parameter1name = page name | ||
|parameter1description = | |parameter1description = The Ingredient page | ||
| | |parameter2name = Count | ||
| | |parameter2description = Number of Ingredients required | ||
|parameter2values = Any Integer (Defaults to 1) | |parameter2values = Any Integer (Defaults to 1) | ||
}}</noinclude><onlyinclude>{{#ifexist: {{{1}}}|{{#dplvar:set|rendertype|ingredient|ingcount|{{#if: {{{2|}}}|{{formatnum:{{{2}}}}}|1}}}}{{:{{{1}}}}}{{#dplvar:set|rendertype||ingcount|}}|{{#if: {{{2|}}}|{{{2}}}|1}}x [[{{{1}}}]]}}{{#if: {{{3|}}}{{{4|}}}|[[Category: Pages with old Ingredient Template]]}}</onlyinclude> | |||
}}</noinclude><onlyinclude>{{# | |||
| | |||
Latest revision as of 11:14, 1 April 2022
Ingredient[edit]
Template for a consistent appearance of ingredients in recipes.
Example Usage | |
{{Ingredient|Silver Flame Trinket}} | 1x Silver Flame Trinket |
{{Ingredient|Dark Scarab Powder|5}} Has no Icon in database | 5x Dark Scarab Powder |
{{Ingredient|Lily Petal (Collectable)|5} | 5x Lily Petal |
{{Ingredient|Verdant Swamp Pearl|3}} | 3x Verdant Swamp Pearl |
Usage[edit]
Parameter Documentation | |
page name | The Ingredient page |
Count | Number of Ingredients required Possible Values: Any Integer (Defaults to 1) |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
1x [[{{{1}}}]]