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

Template:BBDW Grimoire Table: Difference between revisions

Template page
m (hide characters column if no characters are provided)
(removed flavor text from effect description, removed tooltips from the status icon, pulled status icon from the list of statuses instead of from the girmoire itself)
Line 11: Line 11:
<td>{{#if:{{{minhp|}}}|{{{minhp|}}}|-}}</td>
<td>{{#if:{{{minhp|}}}|{{{minhp|}}}|-}}</td>
<td>{{#if:{{{mindef|}}}|{{{mindef|}}}|-}}</td>
<td>{{#if:{{{mindef|}}}|{{{mindef|}}}|-}}</td>
<td>{{#if:{{{fxicon|}}}|
<td>{{#cargo_query:tables=BBDW_Statuses
{{tt|[[File:{{{fxicon|}}}|45px|link=]]|{{{fxdesc|}}} }}
|fields=icon=img,CONCAT('45px')=width,CONCAT('')=imglink
|{{tt|{{bbdw|placeholder}}|{{{fxdesc|}}}</i>}}
|where=nameen='{{#var:FIRST_STATUS}}'
|format=template|template=Icon|named args=yes
|default={{bbdw|placeholder}}
}}</td>
}}</td>
{{#if:{{{characters|}}}|<td>{{#arraymap:{{{characters|}}}|,|x|[[{{#sub:x|0|{{#pos:x|,}}}}|x]]}}</td>}}
{{#if:{{{characters|}}}|<td>{{#arraymap:{{{characters|}}}|,|x|[[{{#sub:x|0|{{#pos:x|,}}}}|x]]}}</td>}}
<td style="max-width:300px;">{{{fxdesc|}}}{{#if:{{{flavortext|}}}|<hr>{{{flavortext|}}}}}</td>
<td style="max-width:300px;">{{{fxdesc|}}}</td>
</tr>
</tr>
</includeonly><noinclude>
</includeonly><noinclude>

Revision as of 17:51, 27 February 2021

Displays Category:BBDW Grimoire information formatted nicely in a single table row.

Usage

{{#cargo_query:
|tables=BBDW_Grimoires=g
|fields=g.icon,g.image,g.pgname,g.nameen,g.namejp
,g.rarity,g.cost,g.minatk,g.minhp,g.mindef
,g.fxicon,g.fxdesc,g.flavortext
,g.characters
|order by=g.releasejp desc,g.rarity desc,g.namejp
|format=template
|template=BBDW_Grimoire_Table
|named args=yes
}}