Template:Damage/doc: Difference between revisions

No edit summary
Line 15: Line 15:
*'''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>''). 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.
 
=== 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>''