Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:BBDW Character Table/row: Difference between revisions

Template page
(copy over table row template here)
 
m (added switch for different limited types (Gacha, Event, Welfare) - change this part to show different icons later)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
<tr>
<tr>
<td>{{Icon|img={{{icon|}}}|imglink={{{pgname|}}}#{{{nameen|}}}|width=45px}}</td>
<td>{{Icon|img={{{icon|}}}|imglink={{{pgname|}}}#{{{nameen|}}}|width=45px}}</td>
<td>[[{{{pgname|}}}|{{#if:{{{nameen|}}}|{{{nameen|}}}<br/>}}{{{namejp|}}}]]</td>
<td>[[{{{pgname|}}}|{{#if:{{{nameen|}}}|{{{nameen|}}}<br/>}}{{{namejp|}}}]] {{#switch:{{{limited|}}}|Gacha=(Limited)|Event=(Limited)|Welfare=(Limited)|<!--not limited, show nothing-->}}</td>
<td>{{bbdw|Rarity {{{baserarity|}}}}}</td>
<td>{{bbdw|Rarity {{{baserarity|}}}}}</td>
<td>{{bbdw|{{{element|}}}}}</td>
<td>{{bbdw|{{{element|}}}}}</td>

Latest revision as of 14:27, 30 September 2021

Displays character information in a table row. Used by Template:BBDW Character Table

Usage

<table class="sortable wikitable" style="text-align:center;">
<tr>
<th>Icon</th>
<th>Name</th>
<th>Rarity</th>
<th>Element</th>
<th>Position & Role</th>
<th>Additional Effects</th>
<th>Skills</th>
<th>Groups</th>
</tr>
{{#cargo_query:
|tables=BBDW_Characters=char
|fields=char.icon,char.pgname,char.nameen,char.namejp,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
|order by=char.releasejp
|format=template
|template=BBDW_Character_Table/row
|named args=yes
}}
</tr>
</table>