Difference between revisions of "Template:Ingredient"

From DDO Compendium
m
m
Line 22: Line 22:
|parameter3values =  
|parameter3values =  
* None (No icon)
* None (No icon)
* Forced (requires icon, will display red link)
* <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)
Line 27: Line 28:
|parameter4description =  
|parameter4description =  
|parameter4values =  
|parameter4values =  
}}</noinclude><onlyinclude>{{#if: {{{2|}}} | {{{2|}}} | 1 }} {{#ifeq: {{{3|}}} | None | | {{#ifexist: File:{{#if: {{{3|}}}|{{{3|}}}|{{{1}}}}}_Icon.png | {{IconImage|{{{1}}}|{{{3|}}}|{{{1|}}}}} | }}}} [[{{{1|}}}]]</onlyinclude>
}}</noinclude><onlyinclude>{{#if: {{{2|}}} | {{{2|}}} | 1 }} {{#switch: {{lc:{{{3|}}}}}
| None
| Force = {{IconImage|{{{1}}}|{{{3|}}}|{{{1|}}}}}
| {{#ifexist: File:{{#if: {{{3|}}}|{{{3|}}}|{{{1}}}}}_Icon.png | {{IconImage|{{{1}}}|{{{3|}}}|{{{1|}}}}} | }}}} [[{{{1|}}}]]</onlyinclude>

Revision as of 19:55, 4 June 2019

Ingredient[edit]

Template for a consistent appearance of ingredients in recipes.

Example Usage
{{Ingredient|Silver Flame Trinket}}1 Silver Flame Trinket
{{Ingredient|Dark Scarab Powder|5}}
Has no Icon in database
5 Dark Scarab Powder
{{Ingredient|Dark Scarab Powder|5|Ingredient Scarab}}5 Ingredient Scarab Icon.png Dark Scarab Powder
{{Ingredient|Silver Flame Trinket|5|None}}5 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:
  • None (No icon)
  • Forced (requires icon, will display red link)
  • <Icon Name> (Redact .png)
  • Blank (defaults to using a standard icon naming format)

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


1 [[]]