Difference between revisions of "Template:EnhItem"

From DDO Compendium
Line 11: Line 11:
|requirements=
|requirements=
|description=
|description=
|icon=
}}
}}
</pre>
</pre>
Line 44: Line 45:
|parameter9description = A description to show about the benefits table, when there are > 1 benefit.
|parameter9description = A description to show about the benefits table, when there are > 1 benefit.
|parameter9values =  
|parameter9values =  
|parameter10name = icon
|parameter10description = The name of the icon. _Icon.png will be added to the end of what you send in here.  If this isn't specified, it will use the name of the name of the tree, tier, and name of the enhancement.  This is here to handle the need for duplicates, or when the computed name can't make a valid filename.
|parameter10values=
}}</noinclude>
}}</noinclude>
<onlyinclude>
<onlyinclude>
<tr><td data-th="Enhancement"><table class="compendiumtablecolor"><tr><td>[[File:{{#dplvar:tree}}_{{#dplvar:location}}_{{{name}}}_Icon.png|link=|40px|x40px|]]</td></tr><tr><td>'''{{{name}}}'''</td></tr></table></td>
<tr><td data-th="Enhancement"><table class="compendiumtablecolor"><tr><td>{{#if: {{{icon|}}}|[[File:{{{icon}}}_Icon.png|link=|40px|x40px|]]|[[File:{{#dplvar:tree}}_{{#dplvar:location}}_{{{name}}}_Icon.png|link=|40px|x40px|]]}}</td></tr><tr><td>'''{{{name}}}'''</td></tr></table></td>
<td data-th="Benefits">{{#ifexpr: {{{ranks}}} > 1|<table class="compendiumtablecolor" style="width:100%">{{#if: {{{description|}}}|<tr class="compendiumtableborder"><td>{{{description}}}</td></tr>}}<tr class="compendiumtableborder"><td>'''Rank 1''':&nbsp;
<td data-th="Benefits">{{#ifexpr: {{{ranks}}} > 1|<table class="compendiumtablecolor" style="width:100%">{{#if: {{{description|}}}|<tr class="compendiumtableborder"><td>{{{description}}}</td></tr>}}<tr class="compendiumtableborder"><td>'''Rank 1''':&nbsp;
{{{rank1benefit}}}</td></tr><tr class="compendiumtableborder"><td>'''Rank 2''':&nbsp;
{{{rank1benefit}}}</td></tr><tr class="compendiumtableborder"><td>'''Rank 2''':&nbsp;

Revision as of 20:55, 14 June 2018

{{EnhancementTreeItem
|name=
|ranks=
|rank1benefit=
|rank2benefit=
|rank3benefit=
|cost=
|pointsrequired=
|requirements=
|description=
|icon=
}}

EnhancementTreeItem[edit]

This template is used to render information about an individual item on an enhancement tree.

Usage[edit]

Parameter Documentation
nameThe name of the item
ranksHow many ranks does this item have.
rank1benefitWhat benefits are gained at rank 1, use a bulleted list if > 1
rank2benefitWhat benefits are gained at rank 2, use a bulleted list if > 1
rank3benefitWhat benefits are gained at rank 3, use a bulleted list if > 1
costHow many points does it cost per rank.
pointsrequiredHow many points spent in the tree are required
requirementsWhat other requirements are needed for this item. bulleted list.
descriptionA description to show about the benefits table, when there are > 1 benefit.
iconThe name of the icon. _Icon.png will be added to the end of what you send in here. If this isn't specified, it will use the name of the name of the tree, tier, and name of the enhancement. This is here to handle the need for duplicates, or when the computed name can't make a valid filename.

Template

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


[[File:__{{{name}}}_Icon.png|link=|40px|x40px|]]
{{{name}}}

Expression error: Unrecognized punctuation character "{".{{{ranks}}}{{{cost}}}{{{pointsrequired}}} None