Anonymous

Template:Damage/doc: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 128: Line 128:
| {{#var: total_damage_heavy_passive1_pvp}}
| {{#var: total_damage_heavy_passive1_pvp}}
|}
|}
<templatedata>
{
"params": {
"dmg": {
"label": "Damage (PvE)",
"description": "Specifies damage values, separated by commas.",
"example": "50, 125",
"type": "string",
"autovalue": "0",
"required": true,
"suggested": true
},
"pvp_dmg": {
"label": "Damage (PvP)",
"description": "Specifies damage values, separated by commas.",
"example": "50, 125",
"type": "string",
"autovalue": "0",
"required": true,
"suggested": true
},
"awk_dmg": {
"label": "Damage in Awakening (PvE)",
"type": "string",
"default": "inherited from 'dmg'"
},
"pvp_awk_dmg": {
"label": "Damage in Awakening (PvP)",
"type": "string",
"default": "inherited from 'pvp_dmg'"
},
"hits": {
"label": "Hits",
"description": "Hit counts for each damage effect, separated by commas.",
"example": "13, 23",
"type": "string",
"default": "1 (for all damage effects)",
"autovalue": "0",
"suggested": true
},
"count": {
"label": "Count of Instances",
"description": "Used for skills like Clementine or Enough Mineral that spawn multiple instances of the same object. Generates 2 variable types: each_damage and total_damage.",
"example": "5",
"type": "number"
},
"awk_hits": {
"label": "Hits in Awakening",
"description": "Different hit counts for PvP not supported.",
"type": "string",
"default": "inherited from 'hits'"
},
"avg_hits": {
"label": "Average Hits",
"description": "Hit counts achievable on average-sized targets, such as Free Training Dummies.",
"example": "7, 13, 5",
"type": "string",
"default": "1 (for all damage effects)",
"autovalue": "0"
},
"avg_awk_hits": {
"label": "Average Hits in Awakening",
"type": "string",
"default": "inherited from 'avg_hits'"
},
"hits_useful": {
"label": "Hits (Useful trait)",
"description": "Hit counts with the Useful trait. Requires 'useful_penalty' to make it work.",
"type": "string"
},
"awk_hits_useful": {
"label": "Hits (Useful trait) in Awakening",
"type": "string"
},
"avg_hits_useful": {
"label": "Average Hits (Useful trait)",
"type": "string"
},
"avg_awk_hits_useful": {
"label": "Average Hits (Useful trait) in Awakening",
"type": "string"
},
"useful_penalty": {
"label": "Damage decrease from Useful trait",
"description": "Provided as a fraction lower than 1.",
"example": "0.75",
"type": "number"
},
"heavy": {
"label": "Heavy trait",
"description": "If 'true', applies the Heavy trait.",
"example": "true",
"type": "boolean",
"default": "false"
},
"enhanced": {
"label": "Enhanced trait",
"description": "If 'true', applies the standard damage decrease from the Enhanced trait. Can provide a custom number lower than 1.",
"example": "true (or) 0.6",
"type": "string"
},
"empowered": {
"label": "Empowered trait",
"description": "If 'true', applies the standard damage increase from the Empowered trait. Can provide a custom number.",
"example": "1.3",
"type": "number"
},
"passive1": {
"label": "Passive 1",
"description": "Generates additional variables with passive values imbued into them. Uses arrays included in passive skill pages. Exact page name required.",
"example": "Hawkeye",
"type": "wiki-page-name"
},
"passive2": {
"label": "Passive 2",
"description": "Generates additional variables with passive values imbued into them. Uses arrays included in passive skill pages. Exact page name required.",
"example": "Arrow Mastery",
"type": "wiki-page-name"
},
"Passive 3": {
"label": "Passive 3",
"description": "Generates additional variables with passive values imbued into them. Uses arrays included in passive skill pages. Exact page name required.",
"type": "wiki-page-name"
},
"format": {
"label": "Pretty-print",
"description": "Wraps the variable output in the formatnum parser function and appends the % sign.",
"example": "true",
"type": "boolean",
"default": "false"
},
"dump": {
"label": "Print all variables",
"description": "Dumps all generated variables in a list. Warning: disables the actual variables from generating.",
"example": "true",
"type": "boolean",
"default": "false"
},
"prefix": {
"label": "Prefix",
"description": "Adds a string to every generated variable's name.",
"example": "sometext",
"type": "string"
},
"range_max": {
"label": "Range (Max)",
"description": "The maximum damage of a skill, after applying a certain multiplier. PvP value comes after a comma.",
"example": "2.5",
"type": "number"
},
"range_min": {
"label": "Range (Min)",
"description": "Minimal damage of the skill. Only specify if there is an effect that increases damage conditionally, and a part of it cannot be avoided. PvP value comes after a comma.",
"example": "1.1",
"type": "string"
},
"range_min_count": {
"label": "Range (Min) Stage Version",
"description": "If this parameter is used, it will multiply itself by range_min. Intended for mechanics like Sentimental Points with even stages of damage increase. Use when casting the skill with no points/gauge that increases damage per stage is impossible.",
"type": "number"
},
"range_max_count": {
"label": "Range (Max) Stage Version",
"description": "If this parameter is used, it will multiply itself by range_max. Intended for mechanics like Sentimental Points with even stages of damage increase.",
"type": "number"
},
"count_extra": {
"label": "Extra damage to merged instances",
"description": "Applies extra damage to 'total_damage' fields (but not 'each_damage') when 'count' is used.",
"example": "150",
"type": "number"
},
"count_extra_hits": {
"label": "Extra damage to merged instances (hit count)",
"description": "Applies extra damage to 'total_damage' fields (but not 'each_damage') when 'count' is used. (Provide hit count)",
"example": "5",
"type": "number"
},
"count_extra_pvp": {
"label": "Extra damage to merged instances (PvP)",
"description": "Applies extra damage to 'total_damage_pvp' fields (but not 'each_damage_pvp') when 'count' is used.",
"type": "string"
}
},
"description": "This template is used for the Total Damage section on skill pages in order to avoid hardcoding mathematical formulas and make variables shorter, simply composing them based on the arguments provided. You can also easily edit the generated variables afterwards. Please check the template's page for detailed information.",
"paramOrder": [
"dmg",
"pvp_dmg",
"awk_dmg",
"pvp_awk_dmg",
"hits",
"count",
"awk_hits",
"avg_hits",
"avg_awk_hits",
"hits_useful",
"awk_hits_useful",
"avg_hits_useful",
"avg_awk_hits_useful",
"useful_penalty",
"heavy",
"enhanced",
"empowered",
"passive1",
"passive2",
"Passive 3",
"format",
"dump",
"prefix",
"range_max",
"range_min",
"range_min_count",
"range_max_count",
"count_extra",
"count_extra_hits",
"count_extra_pvp"
],
"format": "block"
}
</templatedata>