Template:Damage/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 13: Line 13:
*'''enhanced''' - if '''true''', enables '''Enhanced''' trait
*'''enhanced''' - if '''true''', 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>{{#arrayindex:passive_name}}</nowiki> included from the passive's page
*'''passive1''' - enables first passive variables, please specify with ''<nowiki>{{#arrayindex:passive_name}}</nowiki>'' included from the passive's page
*'''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>). Do not use this if you want to tamper with the variables afterwards. Enabled by default, you can provide '''false''' to disable it.
*'''format''' - enables pretty-printing of the numbers (applies % sign and ''<nowiki>{{formatnum:}}</nowiki>''). Do not use this if you want to tamper with the variables afterwards. Enabled by default, you can provide '''false''' to disable it.
=== Extra ===
=== Extra ===
*The generated variables always follow this order in their names: damage type → passives → trait → pvp suffix, e.g. ''<nowiki>{{#var: total_damage_passive1_passive2_empowered_pvp}}</nowiki>''
*The generated variables always follow this order in their names: damage type → passives → trait → pvp suffix, e.g. ''<nowiki>{{#var: total_damage_passive1_passive2_empowered_pvp}}</nowiki>''