Difference between revisions of "Template:EnhUsageCost"

From DDO Compendium
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
|example1=<nowiki>{{EnhUsageCost|2 Spell Points|20 seconds}}</nowiki>
|example1=<nowiki>{{EnhUsageCost|2 Spell Points|20 seconds|treerank}}</nowiki>
|example1output={{EnhUsageCost|2 Spell Points|20 seconds}}
|example1output={{EnhUsageCost|2 Spell Points|20 seconds|treerank}}
|example2=<nowiki>{{EnhUsageCost|2 Spell Points|20 seconds|treesingle}}</nowiki>
|example2output={{EnhUsageCost|2 Spell Points|20 seconds|treesingle}}
|example3=<nowiki>{{EnhUsageCost|2 Spell Points|20 seconds|itemrank}}</nowiki>
|example3output={{EnhUsageCost|2 Spell Points|20 seconds|itemrank}}
|example4=<nowiki>{{EnhUsageCost|2 Spell Points|20 seconds|itemsingle}}</nowiki>
|example4output={{EnhUsageCost|2 Spell Points|20 seconds|itemsingle}}
|parameter1name = activation cost
|parameter1name = activation cost
|parameter1description = How much does it cost to activate
|parameter1description = How much does it cost to activate

Revision as of 19:01, 18 July 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}}{{#switch: treerank |treerank=
  • Activation Cost: 2 Spell Points
  • Cooldown: 20 seconds

|itemrank=

|treesingle=
  • Activation Cost: 2 Spell Points
  • Cooldown: 20 seconds
|itemsingle=
{{EnhUsageCost|2 Spell Points|20 seconds|treesingle}}{{#switch: treesingle |treerank=
  • Activation Cost: 2 Spell Points
  • Cooldown: 20 seconds

|itemrank=

|treesingle=
  • Activation Cost: 2 Spell Points
  • Cooldown: 20 seconds
|itemsingle=
{{EnhUsageCost|2 Spell Points|20 seconds|itemrank}}{{#switch: itemrank |treerank=
  • Activation Cost: 2 Spell Points
  • Cooldown: 20 seconds

|itemrank=

|treesingle=
  • Activation Cost: 2 Spell Points
  • Cooldown: 20 seconds
|itemsingle=
{{EnhUsageCost|2 Spell Points|20 seconds|itemsingle}}{{#switch: itemsingle |treerank=
  • Activation Cost: 2 Spell Points
  • Cooldown: 20 seconds

|itemrank=

|treesingle=
  • Activation Cost: 2 Spell Points
  • Cooldown: 20 seconds
|itemsingle=

Usage[edit]

{{EnhUsageCost|(activation cost)|(cooldown)|(style)}}

Parameter Documentation
activation costHow much does it cost to activate
cooldownThe cooldown
styleWhat style to render it in
Possible Values:
  • treerank - Use for enhancement tree rank style
  • itemrank - Use for enhancement entry rank style
  • treesingle - Use for enhancement tree when 1 rank
  • itemsingle - Use for enhancement entry when 1 rank

Template

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


{{#switch: {{{3}}}

|treerank= |itemrank= |treesingle= |itemsingle=