Template:Damage/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 5: Line 5:


== Parameters ==
== Parameters ==
*'''dmg''', '''pvp_dmg''' - specifies damage values
{{InfoBanner|text=For damage and hit count values, prefix the parameter with "pvp_".}}
*'''awk_dmg''', '''pvp_awk_dmg''' - in [[Awakening Mode]]
*'''dmg''' - specifies damage values
*'''awk_dmg''' - in [[Awakening Mode]]
*'''hits''' - specifies maximum hit counts. If not provided, defaults to 1 for all damage effects.
*'''hits''' - specifies maximum hit counts. If not provided, defaults to 1 for all damage effects.
*'''count''' - used for skills like [[Clementine]] or [[Enough Mineral]]. Generates 2 variable types: ''each_damage'' and ''total_damage''
*'''count''' - used for skills like [[Clementine]] or [[Enough Mineral]]. Generates 2 variable types: ''each_damage'' and ''total_damage''
Line 44: Line 45:
*You can provide however many damage parts you want. The ''<nowiki>{{#var: total_damage}}</nowiki>'' and ''<nowiki>{{#var: total_damage_pvp}}</nowiki>'' variables will be composed automatically.
*You can provide however many damage parts you want. The ''<nowiki>{{#var: total_damage}}</nowiki>'' and ''<nowiki>{{#var: total_damage_pvp}}</nowiki>'' variables will be composed automatically.
**'''Count''' will not work with '''Useful''' or [[Awakening Mode]].
**'''Count''' will not work with '''Useful''' or [[Awakening Mode]].
**You can't specify separate hit counts for PvP in one template call. This is a thing for too small amount of skills (e.g. [[Lightning Shower]]) and wasn't worth implementing. Can get around it using the '''prefix''' argument.
*Damage range only works with damage buffs, not when hit counts are changed.
*Damage range only works with damage buffs, not when hit counts are changed.
**Check '''[[Phoenix Wings#Total Damage|this page]]''' for hints.
**Check '''[[Phoenix Wings#Total Damage|this page]]''' for hints.
Line 358: Line 358:
"label": "Third Passive Suffix",
"label": "Third Passive Suffix",
"type": "string"
"type": "string"
},
"perm_buff": {
"label": "Permanent Effect",
"description": "Specified for damage parts between commas.",
"example": "1.5"
},
"pvp_perm_buff": {
"label": "Permanent Effect (PvP)",
"description": "Specified for damage parts between commas.",
"example": "1.25"
}
}
},
},
Line 405: Line 415:
"suffix1",
"suffix1",
"suffix2",
"suffix2",
"suffix3"
"suffix3",
"perm_buff",
"pvp_perm_buff"
],
],
"format": "block"
"format": "block"
}
}
</templatedata>
</templatedata>