Difference between revisions of "Template:EnhItem"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 12: | Line 12: | ||
|description= | |description= | ||
|tree1name= | |tree1name= | ||
|tree1enhancementname= | |||
|tree1icon= | |tree1icon= | ||
|tree1requirements= | |tree1requirements= | ||
|tree2name= | |tree2name= | ||
|tree2enhancementname= | |||
|tree2icon= | |tree2icon= | ||
|tree2requirements= | |tree2requirements= | ||
|tree3name= | |tree3name= | ||
|tree3enhancementname= | |||
|tree3icon= | |tree3icon= | ||
|tree3requirements= | |tree3requirements= | ||
|tree4name= | |tree4name= | ||
|tree4enhancementname= | |||
|tree4icon= | |tree4icon= | ||
|tree4requirements= | |tree4requirements= | ||
|tree5name= | |tree5name= | ||
|tree5enhancementname= | |||
|tree5icon= | |tree5icon= | ||
|tree5requirements= | |tree5requirements= | ||
Line 34: | Line 39: | ||
|parameter1name = name | |parameter1name = name | ||
|parameter1description = The name of the enhancement (or epic destiny) | |parameter1description = The name of the enhancement (or epic destiny) | ||
| | |parameter2name = link | ||
|parameter2description = The actual file on the wiki, if it is different then then name | |||
| | |parameter3name = ranks | ||
| | |parameter3description = How many ranks does this enhancement have. | ||
|parameter4name = cost | |||
| | |parameter4description = How many points does it cost per rank. | ||
| | |parameter5name = rank1benefit | ||
|parameter5description = What benefits are gained at rank 1, use a bulleted list if > 1 | |||
| | |parameter6name = rank2benefit | ||
| | |parameter6description = What benefits are gained at rank 2, use a bulleted list if > 1 | ||
|parameter7name = rank3benefit | |||
| | |parameter7description = What benefits are gained at rank 3, use a bulleted list if > 1 | ||
| | |parameter8name = benefitline | ||
|parameter8description = A short description of the benefits that shows up in the table above the individual ranks, when there is > 1 rank | |||
| | |parameter9name = description | ||
| | |parameter9description = A detailed description of the enhancement | ||
|parameter10name = tree1name | |||
| | |parameter10description = The name of the first tree that has this enhancement | ||
| | |parameter11name = tree1enhancementname | ||
|parameter11description = The name that this tree calls the enhancement if it is different than the main name | |||
| | |parameter12name = tree1icon | ||
| | |parameter12description = The icon to use, if not default | ||
|parameter13name = tree1requirements | |||
| | |parameter13description = The information specific to that tree for this enhancement. Use [[Template:EnhancementTreeItemRequirement]] | ||
| | |parameter14name = tree2name | ||
|parameter14description = The name of the second tree that has this enhancement | |||
| | |parameter15name = tree2enhancementname | ||
| | |parameter15description = The name that this tree calls the enhancement if it is different than the main name | ||
| | |parameter16name = tree2icon | ||
| | |||
| | |||
| | |||
| | |||
| | |||
|parameter15name = | |||
|parameter15description = The name | |||
|parameter16name = | |||
|parameter16description = The icon to use, if not default | |parameter16description = The icon to use, if not default | ||
|parameter17name = tree2requirements | |||
|parameter17name = | |||
|parameter17description = The information specific to that tree for this enhancement. Use [[Template:EnhancementTreeItemRequirement]] | |parameter17description = The information specific to that tree for this enhancement. Use [[Template:EnhancementTreeItemRequirement]] | ||
| | |parameter18name = tree3name | ||
| | |parameter18description = The name of the third tree that has this enhancement | ||
| | |parameter19name = tree3enhancementname | ||
| | |parameter19description = The name that this tree calls the enhancement if it is different than the main name | ||
| | |parameter20name = tree3icon | ||
| | |parameter20description = The icon to use, if not default | ||
| | |parameter21name = tree3requirements | ||
|parameter21description = The information specific to that tree for this enhancement. Use [[Template:EnhancementTreeItemRequirement]] | |||
| | |parameter22name = tree4name | ||
| | |parameter22description = The name of the fourth tree that has this enhancement | ||
|parameter23name = tree4enhancementname | |||
| | |parameter23description = The name that this tree calls the enhancement if it is different than the main name | ||
| | |parameter24name = tree4icon | ||
| | |parameter24description = The icon to use, if not default | ||
| | |parameter25name = tree4requirements | ||
| | |parameter25description = The information specific to that tree for this enhancement. Use [[Template:EnhancementTreeItemRequirement]] | ||
|parameter26name = tree5name | |||
| | |parameter25description = The name of the fifth tree that has this enhancement | ||
|parameter27name = tree5enhancementname | |||
|parameter27description = The name that this tree calls the enhancement if it is different than the main name | |||
|parameter28name = tree5icon | |||
|parameter28description = The icon to use, if not default | |||
|parameter29name = tree5requirements | |||
|parameter29description = The information specific to that tree for this enhancement. Use [[Template:EnhancementTreeItemRequirement]] | |||
}}</noinclude> | }}</noinclude> | ||
<onlyinclude> | <onlyinclude> | ||
{{#switch: {{lc:{{#dplvar:displaystyle}}}} | {{#switch: {{lc:{{#dplvar:displaystyle}}}} | ||
| 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''': | | 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}}}|{{#ifeq: {{#dplvar:tree}}|{{{tree1name|}}}|{{tree1enhancementname|name}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree2name|}}}|{{tree2enhancementname|name}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree3name|}}}|{{tree3enhancementname|name}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree4name|}}}|{{tree4enhancementname|name}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree5name|}}}|{{tree5enhancementname|name}}}}]]|[[{{#ifeq: {{#dplvar:tree}}|{{{tree1name|}}}|{{tree1enhancementname|name}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree2name|}}}|{{tree2enhancementname|name}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree3name|}}}|{{tree3enhancementname|name}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree4name|}}}|{{tree4enhancementname|name}}}}{{#ifeq: {{#dplvar:tree}}|{{{tree5name|}}}|{{tree5enhancementname|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''': | ||
{{{rank1benefit}}}</td></tr><tr class="compendiumtableborder"><td>'''Rank 2''': | {{{rank1benefit}}}</td></tr><tr class="compendiumtableborder"><td>'''Rank 2''': | ||
Revision as of 16:53, 29 June 2018
{{EnhancementTreeItem |name= |link= |ranks= |cost= |rank1benefit= |rank2benefit= |rank3benefit= |benefitline= |description= |tree1name= |tree1enhancementname= |tree1icon= |tree1requirements= |tree2name= |tree2enhancementname= |tree2icon= |tree2requirements= |tree3name= |tree3enhancementname= |tree3icon= |tree3requirements= |tree4name= |tree4enhancementname= |tree4icon= |tree4requirements= |tree5name= |tree5enhancementname= |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 | |
name | The name of the enhancement (or epic destiny) |
link | The actual file on the wiki, if it is different then then name |
ranks | How many ranks does this enhancement have. |
cost | How many points does it cost per rank. |
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 |
benefitline | A short description of the benefits that shows up in the table above the individual ranks, when there is > 1 rank |
description | A detailed description of the enhancement |
tree1name | The name of the first tree that has this enhancement |
tree1enhancementname | The name that this tree calls the enhancement if it is different than the main name |
tree1icon | The icon to use, if not default |
tree1requirements | The information specific to that tree for this enhancement. Use Template:EnhancementTreeItemRequirement |
tree2name | The name of the second tree that has this enhancement |
tree2enhancementname | The name that this tree calls the enhancement if it is different than the main name |
tree2icon | The icon to use, if not default |
tree2requirements | The information specific to that tree for this enhancement. Use Template:EnhancementTreeItemRequirement |
tree3name | The name of the third tree that has this enhancement |
tree3enhancementname | The name that this tree calls the enhancement if it is different than the main name |
tree3icon | The icon to use, if not default |
tree3requirements | The information specific to that tree for this enhancement. Use Template:EnhancementTreeItemRequirement |
tree4name | The name of the fourth tree that has this enhancement |
tree4enhancementname | The name that this tree calls the enhancement if it is different than the main name |
tree4icon | The icon to use, if not default |
tree4requirements | The name of the fifth tree that has this enhancement |
tree5name | {{{parameter26description}}} |
tree5enhancementname | The name that this tree calls the enhancement if it is different than the main name |
tree5icon | The icon to use, if not default |
tree5requirements | The 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.
|
|