Template:Grasta
From Another Eden Wiki
Documentation
[purge]
Template:Grasta/Table header This template is where the actual Cargo storing occurs. Usual approach:
- navigation buttons, including Grasta buttons - colored buttons to each grasta type
- Template:GrastaFilter - add filtering support
- Template:Grasta/Table header - header of table for grasta listing pages
- Applies Template:Grasta/each to each personality type among input list
- DO collapse weapon types - e.g. staff,sword,katana,ax - this works fully
- DO NOT collapse non-weapon personality types (this would superficially look like it works but the filters will be broken)
- DO NOT collapse weapon types if they differ in other attributes, e.g. stats or effects (like boosting magical crit rate rather than crit rate)
- DO collapse weapon types when all the other attributes are the same. Listing them separately here may produce unexpected results b/c superficially they will be displayed on separate rows, but then they may be collapsed elsewhere as the result of cargo querying & grouping rules.
- Template:Grasta Table Row - handles the actual table display (input from either Template:Grasta or from a cargo query)
- Template:Grasta row - create a div box display (input from either Template:Grasta or from a cargo query)
- end with {{Grasta/Table header|end}} or usual |}
Storage pages[edit]
List of fields\parameters to store: Name = Format UnNamed # {{Grasta |name=String <!--#1 --> |stat1=String <!--#2 --> |stat2=String <!--#3 --> |effect=String <!--#4, {{#var:gEffect}} --> |upgrade=String |type=String <!--{{#var:gTtype}} --> |obtain=String <!--#5, {{#var:gObtain}} --> |tier=Integer <!--{{#var:gTier}} --> |connection=String <!--Can use vcCharacter --> |personality=String <!-- or auto search inside () or <>--> |shareable=Boolean <!-- or auto search by "affects all party members of the matching"--> Template Display |image=String <!--filename to display--> |element=String <!--for filtering purposes, Fire/Water/Wind/etc.--> <!--note how weapons are treated entirely differently: for one they are a "personality type", i.e. affecting who can equip or share it; and for another special provision has been made to feed in a comma-separated list of these e.g. personality=Sword,staff,katana,Ax,lance,bow,fists,hammer, which will cause the Cargo *store* of each one separately (for enabling proper querying of it), yet make the *display* (here) show up as a single collapsed row (whether it shows up as a collapsed row elsewhere depends on how you structure your cargo query, but see Template:Another Dungeon or Template:Grasta row for examples - note cargo group_by is extremely limiting and barely functional).--> <!--Note that non-weapon personality types are treated entirely differently - b/c of how filtering works (of type "equals" not "contains"), these should be fed to Template:Grasta individually rather than as a comma-separated list.--> }} All parameters with {{#var:var_name}}, var_name starting with "g"=Global options get default value from previous rows and can be omitted for next rows if there is no change, while those with "l"=Local or "d"=Display do not.
This template defines the table "Grasta". View table.