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
(Created page with "<includeonly> {| table class="wikitable" style="width:100%;margin-bottom:0;" ! style="vertical-align:middle;position:relative;" |<!-- -->{{#if:{{{rarity|}}}|<div style="float:...")
 
mNo edit summary
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>__NOTOC__<!--
{| table class="wikitable" style="width:100%;margin-bottom:0;"
-->{{#vardefine:FIRST_STATUS|{{#replace:{{#explode:{{{statuses|}}}|,}}|'|\'}} }}<!--
! style="vertical-align:middle;position:relative;" |<!--
-->{{#if:{{{limited|}}}|{{BBDW Limited Notice|Grimoire|{{{limited|}}}}}}}
<table class="wikitable" style="width:100%;margin-bottom:0; border-bottom: 0; display:table;">
<tr><th style="vertical-align:middle;position:relative; border-bottom: 0;"><!--
-->{{#if:{{{rarity|}}}|<div style="float:left;">{{{rarity|}}}★</div>}}<!--
-->{{#if:{{{rarity|}}}|<div style="float:left;">{{{rarity|}}}★</div>}}<!--
--><div>{{#if:{{{namejp|}}}|'''{{{namejp}}}'''}}<!--
--><div style="float:right;">{{edit|Special:FormEdit/BBDW Grimoire/Gameplay:{{{namejp|}}} BBDW Grimoire}}</div><!--
-->{{#if:{{{nameen|}}}| {{#if:{{{nameen|}}}|<br />}} {{{nameen|}}}}}<!--
--><div>{{#if:{{{namejp|}}}|'''{{{namejp}}}'''}}{{#if:{{{nameen|}}}|<br/>{{{nameen|}}}}}</div>
--><div style="float:right;">{{edit|Special:FormEdit/BBDW Grimoire/Gameplay:{{{namejp|}}} BBDW Grimoire}}</div>
</th>
</div>
</tr>
|}
</table>
<div style="display: flex; flex-wrap: wrap; flex-direction: row; text-align:center; vertical-align:top;">
<div style="display: flex; flex-wrap: wrap; flex-direction: row; text-align:center; align-items:stretch;">
<div style="flex:1 1 480px;">
<div style="flex:1 300px; align-self: stretch;">{{#if:{{{image|}}}|[[File:{{{image}}}|class=bbdw-grimoire]]}}</div>
{{#invoke:Tabs|main|containerclass=forceport
<div style="flex:3; margin-bottom:0;min-height:300px;">
|tab1={{#if:{{{image|}}}|Art 1}}
|content1={{#if:{{{image|}}}|[[File:{{{image}}}|300x300px]]}}
|tab2={{#if:{{{image2|}}}|Art 2}}
|content2={{#if:{{{image2|}}}|[[File:{{{image2}}}]]}}
}}
</div>
<div style="flex:1 1 220px; margin-bottom:0;min-height:300px;">
<table class="wikitable" style="margin:0;padding:0;width:100%;height:100%;overflow-y:auto;"><!--
<table class="wikitable" style="margin:0;padding:0;width:100%;height:100%;overflow-y:auto;"><!--
--><th colspan=2 style="height:1em;">Description</th>
--><tr><th>Skill Icon</th><th style="height:1em;">Skill Description</th></tr>
</tr><tr><td colspan=2 style="text-align:left; vertical-align:top;"|>{{{fxdesc|}}}{{#if:{{{flavortext|}}}|<br/><i>{{{flavortext|}}}</i>}}</td>
<tr>
<td>{{#cargo_query:tables=BBDW_Statuses
|fields=icon=img,CONCAT('45px')=width,CONCAT('')=imglink
|where=nameen='{{#var:FIRST_STATUS}}'
|format=template|template=Icon|named args=yes
}}</td>
<td style="text-align:left; vertical-align:top;"|><!--
-->{{{fxdesc|}}}{{#if:{{{maxfxdesc|}}}|<br>(At MAX) {{{maxfxdesc|}}}}}<!--
--></td>
</tr><!--
</tr><!--
--><tr>{{#if:{{{namejp|}}}{{{namejpalt|}}}|<th>Name</th><td>{{{namejp|}}} {{#if:{{{namejpalt|}}}|({{{namejpalt|}}})}}</td><tr>}}<!--
-->{{#if:{{{namejp|}}}{{{namejpalt|}}}|<tr><th>Name</th><td>{{{namejp|}}} {{#if:{{{namejpalt|}}}|({{{namejpalt|}}})}}</td><tr>}}<!--
--><tr>{{#if:{{{rarity|}}}|<th>Rarity</th><td>{{{rarity|}}}</td><tr>}}<!--
-->{{#if:{{{flavortexten|}}}|<tr><th>Profile Description (English)</th><td style="font-style:italic"><div style="white-space:pre-wrap;margin:0;padding:0;">
--><tr>{{#if:{{{cost|}}}|<th>Cost</th><td>{{{cost|}}}</td><tr>}}<!--
{{{flavortexten|}}}
--><tr>{{#if:{{{minatk|}}}|<th>Atk (Min)</th><td>{{{minatk|}}}</td><tr>}}<!--
</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:{{{cost|}}}|<tr><th>Cost</th><td>{{{cost|}}}</td><tr>}}<!--
--><tr><th>HP (Min/Max)</th><td>{{{minhp|}}}/{{{maxhp|}}}</td><tr><!--
--><tr><th>Atk (Min/Max)</th><td>{{{minatk|}}}/{{{maxatk|}}}</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>}}<!--
-->{{#if:{{{releasejp|}}}|<tr><th>Release Date</th><td>{{{releasejp|}}}</td></tr>}}<!--
-->{{#if:{{{releasejp|}}}|<tr><th>Release Date</th><td>{{{releasejp|}}}<br/><!--
-->{{#if:{{{obtain|}}}|<tr><th>Obtain</th><td>TBA</td></tr>}}
-->{{#cargo_query:table=BBDW_Events
|fields=CONCAT('([[Gameplay: ', nameen, ' BBDW Event|', nameen, ']])' )=name
|where=(new_grimoires HOLDS '{{#replace:{{{namejp|}}}|'|\'}}'
OR featured_grimoires HOLDS '{{#replace:{{{namejp|}}}|'|\'}}'
{{#if:{{{nameen|}}}|OR new_grimoires HOLDS '{{#replace:{{{nameen|}}}|'|\'}}'
OR featured_grimoires HOLDS '{{#replace:{{{nameen|}}}|'|\'}}' }}
) {{#switch:{{{limited|}}}|Event=AND eventtype='Event'|Gacha=AND eventtype='Gacha'|Welfare=AND eventtype='Welfare'}}
|more results text=|limit=1
|default={{{obtain|}}}
}}
</td></tr>}}<!--
--><tr><th>Characters</th><td>{{#arraymap:{{{characters|}}}|,|x|[[x]]|,}}</td></tr>
</table></div>
</table></div>
</div><!--
</div><!--
Line 35: Line 57:
-->{{#cargo_store:
-->{{#cargo_store:
_table = BBDW_Grimoires
_table = BBDW_Grimoires
|pgname= {{{pgname|}}}
|pgname= {{FULLPAGENAME}}
|namejp = {{{namejp|}}}
|namejp = {{{namejp|}}}
|namejpalt= {{{namejpalt|}}}
|namejpalt= {{{namejpalt|}}}
Line 43: Line 65:
|icon = {{{icon|}}}
|icon = {{{icon|}}}
|image = {{{image|}}}
|image = {{{image|}}}
|flavortext = {{{flavortext|}}}
|flavortext = {{{flavortexten|}}}
|releasejp = {{{releasejp|}}}
|releasejp = {{{releasejp|}}}
|rarity= {{{rarity|}}}
|rarity= {{{rarity|}}}
|cost = {{{cost|}}}
|cost = {{{cost|}}}
|minatk = {{{minatk|}}}
|minatk = {{{minatk|}}}
|minhp = {{{minhp|}}}
|mindef = {{{mindef|}}}
|maxatk= {{{maxatk|}}}
|maxhp = {{{maxhp|}}}
|maxdef= {{{maxdef|}}}
|fxicon =
|fxdesc = {{{fxdesc|}}}
|fxdesc = {{{fxdesc|}}}
|maxfxdesc = {{{maxfxdesc|}}}
|statuses = {{{statuses|}}}
|statuses = {{{statuses|}}}
|characters = {{{characters|}}}
}}
}}
}}</includeonly><!--
}}</includeonly><!--
Line 69: Line 99:
|cost = Integer
|cost = Integer
|minatk = Integer
|minatk = Integer
|minhp = Integer
|mindef = Integer
|maxatk = Integer
|maxhp = Integer
|maxdef = Integer
|fxicon = File
|fxdesc = Wikitext
|fxdesc = Wikitext
|maxfxdesc = Wikitext
|statuses= List (,) of String
|statuses= List (,) of String
|characters=List (,) of String
}}
}}


Create a grimoire [[Special:FormEdit/BBDW_Grimoire|here]].
Refer to pages in [[:Category:BBDW Grimoire]] or [[Grimoires (BBDW)]] for examples of this template in use.
 
{{Documentation}}
[[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.