Difference between revisions of "Template:Home/Module"
From A3! Wiki
m |
m (test for banner2 support (atm just april bdays...)) |
||
Line 25: | Line 25: | ||
| EN Revival Tryouts = Revival Tryouts (EN server)#{{{year}}}|{{{enname}}} | | EN Revival Tryouts = Revival Tryouts (EN server)#{{{year}}}|{{{enname}}} | ||
| Limited Scout | Premium Scout = Scouting Events{{#if:{{{year|}}}|/{{{year}}}|}}#{{{name}}}|{{{name}}} }}]] }} | | Limited Scout | Premium Scout = Scouting Events{{#if:{{{year|}}}|/{{{year}}}|}}#{{{name}}}|{{{name}}} }}]] }} | ||
+ | |||
+ | {{#if: {{#cargo_query:tables=Scout|fields=banner2|where=name_en LIKE '%BIRTHDAY%'|order by=number DESC|limit=1|more results text=|no html}} | {{#cargo_query:tables=Scout|fields=banner2|where=name_en LIKE '%BIRTHDAY%'|order by=number DESC|limit=1|more results text=|no html}} |}} | ||
+ | {{#if: {{#cargo_query:tables=EN_Tryout|fields=banner2|where=name_enserver LIKE '%BIRTHDAY%'|order by=number DESC|limit=1|more results text=|no html}} | {{#cargo_query:tables=EN_Tryout|fields=banner2|where=name_enserver LIKE '%BIRTHDAY%'|order by=number DESC|limit=1|more results text=|no html}} |}} | ||
+ | |||
<p>{{#if: {{{startdate|}}} | {{#switch: {{{timezone|}}} | <p>{{#if: {{{startdate|}}} | {{#switch: {{{timezone|}}} | ||
| PST to PST = {{#ifexpr: {{#time: xNU | {{{startdate}}} }} < {{#time: xNU |-8 hours}} | {{#if: {{{enddate|}}}|<span data-end="stop" class="countdown" style="display:none;">Ends in '''<span class="countdowndate" style="color:#c00">{{{enddate|}}}:59 -0800</span>'''.</span>|}} | <span data-end="stop" class="countdown" style="display:none;">Starts in '''<span class="countdowndate" style="color:#c00">{{{startdate|}}}:59 -0800</span>'''.</span> }} | | PST to PST = {{#ifexpr: {{#time: xNU | {{{startdate}}} }} < {{#time: xNU |-8 hours}} | {{#if: {{{enddate|}}}|<span data-end="stop" class="countdown" style="display:none;">Ends in '''<span class="countdowndate" style="color:#c00">{{{enddate|}}}:59 -0800</span>'''.</span>|}} | <span data-end="stop" class="countdown" style="display:none;">Starts in '''<span class="countdowndate" style="color:#c00">{{{startdate|}}}:59 -0800</span>'''.</span> }} | ||
Line 66: | Line 70: | ||
{{Home/Module|type=EN Premium Tryouts|troupe=summer|name=JUNE BIRTHDAY SP|enname=JUNE BIRTHDAY|startdate=June 2 2020 11:00|enddate=July 2 2020 10:59|banner=}} | {{Home/Module|type=EN Premium Tryouts|troupe=summer|name=JUNE BIRTHDAY SP|enname=JUNE BIRTHDAY|startdate=June 2 2020 11:00|enddate=July 2 2020 10:59|banner=}} | ||
{{Home/Module|type=EN Revival Tryouts|year=2020|character=itaru|enname=MAD Tea Party|startdate=Sep 15 2020 11:00|enddate=Sept 17 2020 10:59|banner=}} | {{Home/Module|type=EN Revival Tryouts|year=2020|character=itaru|enname=MAD Tea Party|startdate=Sep 15 2020 11:00|enddate=Sept 17 2020 10:59|banner=}} | ||
+ | {{Home/Module|type=Premium Scout|troupe=spring|name=APRIL BIRTHDAY SP 2021|startdate=|enddate=|banner2=y}} | ||
</div> | </div> | ||
Revision as of 05:50, 1 April 2021
Contents
{{Home/Module |type=Premium Scout, Limited Scout, Rerelease Scout, Event, EN Event, EN Tryout, EN Premium Tryouts, EN Revival Tryouts |year=(optional) |character= |troupe= |name= |startdate=JST for JP server; Pacific Time for EN server |enddate=JST for JP server; Pacific Time for EN server |timezone=PST to PST / PDT to PDT / PST to PDT / PDT to PST / leave blank for JST |multi= |banner=(optional) }}
JST +9: 23 November 2024 08:16
PST -8: 22 November 2024 15:16
PDT -7: 22 November 2024 16:16
April 1 2018 00:00:59 +0900