More actions
(Created page with "<includeonly> <tr> <td>{{#if:{{{icon|}}}|[[File:{{{icon|}}}|45x45px]]}}</td> <td>{{#if:{{{pgname|}}}|[[{{{pgname|}}}|{{{namejp|}}}<br/>{{{nameen|}}}]] |{{{namejp|}}}<br/>{{{na...") |
m (added html for filtering grimoires by status application) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<tr> | <tr class="bbdw-status" data-bbdw-status="All; {{#replace:{{{statuses|}}}|,|;}}"> | ||
<td>{{#if:{{{icon|}}}|[[File:{{{icon|}}}| | <td>{{#if:{{{icon|}}}|[[File:{{{icon|}}}|100px]] | ||
|{{#if:{{{image|}}}|[[File:{{{image|}}}|100px]]}} | |||
}}</td> | |||
<td>{{#if:{{{pgname|}}}|[[{{{pgname|}}}|{{{namejp|}}}<br/>{{{nameen|}}}]] | <td>{{#if:{{{pgname|}}}|[[{{{pgname|}}}|{{{namejp|}}}<br/>{{{nameen|}}}]] | ||
|{{{namejp|}}}<br/>{{{nameen|}}} }}</td> | |{{{namejp|}}}<br/>{{{nameen|}}} }}</td> | ||
<td>{{{rarity|}}}</td> | <td>{{{rarity|}}}</td> | ||
<td>{{{cost|}}}</td> | <td>{{{cost|}}}</td> | ||
<td>{{#if:{{{ | <td>{{#if:{{{minatk|}}}|{{{minatk|}}}|-}}</td> | ||
{{ | <td>{{#if:{{{minhp|}}}|{{{minhp|}}}|-}}</td> | ||
<td>{{#if:{{{mindef|}}}|{{{mindef|}}}|-}}</td> | |||
<td>{{#cargo_query:tables=BBDW_Statuses | |||
|fields=icon=img,CONCAT('45px')=width,CONCAT('')=imglink | |||
|where=nameen='{{#replace:{{#explode:{{{statuses|}}}|,}}|'|\'}}' | |||
|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>}} | |||
<td style="max-width:300px;">{{{fxdesc|}}}</td> | |||
</tr> | </tr> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Displays [[:Category:BBDW Grimoire]] information formatted nicely in a single table row. | Displays [[:Category:BBDW Grimoire]] information formatted nicely in a single table row. | ||
==Usage== | ==Usage== | ||
<pre><nowiki> | <pre><nowiki> | ||
{{#cargo_query: | {{#cargo_query: | ||
|tables=BBDW_Grimoires=g | |tables=BBDW_Grimoires=g | ||
|fields=g.icon,g.pgname,g.nameen,g.namejp | |fields=g.icon,g.image,g.pgname,g.nameen,g.namejp | ||
,g.rarity,g.cost | ,g.rarity,g.cost,g.minatk,g.minhp,g.mindef | ||
,g.fxicon,g.fxdesc,g.flavortext | ,g.fxicon,g.fxdesc,g.flavortext | ||
,g.characters | ,g.characters |
Latest revision as of 00:34, 24 March 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 }}