Difference between revisions of "Template:Ingredient"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 4: | Line 4: | ||
|category = Shared Templates | |category = Shared Templates | ||
|usesnamedparameters = no | |usesnamedparameters = no | ||
|example1 = <nowiki>{{ | |example1 = <nowiki>{{Ingredient|Silver Flame Trinket}}</nowiki> | ||
|example1output = {{ | |example1output = {{Ingredient|Silver Flame Trinket}} | ||
|example2 = <nowiki>{{ | |example2 = <nowiki>{{Ingredient|Dark Scarab Powder|5}}</nowiki><br>Has no Icon in database | ||
|example2output = {{ | |example2output = {{Ingredient|Dark Scarab Powder|5}} | ||
|example3 = <nowiki>{{ | |example3 = <nowiki>{{Ingredient|Lily Petal (Collectable)|5}</nowiki> | ||
|example3output = {{ | |example3output = {{Ingredient|Lily Petal (Collectable)|5}} | ||
|example4 = <nowiki>{{ | |example4 = <nowiki>{{Ingredient|Verdant Swamp Pearl|3}}</nowiki> | ||
|example4output = {{ | |example4output = {{Ingredient|Verdant Swamp Pearl|3}} | ||
|parameter1name = page name | |parameter1name = page name | ||
|parameter1description = The Ingredient page | |parameter1description = The Ingredient page | ||
Line 17: | Line 17: | ||
|parameter2description = Number of Ingredients required | |parameter2description = Number of Ingredients required | ||
|parameter2values = Any Integer (Defaults to 1) | |parameter2values = Any Integer (Defaults to 1) | ||
}}</noinclude><onlyinclude>{{#dplvar:set|rendertype|ingredient|ingcount|{{{2|1}}}}}{{:{{{1}}}}}</onlyinclude> | }}</noinclude><onlyinclude>{{#ifexist: {{{1}}}|{{#dplvar:set|rendertype|ingredient|ingcount|{{{2|1}}}}}{{:{{{1}}}}}|{{{2|1}}}x [[{{{1}}}]]}}</onlyinclude> |
Revision as of 14:35, 16 October 2021
Ingredient[edit]
Template for a consistent appearance of ingredients in recipes.
Example Usage | |
{{Ingredient|Silver Flame Trinket}} | ![]() |
{{Ingredient|Dark Scarab Powder|5}} Has no Icon in database | ![]() |
{{Ingredient|Lily Petal (Collectable)|5} | ![]() |
{{Ingredient|Verdant Swamp Pearl|3}} | ![]() |
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}}}]]