This is the documentation page for Module:Stances
Stances automates Stance tables.
See User blog:Cephalon Scientia/Module:Stances—A New Look and Personality (Stance Tables Remastered) for a write-up on the origins of this module.
On this Wiki, Stances is used in:
- Stance and all stance mod articles
- See Blind Justice for an example
Associated CSS stylesheet is stored on MediaWiki:Stances.css.
Usage
Direct Invocation
{{#invoke:Stances|function|input1|input2|...}}
Adding New Stance Types
Update Module:Stances/data, following the schema for a stance entry.
Adding Support For New Combo Types
- In Module:Stances, update
COMBO_TYPEStable with the name of combo type key to be added to Module:Stances/data. - In
buildComboRow(), add a new key-value pair associated with the new combo type for the tooltips/notes.
Product Backlog
| Name | Type | Status | Priority | Assignee | Description | Date Issued | Last Update |
|---|---|---|---|---|---|---|---|
| Finishers | Dev/database | Planning | Low |
Add support for storing finisher attacks though there is a different animation for multiple body types (bipedal human, quadruped, heavy, MOA, etc.). Some weapons have unique finishers: |
06:23, 30 January 2022 (UTC) | ||
| Special attacks | Database | Planning | Low |
Add additional stance entries for weapons with unique combos. Name key of these entries should be just the weapon name in EN locale.
|
06:23, 30 January 2022 (UTC) | ||
| Slam and Heavy Slams | Dev/database | Planning | Low |
Add support for storing slam attacks and heavy slam attacks. Slam/heavy slams should be shared between melee classes with some exceptions:
|
06:23, 30 January 2022 (UTC) | ||
| Data validation | Dev/database | Haitus | Medium |
Create
|
19:01, 6 September 2021 (UTC) |
Finished Issues
| Name | Type | Status | Priority | Assignee | Description | Date Issued | Completion Date |
|---|---|---|---|---|---|---|---|
| Update database schema | Database/Dev | Completed | Low | User:Cephalon Scientia |
|
4:06, 23 August 2021 (UTC) | 19:52, 6 September 2021 (UTC) |
Documentation
Package items
stances._getAttackIcon(attackType, modifier)(function)- Returns the icon for melee attack.
- Parameters:
attackTypeMelee attack name (e.g. 'Default' or 'Block') (string)modifierAttack modifier name (e.g. 'Default' or 'Slam') (string)
- Returns: The icon's image in wikitext (string)
stances.buildStanceTable(stanceName, comboType)(function)- Builds stance table.
- Parameters:
stanceNameStance name (string)comboTypeA specific combo type to display (EN locale) (string; optional)
- Returns: Stance table in wikitext (string)
stances.getStanceWeaponList(table})(function)- Builds list of weapons that can equip a particlar stance mod as seen on Template:StanceWeapons.
- Parameter:
table}frame Frame object w/ first argument being string stanceName - Returns: Resultant wikitext of comparison list (string)
stances.buildCompTable(displayAllCombos)(function)- Builds PvE stance comparison table. Used on Stance page.
- Parameter:
displayAllCombos(string) - Returns: Stance comparison table in wikitext (string)
stances.buildStanceGallery(frame)(function)- Builds stance gallery on stance category pages.
- Parameter:
frame(table) - Returns: Stance (string)
- Created with Docbunto
See Also