warframe

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:

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

  1. In Module:Stances, update COMBO_TYPES table with the name of combo type key to be added to Module:Stances/data.
  2. 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.

  • Tatsu Tatsu's slide attack when having at least 1 Soul Swarm charge
  • Zenistar Zenistar's heavy attack throwing a disk
  • Caustacyst Caustacyst's heavy attack throwing corrosive sludge
  • VaykorSydon Vaykor Sydon's block + heavy attack blind (unsure if this can fit in current schema)
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 Module:Stances/data/validate subpage of /data for data validation functions

  • Include type checking for each column/attribute
  • Include checking if a table entry has the required keys (the minimum number of keys needed to support basic features in Module:Stances)
  • Include boundary checking for stat values
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
  • ✔️ Standardize typings of key-value pairs in /data to avoid all the type checking in the module.
  • ✔️ Add Image key to support mapping combos to animation gifs.
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:
  • attackType Melee attack name (e.g. 'Default' or 'Block') (string)
  • modifier Attack 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:
  • stanceName Stance name (string)
  • comboType A 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


Code