Template:BBDW Character Table: Difference between revisions

Template page
m (→‎Usage: fixed typo)
(Table width adjustment)
Line 2: Line 2:
-->{{#vardefine:RARITY|IF(baserarity='SS',4,IF(baserarity='S',3,IF(baserarity='AI',2,IF(baserarity='AII',1,0)))) }}<!--
-->{{#vardefine:RARITY|IF(baserarity='SS',4,IF(baserarity='S',3,IF(baserarity='AI',2,IF(baserarity='AII',1,0)))) }}<!--
-->{{#vardefine:ORDER_BY|{{#replace:{{{order by|}}}|RARITY|{{#var:RARITY}}}}}}<!--
-->{{#vardefine:ORDER_BY|{{#replace:{{{order by|}}}|RARITY|{{#var:RARITY}}}}}}<!--
--><table class="sortable wikitable" style="text-align:center;">
--><table class="sortable wikitable" style="text-align:center; width: 100%;">
<tr>
<tr>
<th>Icon</th>
<th>Icon</th>

Revision as of 10:38, 22 March 2021

Queries the Cargo table BBDW_Characters to create a table of characters.

Usage

{{BBDW Character Table
|where=RARITY='SS' and element='fire' and position='Front' and role='Attacker'
|order by=RARITY desc, nameen
}}

This template defines a custom column, RARITY, for ordering characters by their rarity the way the game orders it, instead of alphabetically. RARITY translates the in-game alphabetic base rarities into their numbers: AII to 1, AI to 2, S to 3, SS to 4, and none to 0.

See Also