Template:BBDW Event: Difference between revisions

Template page
m (changed image2 field to File type)
(moved tradable characters to the bottom, fixed logic for collapsing character/grimoire sections, added tradable_grimoires and trade_item fields)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--


--><table id="{{{nameen|}}}" class="wikitable" style="width:100%; vertical-align:top; margin-bottom:0;"><!--
--><table id="{{{nameen|}}}" class="wikitable" style="width:100%; vertical-align:top; margin-bottom:0; display:table;"><!--


--><tr><th colspan="2">{{#if:{{{nameen|}}}<!--
--><tr><th colspan="2">{{#if:{{{nameen|}}}<!--
Line 23: Line 23:
--></table><!--
--></table><!--


-->{{#if:{{{featured_chars|}}}{{{tradable_chars|}}}{{{new_chars|}}}|
-->{{#if:{{{featured_chars|}}}{{{new_chars|}}}|
<table class="wikitable {{#if:{{{new_chars|}}}|mw-collapsible}}" style="margin-top:0;margin-bottom:0;width:100%;"><!--
<table class="wikitable {{#if:{{{new_chars|}}}|{{#if:{{{featured_chars|}}}|mw-collapsible mw-collapsed}}}}" style="margin-top:0;margin-bottom:0;width:100%;display:table;"><!--


-->{{#if:{{{featured_chars|}}}|
-->{{#if:{{{featured_chars|}}}|
Line 35: Line 35:
{{Icon Grid
{{Icon Grid
|{{#arraymap:{{{featured_chars|}}}|,|x|{{bbdw|char|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}}
|{{#arraymap:{{{featured_chars|}}}|,|x|{{bbdw|char|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}}
|text-align=left}}
</td></tr>
}}<!--
-->{{#if:{{{tradable_chars|}}}|
<tr><td style="vertical-align:top;">
<div style="text-align:center">Exchangeable Characters</div>
{{Icon Grid
|{{#arraymap:{{{tradable_chars|}}}|,|x|{{bbdw|char|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}}
|text-align=left}}
|text-align=left}}
</td></tr>
</td></tr>
Line 60: Line 51:


-->{{#if:{{{featured_grimoires|}}}{{{new_grimoires|}}}|
-->{{#if:{{{featured_grimoires|}}}{{{new_grimoires|}}}|
<table class="wikitable {{#if:{{{featured_grimoires|}}}{{{new_grimoires|}}}|mw-collapsible}}" style="margin-top:0;margin-bottom:0;width:100%;"><!--
<table class="wikitable {{#if:{{{featured_grimoires|}}}|{{#if:{{{new_grimoires|}}}|mw-collapsible mw-collapsed}}}}" style="margin-top:0;margin-bottom:0;width:100%;display:table;"><!--


-->{{#if:{{{featured_grimoires|}}}|
-->{{#if:{{{featured_grimoires|}}}|
Line 87: Line 78:
}}</table>
}}</table>
}}<!--
}}<!--
-->{{#if:{{{tradable_chars|}}}{{{tradable_grimoires|}}}|<table class="wikitable" style="display:table;margin-top:0;margin-bottom:0;width:100%;"><!--
-->{{#if:{{{tradable_chars|}}}|
<tr><td style="vertical-align:top;">
<div style="text-align:center">{{tt|Exchangeable Characters|Exchange Rates:<br>{{bbdw|Rarity SS}} 300 {{#if:{{{trade_item|}}}|{{bbdw|item|{{{trade_item|}}}}} }} }}</div>
{{Icon Grid
|{{#arraymap:{{{tradable_chars|}}}|,|x|{{bbdw|char|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}}
|text-align=left}}
</td></tr>
}}<!--
-->{{#if:{{{new_grimoires|}}}|
<tr><td style="vertical-align:top;">
<div style="text-align:center">{{tt|Exchangeable Grimoires|Exchange Rates:<br>★5 150 {{#if:{{{trade_item|}}}|{{bbdw|item|{{{trade_item|}}}}} }} }}</div>
{{Icon Grid
|{{#arraymap:{{{tradable_grimoires|}}}|,|x|{{bbdw|grim|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}}
|text-align=left}}
</td></tr>
}}<!--
--></table>}}<!--


-->{{#if:{{{notes|}}}|
-->{{#if:{{{notes|}}}|
<table class="wikitable" style="margin-top:0;margin-bottom:0;width:100%;">
<table class="wikitable" style="margin-top:0;margin-bottom:0;width:100%;display:table;">
<tr><th>Notes</th></tr>
<tr><th>Notes</th></tr>
<tr><td>{{{notes|}}}</td></tr><!--
<tr><td>{{{notes|}}}</td></tr><!--
Line 133: Line 146:
<pre><nowiki>
<pre><nowiki>
{{BBDW Event
{{BBDW Event
|nameen=Tutorial Gacha
|nameen=Test Gacha
|namejp=chuchoriaru gacha
|namejp=テストガチャ
|namejpalt=
|namejpalt=
|image=
|image=
Line 143: Line 156:


|featured_chars=Rate-Up characters for gacha; Event Bonus characters for events
|featured_chars=Rate-Up characters for gacha; Event Bonus characters for events
|tradable_chars=Characters that can be traded for from the gacha exchange.
|new_chars=other newly added characters in the gacha or event that aren't on rate-up or have an event bonus
|new_chars=other newly added characters in the gacha or event that aren't on rate-up or have an event bonus


|featured_grimoires=Rate-Up Grimoires
|featured_grimoires=Rate-Up Grimoires
|new_grimoires=Other new grimoires added to the event or gacha that don't have rate-up or event bonus.
|new_grimoires=Other new grimoires added to the event or gacha that don't have rate-up or event bonus.
|tradable_chars=Characters that can be traded for from the gacha exchange.
|tradable_grimoires=
|trade_item=Item name
|notes=
|notes=
}}
}}

Revision as of 19:31, 1 April 2021

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

Adds basic info about a BBDW event or gacha.

Usage

{{BBDW Event
|nameen=Test Gacha
|namejp=テストガチャ
|namejpalt=
|image=
|image2=
|eventtype=Gacha
|start=2021/02/16 12:00:00AM
|end=

|featured_chars=Rate-Up characters for gacha; Event Bonus characters for events
|new_chars=other newly added characters in the gacha or event that aren't on rate-up or have an event bonus

|featured_grimoires=Rate-Up Grimoires
|new_grimoires=Other new grimoires added to the event or gacha that don't have rate-up or event bonus.

|tradable_chars=Characters that can be traded for from the gacha exchange.
|tradable_grimoires=
|trade_item=Item name

|notes=
}}