Difference between revisions of "Template:EnhItem"

From DDO Compendium
Line 3: Line 3:
{{EnhancementTreeItem
{{EnhancementTreeItem
|name=
|name=
|link=
|ranks=
|ranks=
|cost=
|rank1benefit=
|rank1benefit=
|rank2benefit=
|rank2benefit=
|rank3benefit=
|rank3benefit=
|cost=
|benefitline=
|pointsrequired=
|requirements=
|description=
|description=
|icon=
|tree1name=
|tree1icon=
|tree1requirements=
|tree2name=
|tree2icon=
|tree2requirements=
|tree3name=
|tree3icon=
|tree3requirements=
|tree4name=
|tree4icon=
|tree4requirements=
|tree5name=
|tree5icon=
|tree5requirements=
}}
}}
</pre>
</pre>
{{TemplateDocumentation
{{TemplateDocumentation
|name = EnhancementTreeItem
|name = EnhancementTreeItem
|description = This template is used to render information about an individual item on an enhancement tree.
|description = This template is used to render information about an individual item on an enhancement tree or epic destiny.
|usesnamedparameters = true
|usesnamedparameters = true
|parameter1name = name
|parameter1name = name
|parameter1description = The name of the item
|parameter1description = The name of the enhancement (or epic destiny)
|parameter1values =
|parameter1name = link
|parameter1description = The actual file on the wiki, if it is different then then name
|parameter1values =  
|parameter1values =  
|parameter2name = ranks
|parameter2name = ranks
|parameter2description = How many ranks does this item have.
|parameter2description = How many ranks does this enhancement have.
|parameter2values =  
|parameter2values =  
|parameter3name = rank1benefit
|parameter3name = cost
|parameter3description = What benefits are gained at rank 1, use a bulleted list if > 1
|parameter3description = How many points does it cost per rank.
|parameter3values =  
|parameter3values =  
|parameter4name = rank2benefit
|parameter4name = rank1benefit
|parameter4description = What benefits are gained at rank 2, use a bulleted list if > 1
|parameter4description = What benefits are gained at rank 1, use a bulleted list if > 1
|parameter4values =  
|parameter4values =  
|parameter5name = rank3benefit
|parameter5name = rank2benefit
|parameter5description = What benefits are gained at rank 3, use a bulleted list if > 1
|parameter5description = What benefits are gained at rank 2, use a bulleted list if > 1
|parameter5values =  
|parameter5values =  
|parameter6name = cost
|parameter6name = rank3benefit
|parameter6description = How many points does it cost per rank.
|parameter6description = What benefits are gained at rank 3, use a bulleted list if > 1
|parameter6values =  
|parameter6values =  
|parameter7name = pointsrequired
|parameter7name = benefitline
|parameter7description = How many points spent in the tree are required
|parameter7description = A short description of the benefits that shows up in the table above the individual ranks, when there is > 1 rank
|parameter7values =  
|parameter7values =  
|parameter8name = requirements
|parameter8name = description
|parameter8description = What other requirements are needed for this item. bulleted list.
|parameter8description = A detailed description of the enhancement
|parameter8values =  
|parameter8values =  
|parameter9name = description
|parameter9name = tree1name
|parameter9description = A description to show about the benefits table, when there are > 1 benefit.
|parameter9description = The name of the first tree that has this enhancement
|parameter9values =  
|parameter9values =  
|parameter10name = icon
|parameter10name = tree1icon
|parameter10description = The name of the icon. _Icon.png will be added to the end of what you send in hereIf 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.
|parameter10description = The icon to use, if not default
|parameter10values=
|parameter10values =
|parameter11name = tree1requirements
|parameter11description = The information specific to that tree for this enhancement.  Use [[Template:EnhancementTreeItemRequirement]]
|parameter11values =
|parameter12name = tree2name
|parameter12description = The name of the first tree that has this enhancement
|parameter12values =
|parameter13name = tree2icon
|parameter13description = The icon to use, if not default
|parameter13values =
|parameter14name = tree2requirements
|parameter14description = The information specific to that tree for this enhancementUse [[Template:EnhancementTreeItemRequirement]]
|parameter14values =
|parameter15name = tree3name
|parameter15description = The name of the first tree that has this enhancement
|parameter15values =
|parameter16name = tree3icon
|parameter16description = The icon to use, if not default
|parameter16values =
|parameter17name = tree3requirements
|parameter17description = The information specific to that tree for this enhancement.  Use [[Template:EnhancementTreeItemRequirement]]
|parameter17values =
|parameter18name = tree4name
|parameter18description = The name of the first tree that has this enhancement
|parameter18values =
|parameter19name = tree4icon
|parameter19description = The icon to use, if not default
|parameter19values =
|parameter20name = tree4requirements
|parameter20description = The information specific to that tree for this enhancement.  Use [[Template:EnhancementTreeItemRequirement]]
|parameter20values =
|parameter21name = tree5name
|parameter21description = The name of the first tree that has this enhancement
|parameter21values =
|parameter22name = tree5icon
|parameter22description = The icon to use, if not default
|parameter22values =
|parameter23name = tree5requirements
|parameter23description = The information specific to that tree for this enhancement. Use [[Template:EnhancementTreeItemRequirement]]
|parameter23values =  
}}</noinclude>
}}</noinclude>
<onlyinclude>
<onlyinclude>
<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>
{{#switch: {{lc:{{#dplvar:displaystyle}}}}
<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;
| table = <tr><td data-th="Enhancement"><table class="compendiumtablecolor"><tr><td>{{#ifeq: {{#dplvar:tree}}|{{{tree1name|}}}|{{IconImage|Enhancement_{{{name|}}}|{{{tree1icon|}}}}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree2name|}}}|{{IconImage|Enhancement_{{{name|}}}|{{{tree2icon|}}}}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree3name|}}}|{{IconImage|Enhancement_{{{name|}}}|{{{tree3icon|}}}}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree4name|}}}|{{IconImage|Enhancement_{{{name|}}}|{{{tree4icon|}}}}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree5name|}}}|{{IconImage|Enhancement_{{{name|}}}|{{{tree5icon|}}}}}}}</td></tr><tr><td>'''{{#if: {{{link|}}}|[[{{{link}}}|{{{name}}}]]|[[{{{name}}}]]}}'''</td></tr></table></td><td data-th="Benefits">{{#ifexpr: {{{ranks}}} > 1|<table class="compendiumtablecolor" style="width:100%">{{#if: {{{benefitline|}}}|<tr class="compendiumtableborder"><td>{{{benefitline}}}</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;


{{{rank2benefit}}}</td></tr>{{#if: {{{rank3benefit|}}}|<tr><td>'''Rank 3''':&nbsp;
{{{rank2benefit}}}</td></tr>{{#if: {{{rank3benefit|}}}|<tr><td>'''Rank 3''':&nbsp;


{{{rank3benefit}}}</td></tr>}}</table>|
{{{rank3benefit}}}</td></tr>}}</table>|{{{rank1benefit}}}}}</td><td data-th="Ranks" class="centerdata">{{{ranks}}}</td><td data-th="Action Point Cost" class="centerdata">{{{cost}}}</td>{{#ifeq: {{#dplvar:tree}}|{{{tree1name|}}}|{{{tree1requirements}}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree2name}}}|{{{tree2requirements}}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree3name|}}}|{{{tree3requirements}}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree4name}}}|{{{tree4requirements}}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree5name|}}}|{{{tree5requirements}}}}}</tr>
{{{rank1benefit}}}}}</td><td data-th="Ranks" class="centerdata">{{{ranks}}}</td><td data-th="Action Point Cost" class="centerdata">{{{cost}}}</td><td data-th="Points Spent" class="centerdata">{{{pointsrequired}}}</td><td data-th="Requirements">
| #default=<table class="item-table background-color">
<tr>
<td class="item-info-side">
<table class="background-color full">
<tr>
<td>
<table class="background-color">
<tr>
<td class="icon">
<!-- Icon Image -->
{{IconImage|{{{name|}}}|{{{tree1icon|}}}}}
</td>
<td class="title">
'''{{{name}}}'''
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
'''Ranks: ''' {{{ranks}}}<br>
'''Action Points:''' {{{cost}}} per rank<br>
'''Benefits:'''
{{#ifexpr: {{{ranks}}} > 1|<table class="background-color" style="width:100%">{{#if: {{{benefitline|}}}|<tr class="compendiumtableborder"><td>{{{benefitline}}}</td></tr>}}<tr class="compendiumtableborder"><td>'''Rank 1''':&nbsp;
{{{rank1benefit}}}</td></tr><tr class="compendiumtableborder"><td>'''Rank 2''':&nbsp;
 
{{{rank2benefit}}}</td></tr>{{#if: {{{rank3benefit|}}}|<tr><td>'''Rank 3''':&nbsp;


{{{requirements|None}}}</td></tr>
{{{rank3benefit}}}</td></tr>}}</table>|<br>
</onlyinclude>
{{{rank1benefit}}}}}
{{#if: {{{description|}}}|<br>'''Description:'''<br>{{{description}}}}}</td>
</tr>
</table>
</td>
<td class="item-image-side">
<table class="item-image-table background-color" >
<tr>
<td class="extra-details"><table class="background-color full"><tr class="compendiumtableborder" style="text-align:center"><td>'''Requirements'''</td></tr><tr {{{#if: {{{tree2name|}}}{{{tree3name|}}}{{{tree4name|}}}{{{tree5name|}}}|class="compendiumtableborder"}}><td>{{IconImage|Enhancement_{{{name|}}}|{{{tree1icon|}}}}}<br>{{{tree1requirements}}}</td></tr>{{#if: {{{tree2name|}}}|<tr {{{#if: {{{tree3name|}}}{{{tree4name|}}}{{{tree5name|}}}|class="compendiumtableborder"}}><td>{{IconImage|Enhancement_{{{name|}}}|{{{tree2icon|}}}}}{{{tree2requirements}}}</td></tr>}}{{#if: {{{tree3name|}}}|<tr {{#if: {{{tree4name|}}}{{{tree5name|}}}|class="compendiumtableborder"}}><td>{{IconImage|Enhancement_{{{name|}}}|{{{tree3icon|}}}}}{{{tree3requirements}}}</td></tr>}}{{#if: {{{tree4name|}}}|<tr {{{#if: {{{tree5name|}}}|class="compendiumtableborder"}}><td>{{IconImage|Enhancement_{{{name|}}}|{{{tree4icon|}}}}}<br>{{{tree4requirements}}}</td></tr>}}{{#if: {{{tree5name|}}}|<tr><td>{{IconImage|Enhancement_{{{name|}}}|{{{tree5icon|}}}}}{{{tree5requirements}}}</td></tr>}}</table></td></tr></table></td></tr></table>}}</onlyinclude>

Revision as of 14:59, 29 June 2018

{{EnhancementTreeItem
|name=
|link=
|ranks=
|cost=
|rank1benefit=
|rank2benefit=
|rank3benefit=
|benefitline=
|description=
|tree1name=
|tree1icon=
|tree1requirements=
|tree2name=
|tree2icon=
|tree2requirements=
|tree3name=
|tree3icon=
|tree3requirements=
|tree4name=
|tree4icon=
|tree4requirements=
|tree5name=
|tree5icon=
|tree5requirements=
}}

EnhancementTreeItem[edit]

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

Usage[edit]

Parameter Documentation
linkThe actual file on the wiki, if it is different then then name
ranksHow many ranks does this enhancement have.
costHow many points does it cost per rank.
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
benefitlineA short description of the benefits that shows up in the table above the individual ranks, when there is > 1 rank
descriptionA detailed description of the enhancement
tree1nameThe name of the first tree that has this enhancement
tree1iconThe icon to use, if not default
tree1requirementsThe information specific to that tree for this enhancement. Use Template:EnhancementTreeItemRequirement
tree2nameThe name of the first tree that has this enhancement
tree2iconThe icon to use, if not default
tree2requirementsThe information specific to that tree for this enhancement. Use Template:EnhancementTreeItemRequirement
tree3nameThe name of the first tree that has this enhancement
tree3iconThe icon to use, if not default
tree3requirementsThe information specific to that tree for this enhancement. Use Template:EnhancementTreeItemRequirement
tree4nameThe name of the first tree that has this enhancement
tree4iconThe icon to use, if not default
tree4requirementsThe information specific to that tree for this enhancement. Use Template:EnhancementTreeItemRequirement
tree5nameThe name of the first tree that has this enhancement
tree5iconThe icon to use, if not default
tree5requirementsThe information specific to that tree for this enhancement. Use Template:EnhancementTreeItemRequirement

Template

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


File:Icon.png

{{{name}}}

Ranks: {{{ranks}}}
Action Points: {{{cost}}} per rank
Benefits: Expression error: Unrecognized punctuation character "{".

Requirements
File:Enhancement Icon.png
{{{tree1requirements}}}