Anonymous

Template:Damage/doc: Difference between revisions

From Elwiki
Line 3: Line 3:


== Parameters ==
== Parameters ==
*'''dmg'''''[n]'' - specifies damage value for the ''n''th damage effect
*'''dmg'''''[n]'', '''pvp_dmg'''''[n]'' - specifies damage value for the ''n''th damage effect
*'''pvp_dmg'''''[n]'' - specifies damage value for the ''n''th damage effect (PvP)
*'''awk_dmg'''''[n]'', '''pvp_awk_dmg'''''[n]'' - specifies damage value for the ''n''th damage effect in [[Awakening Mode]]
*'''awk_dmg'''''[n]'' - specifies damage value for the ''n''th damage effect in [[Awakening Mode]]
*'''hits'''''[n]'' - specifies maximum hit count for the ''n''th damage effect
*'''hits'''''[n]'' - specifies maximum hit count for the ''n''th damage effect
*'''avg_hits'''''[n]'' - specifies average hit count for the ''n''th damage effect
*'''avg_hits'''''[n]'' - specifies average hit count for the ''n''th damage effect
Line 16: Line 15:
*'''enhanced''' - if provided with a value, enables '''Enhanced''' trait
*'''enhanced''' - if provided with a value, enables '''Enhanced''' trait
*'''empowered''' - if '''true''', enables '''Empowered''' trait with the standard 1.2x damage increase. It can also take another value that replaces the standard one
*'''empowered''' - if '''true''', enables '''Empowered''' trait with the standard 1.2x damage increase. It can also take another value that replaces the standard one
*'''passive1''' - enables first passive variables, please specify with ''<nowiki>{{#arrayprint:passive_name}}</nowiki>'' included from the passive's page
*'''passive1''' - enables first passive variables, please specify with the exact passive skill's name. Including the passive's page and print its array like so: ''<nowiki>{{#arrayprint:passive_name}}</nowiki>'' will also work, but this method is deprecated.
*'''passive2''' - same as above, this will also enable merged variables (passive 1 and passive 2 included)
*'''passive2''' - same as above, this will also enable merged variables (passive 1 and passive 2 included)
*'''format''' - enables pretty-printing of the numbers (applies % sign and ''<nowiki>{{formatnum:}}</nowiki>''). Enabled by default, you can provide '''false''' to disable it. In order to tamper with single variables, I recommend using [[Template:Num]] that converts them back to numbers.
*'''format''' - enables pretty-printing of the numbers (applies % sign and ''<nowiki>{{formatnum:}}</nowiki>''). Enabled by default, you can provide '''false''' to disable it. In order to tamper with single variables, I recommend using [[Template:Num]] that converts them back to numbers.