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
m (fixed display issue with illust field, fixed errors when querying cargo tables to get obtain information)
(removed unused image2 field (grimoires only have 1 image), grab skill icon based on first Status set, swapped hp to top of the hp/atk/def list)
Line 1: Line 1:
<includeonly>__NOTOC__
<includeonly>__NOTOC__<!--
<table class="wikitable" style="width:100%;margin-bottom:0;">
-->{{#vardefine:FIRST_STATUS|{{#replace:{{#explode:{{{statuses|}}}|,}}|'|\'}} }}<!--
--><table class="wikitable" style="width:100%;margin-bottom:0;">
<tr><th style="vertical-align:middle;position:relative;"><!--
<tr><th style="vertical-align:middle;position:relative;"><!--
-->{{#if:{{{rarity|}}}|<div style="float:left;">{{{rarity|}}}★</div>}}<!--
-->{{#if:{{{rarity|}}}|<div style="float:left;">{{{rarity|}}}★</div>}}<!--
Line 10: Line 11:
<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; vertical-align:top;">
<div style="flex:1 1 480px;">
<div style="flex:1 1 480px;">
{{#invoke:Tabs|main|containerclass=forceport
{{#if:{{{image|}}}|[[File:{{{image}}}|500x500px]]}}
|tab1={{#if:{{{image|}}}|Art 1}}
|content1={{#if:{{{image|}}}|[[File:{{{image}}}|500x500px]]}}
|tab2={{#if:{{{image2|}}}|Art 2}}
|content2={{#if:{{{image2|}}}|[[File:{{{image2}}}]]}}
}}
</div>
</div>
<div style="flex:1 1 220px; margin-bottom:0;min-height:300px;">
<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;"><!--
--><tr><th colspan=2 style="height:1em;">Description</th>
--><tr><th>Skill Icon</th><th style="height:1em;">Skill Description</th></tr>
</tr><tr>
<tr>
<td colspan=2 style="text-align:left; vertical-align:top;"|><!--
<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|}}}<!--
-->{{{fxdesc|}}}<!--
-->{{#if:{{{flavortexten|}}}|<br/><i>{{{flavortexten|}}}</i>}}<!--
-->{{#if:{{{flavortexten|}}}|<br/><i>{{{flavortexten|}}}</i>}}<!--
Line 28: Line 29:
-->{{#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:{{{flavortext|}}}|<tr><th>Profile Description (Japanese)</th><td>{{{flavortext|}}}</td></tr>}}<!--
-->{{#if:{{{flavortext|}}}|<tr><th>Profile Description (Japanese)</th><td>{{{flavortext|}}}</td></tr>}}<!--
-->{{#if:{{{rarity|}}}|<tr><th>Rarity</th><td>{{{rarity|}}}</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>}}<!--
-->{{#if:{{{minatk|}}}|<tr><th>Atk (Min)</th><td>{{{minatk|}}}</td><tr>}}<!--
-->{{#if:{{{minatk|}}}|<tr><th>Atk (Min)</th><td>{{{minatk|}}}</td><tr>}}<!--
-->{{#if:{{{minhp|}}}|<tr><th>HP (Min)</th><td>{{{minhp|}}}</td><tr>}}<!--
-->{{#if:{{{mindef|}}}|<tr><th>Def (Min)</th><td>{{{mindef|}}}</td><tr>}}<!--
-->{{#if:{{{mindef|}}}|<tr><th>Def (Min)</th><td>{{{mindef|}}}</td><tr>}}<!--
-->{{#if:{{{illust|}}}|<tr><th> Illustrator </th><td><!--
-->{{#if:{{{illust|}}}|<tr><th> Illustrator </th><td><!--
Line 59: Line 60:
|illust = {{{illust|}}}
|illust = {{{illust|}}}
|illustalt = {{{illustalt|}}}
|illustalt = {{{illustalt|}}}
|icon = {{{icon|}}}
|icon = {{#cargo_query:tables=BBDW_Statuses|fields=icon|where=nameen='{{#var:FIRST_STATUS}}'}}
|image = {{{image|}}}
|image = {{{image|}}}
|flavortext = {{{flavortexten|}}}
|flavortext = {{{flavortexten|}}}

Revision as of 04:54, 27 February 2021

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

Create a grimoire here.

Documentation icon Template documentation[create]