More actions
(added new parameter tradable_chars for gacha exchange, renamed table labels to be clearer) |
(adding params storypg and gachapg to store the page name for the related gacha/story) |
||
(20 intermediate revisions by 2 users not shown) | |||
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 11: | Line 11: | ||
</tr><!-- | </tr><!-- | ||
-->{{#if:{{{image|}}}|< | --><tr><td colspan="2" style="text-align:center;">{{#if:{{{image|}}}|[[File:{{{image|}}}|500x600px]]}}<!-- | ||
-->{{#if:{{{image2|}}}|[[File:{{{image2|}}}|260x500px]]}}</td></tr><!-- | |||
--><tr><th>Event Type</th><td>{{{eventtype|}}}</td></tr> | --><tr><th>Event Type</th><td>{{{eventtype|}}}</td></tr> | ||
<tr><th>Duration</th><td>{{{start|}}}<!-- | <tr><th>Duration</th><td>{{#if:{{{start|}}}|{{#time:Y, F d H:i|{{{start}}}}} JST}} <!-- | ||
-->{{#if:{{{start|}}}|{{#if:{{{end|}}}|~}} }}<!-- | -->{{#if:{{{start|}}}|{{#if:{{{end|}}}|~}}}} <!-- | ||
-->{{{end|}}}</td> | -->{{#if:{{{end|}}}|{{#time:Y, F d H:i|{{{end}}}}} JST}}</td> | ||
</tr><!-- | </tr><!-- | ||
--></table><!-- | --></table><!-- | ||
-->{{#if:{{{featured_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 34: | 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= | |text-align=center|maxwidth=100%}} | ||
| | |||
</td></tr> | </td></tr> | ||
}}<!-- | }}<!-- | ||
Line 49: | Line 41: | ||
-->{{#if:{{{new_chars|}}}| | -->{{#if:{{{new_chars|}}}| | ||
<tr><td style="vertical-align:top;"> | <tr><td style="vertical-align:top;"> | ||
<div style="text-align:center"> | <div style="text-align:center">New Characters</div> | ||
{{Icon Grid | {{Icon Grid | ||
|{{#arraymap:{{{new_chars|}}}|,|x|{{bbdw|char|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}} | |{{#arraymap:{{{new_chars|}}}|,|x|{{bbdw|char|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}} | ||
|text-align= | |text-align=center|maxwidth=100%}} | ||
</td></tr> | </td></tr> | ||
}} | }} | ||
Line 59: | 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 70: | Line 62: | ||
{{Icon Grid | {{Icon Grid | ||
|{{#arraymap:{{{featured_grimoires|}}}|,|x|{{bbdw|grim|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}} | |{{#arraymap:{{{featured_grimoires|}}}|,|x|{{bbdw|grim|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}} | ||
|text-align= | |text-align=center|maxwidth=100%}} | ||
</td></tr> | </td></tr> | ||
}}<!-- | }}<!-- | ||
Line 76: | Line 68: | ||
-->{{#if:{{{new_grimoires|}}}| | -->{{#if:{{{new_grimoires|}}}| | ||
<tr><td style="vertical-align:top;"> | <tr><td style="vertical-align:top;"> | ||
<div style="text-align:center">New Grimoires</div> | <div style="text-align:center">{{#switch:{{{eventtype|}}} | ||
|Event=Event-Limited Grimoires | |||
|#default=New Grimoires | |||
}}</div> | |||
{{Icon Grid | {{Icon Grid | ||
|{{#arraymap:{{{new_grimoires|}}}|,|x|{{bbdw|grim|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}} | |{{#arraymap:{{{new_grimoires|}}}|,|x|{{bbdw|grim|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}} | ||
|text-align= | |text-align=center|maxwidth=100%}} | ||
</td></tr> | </td></tr> | ||
}}</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">Exchangeable Characters {{#if:{{{trade_item|}}}|{{bbdw|item|{{{trade_item|}}}|display=icononly|width=25px}}}}<br>{{bbdw|Rarity SS}} - 300</div> | |||
{{Icon Grid | |||
|{{#arraymap:{{{tradable_chars|}}}|,|x|{{bbdw|char|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}} | |||
|text-align=center|maxwidth=100%}} | |||
</td></tr> | |||
}}<!-- | |||
-->{{#if:{{{tradable_grimoires|}}}| | |||
<tr><td style="vertical-align:top;"> | |||
<div style="text-align:center">Exchangeable Grimoires {{#if:{{{trade_item|}}}|{{bbdw|item|{{{trade_item|}}}|display=icononly|width=25px}}}}<br>★5 - 150</div> | |||
{{Icon Grid | |||
|{{#arraymap:{{{tradable_grimoires|}}}|,|x|{{bbdw|grim|{{#sub:x|0|{{#pos:x|,}}}}}}|\s}} | |||
|text-align=center|maxwidth=100%}} | |||
</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><!-- | ||
--></table>}}<!-- | --></table>}} | ||
__TOC__<!-- | |||
-->[[Category:BBDW Event]]<!-- | -->[[Category:BBDW Event]]<!-- | ||
Line 97: | Line 115: | ||
|namejpalt={{{namejpalt|}}} | |namejpalt={{{namejpalt|}}} | ||
|image={{{image|}}} | |image={{{image|}}} | ||
|image2={{{image2|}}} | |||
|eventtype={{{eventtype|}}} | |eventtype={{{eventtype|}}} | ||
|startdate={{{start|}}} | |startdate={{{start|}}} | ||
Line 105: | Line 124: | ||
|new_grimoires={{{new_grimoires|}}} | |new_grimoires={{{new_grimoires|}}} | ||
|notes={{{notes|}}} | |notes={{{notes|}}} | ||
|gachapg={{{gachapg|}}} | |||
|storypg={{{storypg|}}} | |||
}}<!-- | }}<!-- | ||
Line 113: | Line 134: | ||
|namejpalt=String | |namejpalt=String | ||
|image=File | |image=File | ||
|image2=File | |||
|eventtype=String | |eventtype=String | ||
|startdate=Start datetime | |startdate=Start datetime | ||
Line 121: | Line 143: | ||
|new_grimoires=List (,) of String | |new_grimoires=List (,) of String | ||
|notes=Wikitext | |notes=Wikitext | ||
|gachapg=Page | |||
|storypg=Page | |||
}} | }} | ||
Adds basic info about a BBDW event or gacha. | Adds basic info about a BBDW event or gacha. | ||
See also | |||
* [[Template:BBDW Event/Preload]] for the text/headers that are pre-loaded into event pages when they are created using [[Form:BBDW Event]]. | |||
* [[Form:BBDW Event]] - Create or edit BBDW event pages | |||
* [[Form:BBDW Gacha]] - Create or edit BBDW gacha pages | |||
==Usage== | ==Usage== | ||
<pre><nowiki> | <pre><nowiki> | ||
{{BBDW Event | {{BBDW Event | ||
|nameen= | |nameen=Test Gacha | ||
|namejp= | |namejp=テストガチャ | ||
|namejpalt= | |namejpalt= | ||
|image= | |image= | ||
|image2= | |||
|eventtype=Gacha | |eventtype=Gacha | ||
|start=2021/02/16 12:00:00AM | |start=2021/02/16 12:00:00AM | ||
Line 136: | Line 167: | ||
|featured_chars=Rate-Up characters for gacha; Event Bonus characters for events | |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 | |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= | ||
|gachapg=name of the page for the related gacha | |||
|storypg=name of the page for related story | |||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 23:33, 31 December 2021
This template defines the table "BBDW_Events". View table.
Adds basic info about a BBDW event or gacha.
See also
- Template:BBDW Event/Preload for the text/headers that are pre-loaded into event pages when they are created using Form:BBDW Event.
- Form:BBDW Event - Create or edit BBDW event pages
- Form:BBDW Gacha - Create or edit BBDW gacha pages
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= |gachapg=name of the page for the related gacha |storypg=name of the page for related story }}