Difference between revisions of "Template:EnhUsageCost"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|name=EnhUsageCost | |name=EnhUsageCost | ||
|description= Template is used to render the cooldown and cost for an enhancement item | |description= Template is used to render the cooldown and cost for an enhancement item | ||
|category=Enhancement Templates | |||
|example1=<nowiki>{{EnhUsageCost|2 Spell Points|20 seconds|treerank}}</nowiki> | |example1=<nowiki>{{EnhUsageCost|2 Spell Points|20 seconds|treerank}}</nowiki> | ||
|example1output={{EnhUsageCost|2 Spell Points|20 seconds|treerank}} | |example1output={{EnhUsageCost|2 Spell Points|20 seconds|treerank}} | ||
Line 23: | Line 24: | ||
* itemrank - Use for enhancement entry rank style | * itemrank - Use for enhancement entry rank style | ||
* treesingle - Use for enhancement tree when 1 rank | * treesingle - Use for enhancement tree when 1 rank | ||
* itemsingle - Use for enhancement entry when 1 rank | * itemsingle - Use for enhancement entry when 1 rank | ||
* treerankoverall - Use for enhancement tree when > 1 rank, but overall cost | * treerankoverall - Use for enhancement tree when > 1 rank, but overall cost | ||
Line 30: | Line 30: | ||
|treerankoverall={{#if: {{{1|}}}|<tr {{#if: {{{2|}}}||class="compendiumtableborder"}}><td>'''Activation Cost:''' {{{1}}}</td></tr>}}{{#if: {{{2|}}}|<tr class="compendiumtableborder"><td>'''Cooldown:''' {{{2}}}</td></tr>}} | |treerankoverall={{#if: {{{1|}}}|<tr {{#if: {{{2|}}}||class="compendiumtableborder"}}><td>'''Activation Cost:''' {{{1}}}</td></tr>}}{{#if: {{{2|}}}|<tr class="compendiumtableborder"><td>'''Cooldown:''' {{{2}}}</td></tr>}} | ||
|itemrank={{#if: {{{1|}}}{{{2|}}}|<ul>}}{{#if: {{{1|}}}|<li>'''Activation Cost:''' {{{1}}}</li>}}{{#if: {{{2|}}}|<li>'''Cooldown:''' {{{2}}}</li>}}{{#if: {{{1|}}}{{{2|}}}|</ul>}} | |itemrank={{#if: {{{1|}}}{{{2|}}}|<ul>}}{{#if: {{{1|}}}|<li>'''Activation Cost:''' {{{1}}}</li>}}{{#if: {{{2|}}}|<li>'''Cooldown:''' {{{2}}}</li>}}{{#if: {{{1|}}}{{{2|}}}|</ul>}} | ||
|treesingle={{#if: {{{1|}}}{{{2|}}}|< | |treesingle={{#if:{{{1|}}}{{{2|}}}|<p>}}{{#if: {{{1|}}}|'''Activation Cost:''' {{{1}}}{{#if:{{{2|}}}|<br>}}}}{{#if: {{{2|}}}|'''Cooldown:''' {{{2}}}}}{{#if:{{{1|}}}{{{2|}}}|</p>}} | ||
|itemsingle={{#if: {{{1|}}}|<br>'''Activation Cost:''' {{{1}}}}}{{#if: {{{2|}}}|<br>'''Cooldown:''' {{{2}}}}} | |itemsingle={{#if: {{{1|}}}|<br>'''Activation Cost:''' {{{1}}}}}{{#if: {{{2|}}}|<br>'''Cooldown:''' {{{2}}}}} | ||
}}</onlyinclude> | }}</onlyinclude> |
Latest revision as of 20:29, 4 September 2018
EnhUsageCost[edit]
Template is used to render the cooldown and cost for an enhancement item
Example Usage | |
{{EnhUsageCost|2 Spell Points|20 seconds|treerank}} |
|
{{EnhUsageCost|2 Spell Points|20 seconds|treesingle}} | Activation Cost: 2 Spell Points |
{{EnhUsageCost|2 Spell Points|20 seconds|itemrank}} |
|
{{EnhUsageCost|2 Spell Points|20 seconds|itemsingle}} | Activation Cost: 2 Spell Points Cooldown: 20 seconds |
Usage[edit]
{{EnhUsageCost|(activation cost)|(cooldown)|(style)}}
Parameter Documentation | |
activation cost | How much does it cost to activate |
cooldown | The cooldown |
style | What style to render it in Possible Values:
|
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.