Template:BBDW Character Table: Difference between revisions

Template page
(Created page with "<noinclude>Displays character information in a table row. ==Usage== <pre><nowiki> <table class="sortable wikitable" style="text-align:center;"> <tr> <th>Icon</th> <th>Rarity<...")
 
m (added "limited" field to query)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>Displays character information in a table row.
<includeonly><!--
 
-->{{#vardefine:RARITY|IF(baserarity='SS',4,IF(baserarity='S',3,IF(baserarity='AI',2,IF(baserarity='AII',1,0)))) }}<!--
==Usage==
-->{{#vardefine:ORDER_BY|{{#replace:{{{order by|}}}|RARITY|{{#var:RARITY}}}}}}<!--
<pre><nowiki>
--><table class="sortable wikitable" style="text-align:center; width: 100%;">
<table class="sortable wikitable" style="text-align:center;">
<tr>
<tr>
<th>Icon</th>
<th>Icon</th>
<th>Name</th>
<th>Rarity</th>
<th>Rarity</th>
<th>Element</th>
<th>Element</th>
Line 14: Line 14:
</tr>
</tr>
{{#cargo_query:
{{#cargo_query:
|tables=BBDW_Characters=char
|tables=BBDW_Characters
|fields=char.icon,char.pgname,char.nameen,char.element,char.baserarity,char.position,char.role,char.fxnameen1,char.fxdesc1,char.fxnameen2,char.fxdesc2,char.fxnameen3,char.fxdesc3,char.skillnameen1,char.skillicon1,char.skilldesc1,char.skillbasecd1,char.skillnameen2,char.skillicon2,char.skilldesc2,char.skillbasecd2,char.influences
|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,limited
|order by=char.releasejp
|where={{{where|}}}
|order by={{#var:ORDER_BY}}
|format=template
|format=template
|template=BBDW_Character_Table
|template=BBDW_Character_Table/row
|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>


<table class="sortable wikitable" style="text-align:center;">
This template defines a custom column, <code>RARITY</code>, for ordering characters by their rarity the way the game orders it, instead of alphabetically. <code>RARITY</code> 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.
<tr>
 
<th>Icon</th>
==See Also==
<th>Rarity</th>
* Refer to [[Special:CargoTables/BBDW_Characters]] for a list of valid fields.
<th>Element</th>
* 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
<th>Position & Role</th>
* [[Template:BBDW Character Table/row]] determines the display of each row of the table
<th>Additional Effects</th>
<th>Skills</th>
<th>Groups</th>
</tr>
{{BBDW_Character_Table
|icon=BlazBlue Alternative Dark War Ciel Sulfur Icon.png
|pgname=Ciel Sulfur/BBDW
|nameen=Ciel Sulfur
|element=light
|baserarity=A1
|position=Flex
|role=Attacker
|releasejp=2021/02/16
|fxnameen3=BlazBlue Alternative
|fxnamejp3=ブレイブルーオルタナティブ
|fxnamejpalt3=Bureiburū Orutanatibu
|fxdesc3=Recover 100% of damage taken by this character as HP
|fxtargettype3=AOE
|fxunlock3=SS
|skillnameen1=Gale Wing: Gale Wing Call Type-C - Flight
|skillicon1=BBDW_Double_Skill_Up_Placeholder.png
|skillfx1=Raise attack by 10% (2 turns) and Critical hit rate by 20% (2 Turns) for a single ally
|skillicon2=BlazBlue Alternative Dark War Ciel Sulfur Icon.png
|skillnameen2=Glorious Feather: Light Wing Formation Type-C - Heavens
|skillfx2=28% Defense Down (1 Turn) to a single enemy and cancel all buffing effects.
|influences=Grimoire/魔道書, Neutral/中立, Prime Field/素体
}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly>
</noinclude>
<tr>
<td>{{Icon|img={{{icon|}}}|imglink={{{pgname|}}}|caption=[[{{{pgname|}}}#{{{nameen|}}}|{{{nameen|}}}]]|width=45px}}</td>
<td>{{{baserarity|}}}<br/>{{bbdw|{{{baserarity|}}}}}</td>
<td>{{{element|}}}<br/>{{bbdw|{{{element|}}}}}</td>
<td>{{{position|}}} {{{role|}}}<br/>{{bbdw|{{{position|}}} {{{role|}}}}}</td>
<td>{{tt|S|{{{fxnameen1|}}}<hr>{{{fxdesc1|}}}}} ·
{{tt|DD|{{{fxnameen2|}}}<hr>{{{fxdesc2|}}}}} ·
{{tt|AH|{{{fxnameen3|}}}<hr>{{{fxdesc3|}}}}}
</td>
</td>
<td><div style="display:flex;">{{#if:{{{skillicon1|}}}|{{tt|[[File:{{{skillicon1|}}}|45px|link=]]|{{{skillnameen1|}}}<hr/>{{{skillfx1|}}}<br/>CD: {{{skillbasecd1|}}} }} }}&nbsp;{{#if:{{{skillicon2|}}}|{{tt|[[File:{{{skillicon2|}}}|45px|link=]]|{{{skillnameen2|}}}<hr/>{{{skillfx2|}}}<br/>CD: {{{skillbasecd1|}}} }} }}</div></td>
<td>{{bbdw|Group|{{{influences|}}}}}</td>
</tr>
</includeonly>

Latest revision as of 19:22, 28 September 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