Difference between revisions of "Template:EnhItemReq"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 13: | Line 13: | ||
|parameter1name = tree | |parameter1name = tree | ||
|parameter1description = The tree for these requirements | |parameter1description = The tree for these requirements | ||
|parameter2name = name | |parameter2name = name | ||
|parameter2description = The name of the enhancement in this tree | |parameter2description = The name of the enhancement in this tree | ||
|parameter3name = pointsrequired | |parameter3name = pointsrequired | ||
|parameter3description = How many points spent in the tree are required | |parameter3description = How many points spent in the tree are required | ||
| | |parameter4name = corerequirements | ||
| | |parameter4description = What other requirements are needed for this item for core. bulleted list. This is used in any tier if there aren't other specific tier requirements. | ||
| | |parameter5name = coreantirequirements | ||
| | |parameter5description = What would not allow you to take this for core. bulleted list. This is used in any tier if there aren't other specific tier antirequirements. | ||
| | |parameter6name = tier1requirements | ||
| | |parameter6description = What other requirements are needed for this item for tier1. bulleted list. | ||
| | |parameter7name = tier1antirequirements | ||
|parameter7description = What would not allow you to take this for tier1. bulleted list. | |||
|parameter8name = tier2requirements | |||
|parameter8description = What other requirements are needed for this item for tier2. bulleted list. | |||
|parameter9name = tier2antirequirements | |||
|parameter9description = What would not allow you to take this for tier2. bulleted list. | |||
|parameter10name = tier3requirements | |||
|parameter10description = What other requirements are needed for this item for tier3. bulleted list. | |||
|parameter11name = tier3antirequirements | |||
|parameter11description = What would not allow you to take this for tier3. bulleted list. | |||
|parameter12name = tier4requirements | |||
|parameter12description = What other requirements are needed for this item for tier4. bulleted list. | |||
|parameter13name = tier4antirequirements | |||
|parameter13description = What would not allow you to take this for tier4. bulleted list. | |||
|parameter14name = tier5requirements | |||
|parameter14description = What other requirements are needed for this item for tier5. bulleted list. | |||
|parameter15name = tier5antirequirements | |||
|parameter15description = What would not allow you to take this for tier5. bulleted list. | |||
|parameter16name = tier6requirements | |||
|parameter16description = What other requirements are needed for this item for tier6. bulleted list. | |||
|parameter17name = tier6antirequirements | |||
|parameter17description = What would not allow you to take this for tier6. bulleted list. | |||
}}</noinclude><onlyinclude>{{#switch: {{lc:{{#dplvar:display}}}} | }}</noinclude><onlyinclude>{{#switch: {{lc:{{#dplvar:display}}}} | ||
|table=<td data-th="Points Spent" class="centerdata">{{{3}}}</td><td data-th="Requirements"> | |table=<td data-th="Points Spent" class="centerdata">{{{3}}}</td><td data-th="Requirements"> | ||
{{#if: {{{6|}}}{{{8|}}}{{{10|}}}{{{12|}}}{{{14|}}}{{{16|}}}|{{#ifeq: {{#dplvar:location}}|core| | |||
{{{4|None}}}{{#if: {{{5|}}}| | {{{4|None}}}{{#if: {{{5|}}}| | ||
;<span style="color:red">Antirequirements</span> | ;<span style="color:red">Antirequirements</span> | ||
{{{5}}}}}</td> | {{{5}}}}}}}{{#ifeq: {{#dplvar:location}}|tier1| | ||
{{{6|None}}}{{#if: {{{7|}}}| | |||
;<span style="color:red">Antirequirements</span> | |||
{{{7}}}}}}}{{#ifeq: {{#dplvar:location}}|tier2| | |||
{{{8|None}}}{{#if: {{{9|}}}| | |||
;<span style="color:red">Antirequirements</span> | |||
{{{9}}}}}}}{{#ifeq: {{#dplvar:location}}|tier3| | |||
{{{10|None}}}{{#if: {{{11|}}}| | |||
;<span style="color:red">Antirequirements</span> | |||
{{{11}}}}}}}{{#ifeq: {{#dplvar:location}}|tier4| | |||
{{{12|None}}}{{#if: {{{13|}}}| | |||
;<span style="color:red">Antirequirements</span> | |||
{{{13}}}}}}}{{#ifeq: {{#dplvar:location}}|tier5| | |||
{{{14|None}}}{{#if: {{{15|}}}| | |||
;<span style="color:red">Antirequirements</span> | |||
{{{15}}}}}}}{{#ifeq: {{#dplvar:location}}|tier6| | |||
{{{16|None}}}{{#if: {{{17|}}}| | |||
;<span style="color:red">Antirequirements</span> | |||
{{{17}}}}}}}| | |||
{{{4|None}}}{{#if: {{{5|}}}| | |||
;<span style="color:red">Antirequirements</span> | |||
{{{5}}}}}}}</td> | |||
|#default='''{{{1}}}''' - ''{{{2}}}''<br> | |#default='''{{{1}}}''' - ''{{{2}}}''<br> | ||
* {{#ifexpr: {{{3}}} = 0|No|{{{3}}}}} Action Points spent in Tree<br>{{#if: {{{4|}}}| | * {{#ifexpr: {{{3}}} = 0|No|{{{3}}}}} Action Points spent in Tree<br>{{#if: {{{6|}}}{{{8|}}}{{{10|}}}{{{12|}}}{{{14|}}}{{{16|}}}| | ||
{{#if: {{{4|}}}{{{5|}}}|;Core<br>{{#if: {{{4|}}}| | |||
{{{4}}}}}{{#if: {{{5|}}}| | |||
;<span style="color:red">Antirequirements</span>{{{5}}}}}}} | |||
{{#if: {{{6|}}}{{{7|}}}|;Tier 1<br>{{#if: {{{6|}}}| | |||
{{{6}}}}}{{#if: {{{7|}}}| | |||
;<span style="color:red">Antirequirements</span>{{{7}}}}}}} | |||
{{#if: {{{8|}}}{{{9|}}}|;Tier 2<br>{{#if: {{{8|}}}| | |||
{{{8}}}}}{{#if: {{{9|}}}| | |||
;<span style="color:red">Antirequirements</span>{{{9}}}}}}} | |||
{{#if: {{{10|}}}{{{11|}}}|;Tier 3<br>{{#if: {{{10|}}}| | |||
{{{10}}}}}{{#if: {{{11|}}}| | |||
;<span style="color:red">Antirequirements</span>{{{11}}}}}}} | |||
{{#if: {{{12|}}}{{{13|}}}|;Tier 4<br>{{#if: {{{12|}}}| | |||
{{{10}}}}}{{#if: {{{13|}}}| | |||
;<span style="color:red">Antirequirements</span>{{{13}}}}}}} | |||
{{#if: {{{14|}}}{{{15|}}}|;Tier 5<br>{{#if: {{{14|}}}| | |||
{{{10}}}}}{{#if: {{{15|}}}| | |||
;<span style="color:red">Antirequirements</span>{{{15}}}}}}} | |||
{{#if: {{{16|}}}{{{17|}}}|;Tier 6<br>{{#if: {{{16|}}}| | |||
{{{16}}}}}{{#if: {{{17|}}}| | |||
;<span style="color:red">Antirequirements</span>{{{17}}}}}}}|{{#if: {{{4|}}}| | |||
{{{4}}}}}{{#if: {{{5|}}}| | {{{4}}}}}{{#if: {{{5|}}}| | ||
;<span style="color:red">Antirequirements</span>{{{5}}}}}}}</onlyinclude> | ;<span style="color:red">Antirequirements</span>{{{5}}}}}}}</onlyinclude> |
Revision as of 19:22, 29 June 2018
EnhancementTreeItemRequirement[edit]
Template used for the requirements of a tree item. There may be > 1 in an item.
Example Usage | |
{{EnhancementTreeItemRequirement|Arcanotechnician|Arcanotechnician|0| * Artificer 1}} | Template:EnhancementTreeItemRequirement |
{{#dplvar:set|location|core|tree|Arcanotechnician}}{{#dplvar:set|display|table}}{{EnhancementTreeItemRequirement|Arcanotechnician|Arcanotechnician|0| * Artificer 1}} | Template:EnhancementTreeItemRequirement |
Usage[edit]
{{EnhancementTreeItemRequirement|(tree)|(name)|(pointsrequired)|(corerequirements)|(coreantirequirements)|(tier1requirements)|(tier1antirequirements)|(tier2requirements)|(tier2antirequirements)|(tier3requirements)|(tier3antirequirements)|(tier4requirements)|(tier4antirequirements)|(tier5requirements)|(tier5antirequirements)|(tier6requirements)|(tier6antirequirements)}}
Parameter Documentation | |
tree | The tree for these requirements |
name | The name of the enhancement in this tree |
pointsrequired | How many points spent in the tree are required |
corerequirements | What other requirements are needed for this item for core. bulleted list. This is used in any tier if there aren't other specific tier requirements. |
coreantirequirements | What would not allow you to take this for core. bulleted list. This is used in any tier if there aren't other specific tier antirequirements. |
tier1requirements | What other requirements are needed for this item for tier1. bulleted list. |
tier1antirequirements | What would not allow you to take this for tier1. bulleted list. |
tier2requirements | What other requirements are needed for this item for tier2. bulleted list. |
tier2antirequirements | What would not allow you to take this for tier2. bulleted list. |
tier3requirements | What other requirements are needed for this item for tier3. bulleted list. |
tier3antirequirements | What would not allow you to take this for tier3. bulleted list. |
tier4requirements | What other requirements are needed for this item for tier4. bulleted list. |
tier4antirequirements | What would not allow you to take this for tier4. bulleted list. |
tier5requirements | What other requirements are needed for this item for tier5. bulleted list. |
tier5antirequirements | What would not allow you to take this for tier5. bulleted list. |
tier6requirements | What other requirements are needed for this item for tier6. bulleted list. |
tier6antirequirements | What would not allow you to take this for tier6. bulleted list. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{#switch: table
|table={{{3}}}
None
|#default={{{1}}} - {{{2}}}
- Expression error: Unrecognized punctuation character "{". Action Points spent in Tree