Difference between revisions of "Template:EnhItem"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
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''': | <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''': | ||
{{{rank1benefit}}}</td></tr><tr class="compendiumtableborder"><td>'''Rank 2''': | {{{rank1benefit}}}</td></tr><tr class="compendiumtableborder"><td>'''Rank 2''': |
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 | |
name | The name of the item |
ranks | How many ranks does this item have. |
rank1benefit | What benefits are gained at rank 1, use a bulleted list if > 1 |
rank2benefit | What benefits are gained at rank 2, use a bulleted list if > 1 |
rank3benefit | What benefits are gained at rank 3, use a bulleted list if > 1 |
cost | How many points does it cost per rank. |
pointsrequired | How many points spent in the tree are required |
requirements | What other requirements are needed for this item. bulleted list. |
description | A description to show about the benefits table, when there are > 1 benefit. |
icon | 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. |
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