Difference between revisions of "Template:Event preview infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#css:
<includeonly>{{#css:
table.infobox {
table.preview-infobox {
     background-color: #f9f9f9;
     background-color: #f9f9f9;
     border: 1px solid #aaa;
     border: 1px solid #aaa;
Line 14: Line 14:
}
}


table.infobox th {
table.preview-infobox th {
     padding: 0em 1em 0em 1em;
     padding: 0em 1em 0em 1em;
}
}


table.infobox tr:first-child th {
table.preview-infobox tr:first-child th {
     background-color: #ccf;
     background-color: #ccf;
     padding: 0.5em 1em 0.5em 1em;
     padding: 0.5em 1em 0.5em 1em;
Line 24: Line 24:
}
}


table.infobox tr:not(:first-child) th {
table.preview-infobox tr:not(:first-child) th {
     background-color: #ddf;
     background-color: #ddf;
}
}


table.infobox tr:not(:first-child) th + th {
table.preview-infobox tr:not(:first-child) th + th {
     background-color: #e4e4ff;
     background-color: #e4e4ff;
}
}


table.infobox td {
table.preview-infobox td {
     text-align: left;
     text-align: left;
     padding: 0px 7px 0px 7px;
     padding: 0px 7px 0px 7px;
Line 46: Line 46:
   |searchlabel=
   |searchlabel=
  }}
  }}
}}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="infobox">
}}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="preview-infobox">
<tr>
<tr>
   <th colspan="2">[[{{#var:event subobj}}|{{{en name|{{{jp name|???}}}}}}]]</th>
   <th colspan="2">[[{{#var:event subobj}}|{{{en name|{{{jp name|???}}}}}}]]</th>

Revision as of 04:54, 13 July 2018

Description

This template displays.

Usage

{{Event preview infobox
| en name = 
| jp name =
| banners = 
| floats =
}}

Parameters

en name
English name of event
jp name
Japanese name of event (optional if en name is provided; required if not).
banners
Number of banners to show; defaults to 1. Provide 0 to show all.
floats
Determines if it should float to the right; only "true" enables it.

Examples

{{Event preview infobox
| en name = Honorless Great Summer Festival Struggle
| banners = 2
}}
Honorless Great Summer Festival Struggle
F7fd7992ba9dfb001d4e9444dbfc4662.jpg
Durations
Gacha From 2018-07-05T18:00:00+09:00 until 2018-08-06T23:59:00+09:00
Event Main Quest From 2018-07-09T00:00:00+09:00 until 2018-08-06T23:59:00+09:00
Event Free Quest From 2018-07-09T00:00:00+09:00 until 2018-07-30T23:59:00+09:00
Bonus Quests From 2018-08-02T00:00:00+09:00 until 2018-08-06T23:59:00+09:00