Template:BBDW Event: Difference between revisions

Template page
m (fixed typos)
(adding params storypg and gachapg to store the page name for the related gacha/story)
 
(21 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">[[File:{{{image|}}}|500x600px]]</td></tr>}}<!--
--><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><!--


Line 23: Line 24:


-->{{#if:{{{featured_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|}}}|
<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=left}}
|text-align=center|maxwidth=100%}}
</td></tr>
</td></tr>
}}<!--
}}<!--
Line 39: 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=left}}
|text-align=center|maxwidth=100%}}
</td></tr>
</td></tr>
}}</table>
}}
</table>
}}<!--
}}<!--


-->{{#if:{{{featured_grimoires|}}}{{{new_grimoires|}}}|
-->{{#if:{{{featured_grimoires|}}}{{{new_grimoires|}}}|
<table class="wikitable {{#if:{{{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|}}}|
<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=left}}
|text-align=center|maxwidth=100%}}
</td></tr>
</td></tr>
}}<!--
}}<!--
Line 58: 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=left}}
|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 79: Line 115:
|namejpalt={{{namejpalt|}}}
|namejpalt={{{namejpalt|}}}
|image={{{image|}}}
|image={{{image|}}}
|image2={{{image2|}}}
|eventtype={{{eventtype|}}}
|eventtype={{{eventtype|}}}
|startdate={{{start|}}}
|startdate={{{start|}}}
Line 87: Line 124:
|new_grimoires={{{new_grimoires|}}}
|new_grimoires={{{new_grimoires|}}}
|notes={{{notes|}}}
|notes={{{notes|}}}
|gachapg={{{gachapg|}}}
|storypg={{{storypg|}}}
}}<!--
}}<!--


Line 95: Line 134:
|namejpalt=String
|namejpalt=String
|image=File
|image=File
|image2=File
|eventtype=String
|eventtype=String
|startdate=Start datetime
|startdate=Start datetime
Line 103: 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=Tutorial Gacha
|nameen=Test Gacha
|namejp=chuchoriaru gacha
|namejp=テストガチャ
|namejpalt=
|namejpalt=
|image=
|image=
|image2=
|eventtype=Gacha
|eventtype=Gacha
|start=2021/02/16 12:00:00AM
|start=2021/02/16 12:00:00AM
|end=
|end=
|featured_chars=Jin Kisaragi, Zwei
 
|featured_grimoires=A Gentle Hand,Invisible
|featured_chars=Rate-Up characters for gacha; Event Bonus characters for events
|new_chars=Jin Kisaragi, Zwei, Kuon Glamred Stroheim, Saya Terumi, Valkenhayn Hellsing (BE), Mai Natsume, Makoto Nanaya, Ripper, Valkenhayn R. Hellsing, Acht, Akane Teruhiko, Arakune, Bang Shishigami, Bullet, Drei, Kajun Faycott, Kiiro Hikagami, Iron Tager, Tirnity Glassfille, Relius Clover (BE)
|new_chars=other newly added characters in the gacha or event that aren't on rate-up or have an event bonus
|new_grimoires=
 
|others=
|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=
|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

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
}}