Template:Ability card v2/Card/doc: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) |
Gammaton32 (talk | contribs) |
||
| (11 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{TS|Ability card v2/Card/styles.css}} | |||
== Overview == | == Overview == | ||
''This template is designed to be used via [[Template:Ability_card_v2]]. In cases where the ability data is not available, we can instead use this template to build the ability card more manually.'' | ''This template is designed to be used via [[Template:AbilitySection]], [[Template:Ability tabs]] and [[Template:Ability_card_v2]]. In cases where the ability data is not available, we can instead use this template to build the ability card more manually.'' | ||
This template allows building the ability card manually. Many arguments are templates, so refer to [[Template: | This template allows building the ability card manually. Many arguments are templates, so refer to [[Template:Ability card v2/Card/HeaderAttr]], [[Template:Ability card v2/Card/Info section]],[[Template:Ability card v2/Card/MainBox]], [[Template:Ability card v2/Card/AltBox]], [[Template:Ability card v2/Card/UpgradeBox]] and [[Template:Ability card v2/Card/Scaling]] for their specific documentation. | ||
The ability upgrade buttons are handled by [[MediaWiki:Gadget-ability-upgrades.js]]. | |||
=== Examples === | === Examples === | ||
| Line 14: | Line 17: | ||
| charge_cooldown=99 | | charge_cooldown=99 | ||
| cooldown=99 | | cooldown=99 | ||
| info1_desc=This ability does something | | info1_desc=This ability does something | ||
| Line 150: | Line 152: | ||
{ | { | ||
"params": { | "params": { | ||
"icon": { | "icon": { | ||
"description": "Icon file name of the ability", | "description": "Icon file name of the ability", | ||
| Line 166: | Line 163: | ||
}, | }, | ||
"range_ss": { | "range_ss": { | ||
"description": "Range spirit scale multiplier", | |||
"type": "number" | "type": "number" | ||
}, | |||
"radius": { | "radius": { | ||
"description": "Radius of ability's effect", | "description": "Radius of ability's effect", | ||
| Line 174: | Line 171: | ||
}, | }, | ||
"radius_ss": { | "radius_ss": { | ||
"description": "Radius spirit scale multiplier", | |||
"type": "number" | "type": "number" | ||
}, | }, | ||
"duration": { | "duration": { | ||
"description": "Duration of ability's effect", | "description": "Duration of ability's effect", | ||
"type": "number" | |||
}, | }, | ||
"duration_ss": { | "duration_ss": { | ||
"description": "Duration spirit scale multiplier", | |||
"type": "number" | "type": "number" | ||
}, | |||
"num_of_charges": { | "num_of_charges": { | ||
"description": "Total number of charges", | "description": "Total number of charges", | ||
| Line 194: | Line 191: | ||
}, | }, | ||
"charge_cooldown_ss": { | "charge_cooldown_ss": { | ||
"description": "Charge cooldown spirit scale multiplier", | |||
"type": "number" | "type": "number" | ||
}, | |||
"cooldown": { | "cooldown": { | ||
"description": "Cooldown of ability", | |||
"type": "number" | "type": "number" | ||
}, | |||
"cooldown_ss": { | "cooldown_ss": { | ||
"description": "Cooldown spirit scale multiplier", | |||
"type": "number" | "type": "number" | ||
}, | |||
"info1_desc": { | "info1_desc": { | ||
"description": "Description for Infobox #1", | "description": "Description for Infobox #1", | ||
| Line 215: | Line 212: | ||
}, | }, | ||
"info1_mainbox2": { | "info1_mainbox2": { | ||
"description": "Mainbox #2 for Infobox #1", | |||
"example": "{{Ability card v2/Card/MainBox ...}}", | "example": "{{Ability card v2/Card/MainBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info1_mainbox3": { | "info1_mainbox3": { | ||
"description": "Mainbox #3 for Infobox #1", | |||
"example": "{{Ability card v2/Card/MainBox ...}}", | "example": "{{Ability card v2/Card/MainBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info1_altbox1": { | "info1_altbox1": { | ||
"description": "Altbox #1 for Infobox #1", | "description": "Altbox #1 for Infobox #1", | ||
| Line 230: | Line 227: | ||
}, | }, | ||
"info1_altbox2": { | "info1_altbox2": { | ||
"description": "Altbox #2 for Infobox #1", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info1_altbox3": { | "info1_altbox3": { | ||
"description": "Altbox #3 for Infobox #1", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info1_altbox4": { | "info1_altbox4": { | ||
"description": "Altbox #4 for Infobox #1", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info1_altbox5": { | "info1_altbox5": { | ||
"description": "Altbox #5 for Infobox #1", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info1_altbox6": { | "info1_altbox6": { | ||
"description": "Altbox #6 for Infobox #1", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info2_desc": { | |||
"description": "Description for Infobox #2", | "description": "Description for Infobox #2", | ||
"type": "string" | "type": "string" | ||
| Line 264: | Line 261: | ||
}, | }, | ||
"info2_mainbox2": { | "info2_mainbox2": { | ||
"description": "Mainbox #2 for Infobox #2", | |||
"example": "{{Ability card v2/Card/MainBox ...}}", | "example": "{{Ability card v2/Card/MainBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info2_mainbox3": { | "info2_mainbox3": { | ||
"description": "Mainbox #3 for Infobox #2", | |||
"example": "{{Ability card v2/Card/MainBox ...}}", | "example": "{{Ability card v2/Card/MainBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info2_altbox1": { | "info2_altbox1": { | ||
"description": "Altbox #1 for Infobox #2", | "description": "Altbox #1 for Infobox #2", | ||
| Line 279: | Line 276: | ||
}, | }, | ||
"info2_altbox2": { | "info2_altbox2": { | ||
"description": "Altbox #2 for Infobox #2", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info2_altbox3": { | "info2_altbox3": { | ||
"description": "Altbox #3 for Infobox #2", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info2_altbox4": { | "info2_altbox4": { | ||
"description": "Altbox #4 for Infobox #2", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info2_altbox5": { | "info2_altbox5": { | ||
"description": "Altbox #5 for Infobox #2", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info2_altbox6": { | "info2_altbox6": { | ||
"description": "Altbox #6 for Infobox #2", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info3_desc": { | |||
"description": "Description for Infobox #3", | "description": "Description for Infobox #3", | ||
"type": "string" | "type": "string" | ||
| Line 313: | Line 310: | ||
}, | }, | ||
"info3_mainbox2": { | "info3_mainbox2": { | ||
"description": "Mainbox #2 for Infobox #3", | |||
"example": "{{Ability card v2/Card/MainBox ...}}", | "example": "{{Ability card v2/Card/MainBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info3_mainbox3": { | "info3_mainbox3": { | ||
"description": "Mainbox #3 for Infobox #3", | |||
"example": "{{Ability card v2/Card/MainBox ...}}", | "example": "{{Ability card v2/Card/MainBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info3_altbox1": { | "info3_altbox1": { | ||
"description": "Altbox #1 for Infobox #3", | "description": "Altbox #1 for Infobox #3", | ||
| Line 328: | Line 325: | ||
}, | }, | ||
"info3_altbox2": { | "info3_altbox2": { | ||
"description": "Altbox #2 for Infobox #3", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info3_altbox3": { | "info3_altbox3": { | ||
"description": "Altbox #3 for Infobox #3", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info3_altbox5": { | "info3_altbox5": { | ||
"description": "Altbox #5 for Infobox #3", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"info3_altbox6": { | "info3_altbox6": { | ||
"description": "Altbox #6 for Infobox #3", | |||
"example": "{{Ability card v2/Card/AltBox ...}}", | "example": "{{Ability card v2/Card/AltBox ...}}", | ||
"type": "wiki-template-name" | "type": "wiki-template-name" | ||
}, | |||
"upgrade1": { | "upgrade1": { | ||
"description": "Upgrade box #1", | "description": "Upgrade box #1", | ||
| Line 359: | Line 351: | ||
}, | }, | ||
"upgrade2": { | "upgrade2": { | ||
"description": "Upgrade box #2", | |||
"example": "{{Ability card v2/Card/UpgradeBox ...}}", | "example": "{{Ability card v2/Card/UpgradeBox ...}}", | ||
"type": "wiki-template-name", | "type": "wiki-template-name", | ||
"required": true | "required": true | ||
}, | |||
"upgrade3": { | "upgrade3": { | ||
"description": "Upgrade box #3", | |||
"example": "{{Ability card v2/Card/UpgradeBox ...}}", | "example": "{{Ability card v2/Card/UpgradeBox ...}}", | ||
"type": "wiki-template-name", | "type": "wiki-template-name", | ||
"required": true | "required": true | ||
}, | |||
"notes": { | "notes": { | ||
"description": "User-defined notes to display in the footer", | "description": "User-defined notes to display in the footer", | ||
"type": "string" | "type": "string" | ||
}, | |||
"Barbed Wire Wall": { | |||
"description": "Name of the ability", | |||
"type": "string", | |||
"required": true | |||
} | } | ||
} | }, | ||
"description": "bleh", | |||
"paramOrder": [ | |||
"Barbed Wire Wall", | |||
"icon", | |||
"range", | |||
"range_ss", | |||
"radius", | |||
"radius_ss", | |||
"duration", | |||
"duration_ss", | |||
"num_of_charges", | |||
"charge_cooldown", | |||
"charge_cooldown_ss", | |||
"cooldown", | |||
"cooldown_ss", | |||
"info1_desc", | |||
"info1_mainbox1", | |||
"info1_mainbox2", | |||
"info1_mainbox3", | |||
"info1_altbox1", | |||
"info1_altbox2", | |||
"info1_altbox3", | |||
"info1_altbox4", | |||
"info1_altbox5", | |||
"info1_altbox6", | |||
"info2_desc", | |||
"info2_mainbox1", | |||
"info2_mainbox2", | |||
"info2_mainbox3", | |||
"info2_altbox1", | |||
"info2_altbox2", | |||
"info2_altbox3", | |||
"info2_altbox4", | |||
"info2_altbox5", | |||
"info2_altbox6", | |||
"info3_desc", | |||
"info3_mainbox1", | |||
"info3_mainbox2", | |||
"info3_mainbox3", | |||
"info3_altbox1", | |||
"info3_altbox2", | |||
"info3_altbox3", | |||
"info3_altbox5", | |||
"info3_altbox6", | |||
"upgrade1", | |||
"upgrade2", | |||
"upgrade3", | |||
"notes" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 16:50, 17 June 2026
Overview
[edit source]This template is designed to be used via Template:AbilitySection, Template:Ability tabs and Template:Ability_card_v2. In cases where the ability data is not available, we can instead use this template to build the ability card more manually.
This template allows building the ability card manually. Many arguments are templates, so refer to Template:Ability card v2/Card/HeaderAttr, Template:Ability card v2/Card/Info section,Template:Ability card v2/Card/MainBox, Template:Ability card v2/Card/AltBox, Template:Ability card v2/Card/UpgradeBox and Template:Ability card v2/Card/Scaling for their specific documentation.
The ability upgrade buttons are handled by MediaWiki:Gadget-ability-upgrades.js.
Examples
[edit source]Some Ability
Eg.
{{Ability card v2/Card
| name=Some Ability
| icon=Catalyst.png
| range=99
| radius=99
| duration=99
| num_of_charges=99
| charge_cooldown=99
| cooldown=99
| duration=99
| info1_desc=This ability does something
| info1_mainbox1=
{{Template:Ability card v2/Card/MainBox
| value=50
| key=DPS
| type=tech_damage
| icon_color=Purple
}}
| info1_mainbox2=
{{Template:Ability card v2/Card/MainBox
| value=99
| key=HealthRegen
| type=healing
}}
| info1_altbox1=
{{Template:Ability card v2/Card/AltBox
| value=10
| key=BonusMoveSpeedPercent
| type=move_speed
}}
| info1_altbox2=
{{Template:Ability card v2/Card/AltBox
| value=22.5
| key=FireRateBonus
| type=fire_rate
}}
| info1_altbox3=
{{Template:Ability card v2/Card/AltBox
| value=100
| label=Positive Vibes
}}
| upgrade1=
{{Template:Ability card v2/Card/UpgradeBox
| cost = 1
| description = An upgrade
| scale_value = 0.123
| scale_type = spirit
}}
| upgrade2=
{{Template:Ability card v2/Card/UpgradeBox
| cost = 2
| description = An upgrade
| scale_value = 0.123
| scale_type = spirit
}}
| upgrade3=
{{Template:Ability card v2/Card/UpgradeBox
| cost = 5
| description = An upgrade
| scale_value = 0.123
| scale_type = spirit
}}
}}
bleh
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Barbed Wire Wall | Barbed Wire Wall | Name of the ability | String | required |
| icon | icon | Icon file name of the ability
| String | required |
| range | range | Cast range of ability | Number | optional |
| range_ss | range_ss | Range spirit scale multiplier | Number | optional |
| radius | radius | Radius of ability's effect | Number | optional |
| radius_ss | radius_ss | Radius spirit scale multiplier | Number | optional |
| duration | duration | Duration of ability's effect | Number | optional |
| duration_ss | duration_ss | Duration spirit scale multiplier | Number | optional |
| num_of_charges | num_of_charges | Total number of charges | Number | optional |
| charge_cooldown | charge_cooldown | no description
| Number | optional |
| charge_cooldown_ss | charge_cooldown_ss | Charge cooldown spirit scale multiplier | Number | optional |
| cooldown | cooldown | Cooldown of ability | Number | optional |
| cooldown_ss | cooldown_ss | Cooldown spirit scale multiplier | Number | optional |
| info1_desc | info1_desc | Description for Infobox #1 | String | optional |
| info1_mainbox1 | info1_mainbox1 | Mainbox #1 for Infobox #1
| Template | optional |
| info1_mainbox2 | info1_mainbox2 | Mainbox #2 for Infobox #1
| Template | optional |
| info1_mainbox3 | info1_mainbox3 | Mainbox #3 for Infobox #1
| Template | optional |
| info1_altbox1 | info1_altbox1 | Altbox #1 for Infobox #1
| Template | optional |
| info1_altbox2 | info1_altbox2 | Altbox #2 for Infobox #1
| Template | optional |
| info1_altbox3 | info1_altbox3 | Altbox #3 for Infobox #1
| Template | optional |
| info1_altbox4 | info1_altbox4 | Altbox #4 for Infobox #1
| Template | optional |
| info1_altbox5 | info1_altbox5 | Altbox #5 for Infobox #1
| Template | optional |
| info1_altbox6 | info1_altbox6 | Altbox #6 for Infobox #1
| Template | optional |
| info2_desc | info2_desc | Description for Infobox #2 | String | optional |
| info2_mainbox1 | info2_mainbox1 | Mainbox #1 for Infobox #2
| Template | optional |
| info2_mainbox2 | info2_mainbox2 | Mainbox #2 for Infobox #2
| Template | optional |
| info2_mainbox3 | info2_mainbox3 | Mainbox #3 for Infobox #2
| Template | optional |
| info2_altbox1 | info2_altbox1 | Altbox #1 for Infobox #2
| Template | optional |
| info2_altbox2 | info2_altbox2 | Altbox #2 for Infobox #2
| Template | optional |
| info2_altbox3 | info2_altbox3 | Altbox #3 for Infobox #2
| Template | optional |
| info2_altbox4 | info2_altbox4 | Altbox #4 for Infobox #2
| Template | optional |
| info2_altbox5 | info2_altbox5 | Altbox #5 for Infobox #2
| Template | optional |
| info2_altbox6 | info2_altbox6 | Altbox #6 for Infobox #2
| Template | optional |
| info3_desc | info3_desc | Description for Infobox #3 | String | optional |
| info3_mainbox1 | info3_mainbox1 | Mainbox #1 for Infobox #3
| Template | optional |
| info3_mainbox2 | info3_mainbox2 | Mainbox #2 for Infobox #3
| Template | optional |
| info3_mainbox3 | info3_mainbox3 | Mainbox #3 for Infobox #3
| Template | optional |
| info3_altbox1 | info3_altbox1 | Altbox #1 for Infobox #3
| Template | optional |
| info3_altbox2 | info3_altbox2 | Altbox #2 for Infobox #3
| Template | optional |
| info3_altbox3 | info3_altbox3 | Altbox #3 for Infobox #3
| Template | optional |
| info3_altbox5 | info3_altbox5 | Altbox #5 for Infobox #3
| Template | optional |
| info3_altbox6 | info3_altbox6 | Altbox #6 for Infobox #3
| Template | optional |
| upgrade1 | upgrade1 | Upgrade box #1
| Template | required |
| upgrade2 | upgrade2 | Upgrade box #2
| Template | required |
| upgrade3 | upgrade3 | Upgrade box #3
| Template | required |
| notes | notes | User-defined notes to display in the footer | String | optional |