Anonymous

Template:Damage/doc: Difference between revisions

From Elwiki
(→‎Parameters: changes to reflect the actual code)
Line 16: Line 16:
*'''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>{{#arrayindex:passive_name}}</nowiki>'' included from the passive's page
*'''passive1''' - enables first passive variables, please specify with ''<nowiki>{{#arrayprint: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>''). 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.