Difference between revisions of "Template:Ingredient"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 14: | Line 14: | ||
|parameter1name = Ingredient Name | |parameter1name = Ingredient Name | ||
|parameter1description = | |parameter1description = | ||
|parameter2name = Number of Ingredients required | |parameter2name = Number of Ingredients required | ||
|parameter2description = | |parameter2description = | ||
Line 25: | Line 24: | ||
* <Icon Name> (Redact .png) | * <Icon Name> (Redact .png) | ||
* Blank (defaults to using a standard icon naming format) | * Blank (defaults to using a standard icon naming format) | ||
|parameter4name = | |parameter4name = Page Name | ||
|parameter4description = | |parameter4description = The name of the page to link to if different than the ingredient name | ||
}}</noinclude><onlyinclude>{{#switch: {{lc:{{{3|}}}}} | }}</noinclude><onlyinclude>{{#switch: {{lc:{{{3|}}}}} | ||
| none = | | none = | ||
| force = {{IconImage|{{{1}}}|{{{1|}}}|{{{1|}}}}} | | force = {{IconImage|{{{1}}}|{{{1|}}}|{{{1|}}}}} | ||
| #default={{#ifexist: File:{{#if: {{{3|}}}|{{{3|}}}|{{{1}}}}}_Icon.png | {{IconImage|{{{1}}}|{{{3|}}}|{{{1|}}}}} | }}}} {{#if: {{{2|}}} | {{{2|}}} | 1 }}x | | #default={{#ifexist: File:{{#if: {{{3|}}}|{{{3|}}}|{{{1}}}}}_Icon.png | {{IconImage|{{{1}}}|{{{3|}}}|{{{1|}}}}} | }}}} {{#if: {{{2|}}} | {{{2|}}} | 1 }}x {{PageLink|{{{1|}}}|{{{4|}}}}}</onlyinclude> |
Revision as of 02:40, 21 May 2020
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|Dark Scarab Powder|5|Ingredient Scarab}} | 5x Dark Scarab Powder |
{{Ingredient|Silver Flame Trinket|5|None}} | 5x Silver Flame Trinket |
Usage[edit]
Parameter Documentation | |
Ingredient Name | |
Number of Ingredients required | Possible Values: Any Integer (Defaults to 1) |
Icon (If any) | Possible Values:
|
Page Name | The name of the page to link to if different than the ingredient name |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
1x [[]]