Difference between revisions of "Template:EnhItemReq"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(32 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{TemplateDocumentation | {{TemplateDocumentation | ||
|name= | |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>{{ | |category=Enhancement Templates | ||
|example1=<nowiki>{{EnhItemReq|Arcanotechnician|Arcanotechnician|0| | |||
* Artificer 1}}</nowiki> | * Artificer 1}}</nowiki> | ||
|example1output={{ | |example1output={{EnhItemReq|Arcanotechnician|Arcanotechnician|0| | ||
* Artificer 1}} | * Artificer 1}} | ||
|example2=<nowiki>{{#dplvar:set|location|core|tree|Arcanotechnician}}{{#dplvar:set|display|table}}{{ | |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}}{{ | |example2output={{#dplvar:set|location|core|tree|Arcanotechnician}}{{#dplvar:set|display|table}}{{EnhItemReq|Arcanotechnician|Arcanotechnician|0| | ||
* Artificer 1}} | * Artificer 1}} | ||
|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 = requirements | |parameter4name = requirements | ||
|parameter4description = What other requirements are needed for this item. bulleted list. | |parameter4description = What other requirements are needed for this item . bulleted list. | ||
|parameter5name = antirequirements | |parameter5name = antirequirements | ||
|parameter5description = What would not allow you to take this. bulleted list. | |parameter5description = What would not allow you to take this for core. bulleted list. | ||
| | |parameter6name = tree is ED | ||
|parameter6description = Send in TRUE if the tree is ED | |||
}}</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">{{{4|None}}}{{#if: {{{5|}}}| | |table=<td data-th="Points Spent" class="centerdata">{{{3}}}</td><td data-th="Requirements"> | ||
; | {{{4|None}}}{{#if: {{{5|}}}| | ||
;<span style="color:red">Antirequisite</span> | |||
{{{5}}}}}</td> | {{{5}}}}}</td> | ||
|#default='''{{{1}}}''' - ''{{{2}}}''<br> | |#default={{#if: {{{1|}}}|'''[[{{{1}}} {{#if: {{{6|}}}||Tree}}|{{{1}}}]]''' - ''{{{2}}}''<br>}} | ||
* {{#ifexpr: {{{3}}} = 0|No|{{{3}}}}} | * {{#ifexpr: {{{3}}} = 0|No|{{{3}}}}} Points spent in Tree<br>{{#if: {{{4|}}}| | ||
{{{4}}}}}{{#if: {{{5|}}}| | {{{4}}}}}{{#if: {{{5|}}}| | ||
; | ;<span style="color:red">Antirequisite:</span>{{{5}}}}} | ||
}}</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
| ||
{{#dplvar:set|location|core|tree|Arcanotechnician}}{{#dplvar:set|display|table}}{{EnhItemReq|Arcanotechnician|Arcanotechnician|0| * Artificer 1}} | 0 |
|
Usage[edit]
{{EnhItemReq|(tree)|(name)|(pointsrequired)|(requirements)|(antirequirements)|(tree is ED)}}
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 |
requirements | What other requirements are needed for this item . bulleted list. |
antirequirements | What would not allow you to take this for core. bulleted list. |
tree is ED | Send 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