Template:CharacterCell

From Another Eden Wiki
Template-info.png Documentation

Query optimized template without excess functional for big character tables: this template should not have any queries inside.

Too add additional formatting logic use wrapper templates inside query that calls this template, with IF function, or with mediawiki functions inside some wrapper templates.

Full set of fields to copypaste into query, edit/remove Size and Format values if needed

fields=Id,Name,Style,_pageName=Link,MaxRarity,SpoilerName,StatBoostType,IsAlter,CONCAT("80px")=Size,CONCAT("NameIsOff,StatBoostIcon)=Format

Required Fields[edit]

minimum required set of passed parameters for this template to work

fields=Id,Name,Style,_pageName=Link,MaxRarity
example:
{{CharacterCell|Id=101050091|Style=1|Link=Hozuki|Name=Hozuki|MaxRarity=4}}

Formatting fields[edit]

  • Format
    • NameIsOff - without name link
    • StatBoostIcon - with stat boost icon (Shadow\Light)
      • Required: to pass "StatBoostType" parameter from cargo query.
  • Size (default=80px)
With unified Format field:

,SpoilerName,StatBoostType,CONCAT("50px")=Size,CONCAT("NameIsOff,StatBoostIcon)=Format
101040191 rank5 command.png
Luring Shadow Icon.png
,StatBoostIcon,NameIsOff - as fields are deprecated - add as strings to Format field:

,SpoilerName,StatBoostType,CONCAT("anything")=StatBoostIcon,CONCAT("50px")=Size

Filter only fields[edit]

Only are added into 2 variables to pass into filters in wrapper table row templates

  • { {#var:cs!search-data} } : Name SpoilerName
  • { {#var:cs!filter-data} } : Style MaxRarity IsAlter
    • IsAlter - 1 or 0: pass from query from char db