Difference between revisions of "Template:EnhItemReq"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 17: | Line 17: | ||
|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 = | |parameter4name = requirements | ||
|parameter4description = What other requirements are needed for this item | |parameter4description = What other requirements are needed for this item . bulleted list. | ||
|parameter5name = | |parameter5name = antirequirements | ||
|parameter5description = What would not allow you to take this for core | |parameter5description = What would not allow you to take this for core. 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"> | ||
{{{4|None}}}{{#if: {{{5|}}}| | {{{4|None}}}{{#if: {{{5|}}}| | ||
;<span style="color:red">Antirequirements</span> | ;<span style="color:red">Antirequirements</span> | ||
{{{5}}}}} | {{{5}}}}}</td> | ||
|#default={{#if {{{1|}}}|'''{{{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> | |||
{{{4}}}}}{{#if: {{{5|}}}| | {{{4}}}}}{{#if: {{{5|}}}| | ||
;<span style="color:red">Antirequirements</span>{{{5}}}}}}} | ;<span style="color:red">Antirequirements</span>{{{5}}}}}}} | ||
}}</onlyinclude> | }}</onlyinclude> |
Revision as of 20:37, 29 June 2018
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}} | {{#if Arcanotechnician|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)}}
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. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{{3}}} None }}