More actions
(to prepare for MEMORIES RESTORATION next week) |
(adding params storypg and gachapg to store the page name for the related gacha/story) |
||
(25 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 7: | Line 8: | ||
-->{{#if:{{{nameen|}}}|</small>}}<!-- | -->{{#if:{{{nameen|}}}|</small>}}<!-- | ||
--><div style="float:right;">{{edit|Special:FormEdit/BBDW Event/Gameplay:{{{nameen|}}} BBDW Event}}</div><!-- | --><div style="float:right;">{{edit|Special:FormEdit/BBDW Event/Gameplay:{{{nameen|}}} BBDW Event}}</div><!-- | ||
--></th></tr><!-- | --></th> | ||
</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></tr><!-- | -->{{#if:{{{end|}}}|{{#time:Y, F d H:i|{{{end}}}}} JST}}</td> | ||
</tr><!-- | |||
--></table><!-- | --></table><!-- | ||
-->{{#if:{{{featured_chars|}}}{{{new_chars|}}}| | -->{{#if:{{{featured_chars|}}}{{{new_chars|}}}| | ||
<table class="wikitable {{#if:{{{new_chars|}}}|mw-collapsible mw-collapsed}}" 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|}}}| | ||
<tr><td style="vertical-align:top;"> | <tr><td style="vertical-align:top;"> | ||
<div style="text-align:center">Featured Characters</div> | <div style="text-align:center">{{#switch:{{{eventtype|}}} | ||
|Gacha=Characters on Rate Up | |||
|Event=Characters with an Event Bonus | |||
|#default=Featured Characters | |||
}}</div> | |||
{{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 36: | Line 44: | ||
{{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> | ||
}} | |||
</table> | </table> | ||
}}<!-- | }}<!-- | ||
-->{{#if:{{{featured_grimoires|}}}{{{ | -->{{#if:{{{featured_grimoires|}}}{{{new_grimoires|}}}| | ||
<table class="wikitable {{#if:{{{new_grimoires|}}}|mw-collapsible mw-collapsed}}" 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|}}}| | ||
<tr><td style="vertical-align:top;"> | <tr><td style="vertical-align:top;"> | ||
<div style="text-align:center">Featured Grimoires</div> | <div style="text-align:center">{{#switch:{{{eventtype|}}} | ||
|Gacha=Grimoires on Rate Up | |||
|Event=Grimoires with an Event Bonus | |||
|#default=Featured Grimoires | |||
}}</div> | |||
{{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> | |||
}}<!-- | |||
-->{{#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> | |||
}}</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> | </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]]<!-- | |||
-->{{#cargo_store: | -->{{#cargo_store: | ||
_table=BBDW_Events | _table=BBDW_Events | ||
Line 77: | Line 114: | ||
|namejp={{{namejp|}}} | |namejp={{{namejp|}}} | ||
|namejpalt={{{namejpalt|}}} | |namejpalt={{{namejpalt|}}} | ||
|image={{{image|}}} | |||
|image2={{{image2|}}} | |||
|eventtype={{{eventtype|}}} | |eventtype={{{eventtype|}}} | ||
|startdate={{{start|}}} | |startdate={{{start|}}} | ||
|enddate={{{end|}}} | |enddate={{{end|}}} | ||
|featured_chars={{{featured_chars|}}} | |||
|featured_grimoires={{{featured_grimoires|}}} | |||
|new_chars={{{new_chars|}}} | |new_chars={{{new_chars|}}} | ||
|new_grimoires={{{new_grimoires|}}} | |new_grimoires={{{new_grimoires|}}} | ||
| | |notes={{{notes|}}} | ||
| | |gachapg={{{gachapg|}}} | ||
}} | |storypg={{{storypg|}}} | ||
}}<!-- | }}<!-- | ||
Line 93: | Line 134: | ||
|namejpalt=String | |namejpalt=String | ||
|image=File | |image=File | ||
|image2=File | |||
|eventtype=String | |eventtype=String | ||
|startdate=Start datetime | |startdate=Start datetime | ||
Line 100: | Line 142: | ||
|new_chars=List (,) of String | |new_chars=List (,) of String | ||
|new_grimoires=List (,) of String | |new_grimoires=List (,) of String | ||
| | |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> | |||
{{BBDW Event | {{BBDW Event | ||
|nameen= | |nameen=Test Gacha | ||
|namejp= | |namejp=テストガチャ | ||
|namejpalt= | |namejpalt= | ||
|image= | |image= | ||
|image2= | |||
|eventtype=Gacha | |eventtype=Gacha | ||
|start=2021 | |start=2021/02/16 12:00:00AM | ||
|end= | |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 | |||
|featured_grimoires= | |||
|new_grimoires= | |||
| | |||
| | |||
| | |||
|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 }}