Difference between revisions of "Template:EnhItemReq"

From DDO Compendium
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{TemplateDocumentation
{{TemplateDocumentation
|name=EnhancementTreeItemRequirement
|name=EnhItemReq
|description= Template used for the requirements of a tree item.  There may be > 1 in an item.
|description= Template used for the requirements of a tree item.  There may be > 1 in an item.
|example1=<nowiki>{{EnhancementTreeItemRequirement|Arcanotechnician|Arcanotechnician|0|
|category=Enhancement Templates
|example1=<nowiki>{{EnhItemReq|Arcanotechnician|Arcanotechnician|0|
* Artificer 1}}</nowiki>
* Artificer 1}}</nowiki>
|example1output={{EnhancementTreeItemRequirement|Arcanotechnician|Arcanotechnician|0|
|example1output={{EnhItemReq|Arcanotechnician|Arcanotechnician|0|
* Artificer 1}}
* Artificer 1}}
|example2=<nowiki>{{#dplvar:set|location|core|tree|Arcanotechnician}}{{#dplvar:set|display|table}}{{EnhancementTreeItemRequirement|Arcanotechnician|Arcanotechnician|0|
|example2=<nowiki>{{#dplvar:set|location|core|tree|Arcanotechnician}}{{#dplvar:set|display|table}}{{EnhItemReq|Arcanotechnician|Arcanotechnician|0|
* Artificer 1}}</nowiki>
* Artificer 1}}</nowiki>
|example2output={{#dplvar:set|location|core|tree|Arcanotechnician}}{{#dplvar:set|display|table}}{{EnhancementTreeItemRequirement|Arcanotechnician|Arcanotechnician|0|
|example2output={{#dplvar:set|location|core|tree|Arcanotechnician}}{{#dplvar:set|display|table}}{{EnhItemReq|Arcanotechnician|Arcanotechnician|0|
* Artificer 1}}
* Artificer 1}}
|parameter1name = tree
|parameter1name = tree
Line 17: Line 18:
|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
|parameter4name = requirements
|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.
|parameter4description = What other requirements are needed for this item . bulleted list.
|parameter5name = coreantirequirements
|parameter5name = antirequirements
|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.
|parameter5description = What would not allow you to take this for core. bulleted list.
|parameter6name = tier1requirements
|parameter6name = tree is ED
|parameter6description = What other requirements are needed for this item for tier1. bulleted list.
|parameter6description = Send in TRUE if the tree is ED
|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">{{#if: {{{6|}}}{{{8|}}}{{{10|}}}{{{12|}}}{{{14|}}}{{{16|}}}|{{#ifeq: {{#dplvar:location}}|core|
|table=<td data-th="Points Spent" class="centerdata">{{{3}}}</td><td data-th="Requirements">
{{{4|None}}}{{#if: {{{5|}}}|
{{{4|None}}}{{#if: {{{5|}}}|
;<span style="color:red">Antirequirements</span>
;<span style="color:red">Antirequisite</span>
{{{5}}}}}}}{{#ifeq: {{#dplvar:location}}|tier1|
{{{5}}}}}</td>
{{{6|None}}}{{#if: {{{7|}}}|
|#default={{#if: {{{1|}}}|'''[[{{{1}}} {{#if: {{{6|}}}||Tree}}|{{{1}}}]]''' - ''{{{2}}}''<br>}}
;<span style="color:red">Antirequirements</span>
* {{#ifexpr: {{{3}}} = 0|No|{{{3}}}}} Points spent in Tree<br>{{#if: {{{4|}}}|
{{{7}}}}}}}{{#ifeq: {{#dplvar:location}}|tier2|
{{{4}}}}}{{#if: {{{5|}}}|
{{{8|None}}}{{#if: {{{9|}}}|
;<span style="color:red">Antirequisite:</span>{{{5}}}}}
;<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}}}}}}}|
{{{4|None}}}{{#if: {{{5|}}}|
;<span style="color:red">Antirequirements</span>
{{{5}}}}}}}</td>
|#default=
}}</onlyinclude>
}}</onlyinclude>

Latest revision as of 16:19, 5 November 2021


EnhItemReq[edit]

Template used for the requirements of a tree item. There may be > 1 in an item.

Example Usage
{{EnhItemReq|Arcanotechnician|Arcanotechnician|0| * Artificer 1}}Arcanotechnician - Arcanotechnician
  • No Points spent in Tree
  • Artificer 1
{{#dplvar:set|location|core|tree|Arcanotechnician}}{{#dplvar:set|display|table}}{{EnhItemReq|Arcanotechnician|Arcanotechnician|0| * Artificer 1}}0
  • Artificer 1

Usage[edit]

{{EnhItemReq|(tree)|(name)|(pointsrequired)|(requirements)|(antirequirements)|(tree is ED)}}

Parameter Documentation
treeThe tree for these requirements
nameThe name of the enhancement in this tree
pointsrequiredHow many points spent in the tree are required
requirementsWhat other requirements are needed for this item . bulleted list.
antirequirementsWhat would not allow you to take this for core. bulleted list.
tree is EDSend in TRUE if the tree is ED

Template

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


{{{3}}} None