More actions
mNo edit summary |
(moved template for formatting a table row into subpage, and moved wikitext for determining the table and cargo query itself here) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><!-- | ||
< | -->{{#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}}}}}}<!-- | |||
--><table class="sortable wikitable" style="text-align:center;"> | |||
--> | |||
--> | |||
<table class="sortable wikitable" style="text-align:center;"> | |||
<tr> | <tr> | ||
<th>Icon</th> | <th>Icon</th> | ||
Line 36: | Line 14: | ||
</tr> | </tr> | ||
{{#cargo_query: | {{#cargo_query: | ||
|tables=BBDW_Characters | |tables=BBDW_Characters | ||
|fields= | |fields=icon,pgname,nameen,namejp,element,baserarity,position,role,fxnameen1,fxdesc1,fxnameen2,fxdesc2,fxnameen3,fxdesc3,skillnameen1,skillicon1,skilldesc1,skillbasecd1,skillnameen2,skillicon2,skilldesc2,skillbasecd2,influences,releasejp | ||
|order by= | |where={{{where|}}} | ||
|order by={{#var:ORDER_BY}} | |||
|format=template | |format=template | ||
|template=BBDW_Character_Table | |template=BBDW_Character_Table/row | ||
|named args=yes | |named args=yes | ||
}} | }} | ||
</tr> | </tr> | ||
</table> | </table> | ||
</includeonly><noinclude>Queries [[Special:CargoTables/BBDW_Characters|the Cargo table BBDW_Characters ]]to create a table of characters. | |||
==Usage== | |||
<pre><nowiki> | |||
{{BBDW Character Table | |||
|where=RARITY='SS' and element='fire' and position='Front' and role='Attacker' | |||
|order by=RARITY desc, nameen | |||
}} | |||
</nowiki></pre> | </nowiki></pre> | ||
==See Also== | |||
* Refer to [[Special:CargoTables/BBDW_Characters]] for a list of valid fields. | |||
* See [https://www.mediawiki.org/wiki/Extension:Cargo/Querying_data the official documentation on querying Cargo tables] for more information on how to use <code>where</code> and <code>order by</code> keywords | |||
* [[Template:BBDW Character Table/row]] determines the display of each row of the table | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 01:11, 25 February 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 }}
See Also
- Refer to Special:CargoTables/BBDW_Characters for a list of valid fields.
- See the official documentation on querying Cargo tables for more information on how to use
where
andorder by
keywords - Template:BBDW Character Table/row determines the display of each row of the table