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

Template:BBDW Grimoire: Difference between revisions

Template page
(Adjusted BBDW Grimoire art appearance and position.)
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 22: Line 22:
}}</td>
}}</td>
<td style="text-align:left; vertical-align:top;"|><!--
<td style="text-align:left; vertical-align:top;"|><!--
-->{{{fxdesc|}}}<!--
-->{{{fxdesc|}}}{{#if:{{{maxfxdesc|}}}|<br>(At MAX) {{{maxfxdesc|}}}}}<!--
--></td>
--></td>
</tr><!--
</tr><!--
-->{{#if:{{{namejp|}}}{{{namejpalt|}}}|<tr><th>Name</th><td>{{{namejp|}}} {{#if:{{{namejpalt|}}}|({{{namejpalt|}}})}}</td><tr>}}<!--
-->{{#if:{{{namejp|}}}{{{namejpalt|}}}|<tr><th>Name</th><td>{{{namejp|}}} {{#if:{{{namejpalt|}}}|({{{namejpalt|}}})}}</td><tr>}}<!--
-->{{#if:{{{flavortexten|}}}|<tr><th>Profile Description (English)</th><td><i>{{{flavortexten|}}}</i>}}<!--
-->{{#if:{{{flavortexten|}}}|<tr><th>Profile Description (English)</th><td style="font-style:italic"><div style="white-space:pre-wrap;margin:0;padding:0;">
-->{{#if:{{{flavortext|}}}|<tr><th>Profile Description (Japanese)</th><td>{{{flavortext|}}}</td></tr>}}<!--
{{{flavortexten|}}}
</div></td></tr>}}<!--
-->{{#if:{{{flavortext|}}}|<tr><th>Profile Description (Japanese)</th><td><div style="white-space:pre-wrap;margin:0;padding:0;">
{{{flavortext|}}}
</div></td></tr>}}<!--
-->{{#if:{{{rarity|}}}|<tr><th>Rarity</th><td>{{#switch:{{{rarity|}}}|1=★|2=★★|3=★★★|4=★★★★|5=★★★★★}}</td><tr>}}<!--
-->{{#if:{{{rarity|}}}|<tr><th>Rarity</th><td>{{#switch:{{{rarity|}}}|1=★|2=★★|3=★★★|4=★★★★|5=★★★★★}}</td><tr>}}<!--
-->{{#if:{{{cost|}}}|<tr><th>Cost</th><td>{{{cost|}}}</td><tr>}}<!--
-->{{#if:{{{cost|}}}|<tr><th>Cost</th><td>{{{cost|}}}</td><tr>}}<!--
-->{{#if:{{{minhp|}}}|<tr><th>HP (Min)</th><td>{{{minhp|}}}</td><tr>}}<!--
--><tr><th>HP (Min/Max)</th><td>{{{minhp|}}}/{{{maxhp|}}}</td><tr><!--
-->{{#if:{{{minatk|}}}|<tr><th>Atk (Min)</th><td>{{{minatk|}}}</td><tr>}}<!--
--><tr><th>Atk (Min/Max)</th><td>{{{minatk|}}}/{{{maxatk|}}}</td><tr><!--
-->{{#if:{{{mindef|}}}|<tr><th>Def (Min)</th><td>{{{mindef|}}}</td><tr>}}<!--
--><tr><th>Def (Min/Max)</th><td>{{{mindef|}}}/{{{maxdef|}}}</td><tr><!--
-->{{#if:{{{illust|}}}|<tr><th> Illustrator </th><td><!--
-->{{#if:{{{illust|}}}|<tr><th> Illustrator </th><td><!--
-->{{{illust|}}}{{#if:{{{illustalt|}}}|&nbsp;({{{illustalt|}}})}} </td></tr>}}<!--
-->{{{illust|}}}{{#if:{{{illustalt|}}}|&nbsp;({{{illustalt|}}})}} </td></tr>}}<!--
Line 38: Line 42:
-->{{#cargo_query:table=BBDW_Events
-->{{#cargo_query:table=BBDW_Events
|fields=CONCAT('([[Gameplay: ', nameen, ' BBDW Event|', nameen, ']])' )=name
|fields=CONCAT('([[Gameplay: ', nameen, ' BBDW Event|', nameen, ']])' )=name
|where=(new_grimoires HOLDS '{{#replace:{{{nameen|}}}|'|\'}}'  
|where=(new_grimoires HOLDS '{{#replace:{{{namejp|}}}|'|\'}}'  
OR new_grimoires HOLDS '{{#replace:{{{namejp|}}}|'|\'}}'  
OR featured_grimoires HOLDS '{{#replace:{{{namejp|}}}|'|\'}}'  
OR featured_grimoires HOLDS '{{#replace:{{{nameen|}}}|'|\'}}'  
{{#if:{{{nameen|}}}|OR new_grimoires HOLDS '{{#replace:{{{nameen|}}}|'|\'}}'
OR featured_grimoires HOLDS '{{#replace:{{{namejp|}}}|'|\'}}'
OR featured_grimoires HOLDS '{{#replace:{{{nameen|}}}|'|\'}}' }}
) {{#ifeq:{{{limited|}}}|Event|AND eventtype='Event'|AND eventtype='Gacha'}}
) {{#switch:{{{limited|}}}|Event=AND eventtype='Event'|Gacha=AND eventtype='Gacha'|Welfare=AND eventtype='Welfare'}}
|more results text=|limit=1
|more results text=|limit=1
|default={{{obtain|}}}
|default={{{obtain|}}}
}}
}}
</td></tr><!--
</td></tr>}}<!--
--><tr><th>Characters</th><td>{{{characters|}}}</td></tr>
--><tr><th>Characters</th><td>{{#arraymap:{{{characters|}}}|,|x|[[x]]|,}}</td></tr>
}}
</table></div>
</table></div>
</div><!--
</div><!--
Line 69: Line 72:
|minhp = {{{minhp|}}}
|minhp = {{{minhp|}}}
|mindef = {{{mindef|}}}
|mindef = {{{mindef|}}}
|maxatk= {{{maxatk|}}}
|maxhp = {{{maxhp|}}}
|maxdef= {{{maxdef|}}}
|fxicon =  
|fxicon =  
|fxdesc = {{{fxdesc|}}}
|fxdesc = {{{fxdesc|}}}
|maxfxdesc = {{{maxfxdesc|}}}
|statuses = {{{statuses|}}}
|statuses = {{{statuses|}}}
|characters = {{{characters|}}}
|characters = {{{characters|}}}
Line 94: Line 101:
|minhp = Integer
|minhp = Integer
|mindef = Integer
|mindef = Integer
|maxatk = Integer
|maxhp = Integer
|maxdef = Integer
|fxicon = File
|fxicon = File
|fxdesc = Wikitext
|fxdesc = Wikitext
|maxfxdesc = Wikitext
|statuses= List (,) of String
|statuses= List (,) of String
|characters=List (,) of String
|characters=List (,) of String
}}
}}
{{Documentation}}
 
Refer to pages in [[:Category:BBDW Grimoire]] or [[Grimoires (BBDW)]] for examples of this template in use.
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 15:17, 30 September 2021

This template defines the table "BBDW_Grimoires". View table.

Refer to pages in Category:BBDW Grimoire or Grimoires (BBDW) for examples of this template in use.