Difference between revisions of "Template:CupCountdown"

From Rigged Wiki
Jump to navigation Jump to search
(When the counter is still counting down, it will display "has NOT YET STARTED" instead of "is NOT YET STARTED")
m
Line 1: Line 1:
<includeonly>
<includeonly>
{| width="100%" style="background: transparent;"
{| width="100%" style="background: transparent;"
! colspan={{{colspan|}}} style="padding:0px 0px 10px 0px;" | {{#switch:{{{countdown|}}}|yes=<span data-end="remove" class="countdown" style="display:none; line-height: 100%; color: #000000;" data-options="no-leading-zeros" data-end="toggle" data-toggle=".post-countdown"><span style="font-size: {{#if: {{{textsizeno|}}}|{{{textsizeno|}}}|200%}};"><b>[[{{{event|}}}]], {{{Matchday|}}} has </b><span style="background: red; {{radius|2px}} color: #FFF;"> NOT YET STARTED</span></span><br><br> <span style="font-size: {{#if: {{{textsizecom|}}}|{{{textsizecom|}}}|150%}};">Commencing in <span class="countdowndate">{{{month|}}} {{{day|}}} {{{year|}}} {{{time|}}} GMT</span></span></span>|<span class="post-countdown">
! colspan={{{colspan|}}} style="padding:0px 0px 10px 0px;" | {{#ifexpr: {{#time: U | now }} < {{#time: U | {{{year|}}}-{{{month|}}}-{{{day|}}} {{{time|}}} }}
|no=<span style="font-size:{{#if: {{{textsizeyes|}}}|{{{textsizeyes|}}}|250%}}">The [[{{{event|}}}]] is <span class="plainlinks">[{{{link|}}} <span style="background: red; {{radius|2px}} color: #FFF;"> LIVE ON {{{site|}}}</span></span>]</span>
 
|maybe=<span style="font-size:{{#if: {{{textsizeyes|}}}|{{{textsizeyes|}}}|250%}}">The [[{{{event|}}}]] will be <span class="plainlinks">[{{{link|}}} <span style="background: red; {{radius|2px}} color: #FFF;"> LIVE SOON ON {{{site|}}}</span></span>]</span><br></span><span style="font-size: {{#if: {{{textsizecom|}}}|{{{textsizecom|}}}|150%}};">Rigging is taking longer than expected</span>|<span class="post-countdown">
| <span data-end="remove" class="countdown" style="display:none; line-height: 100%; color: #000000;" data-options="no-leading-zeros" data-end="toggle" data-toggle=".post-countdown"><span style="font-size: {{#if: {{{textsizeno|}}}|{{{textsizeno|}}}|200%}};"><b>[[{{{event|}}}]], {{{Matchday|}}} has </b><span style="background: red; {{radius|2px}} color: #FFF;"> NOT YET STARTED</span></span><br><br> <span style="font-size: {{#if: {{{textsizecom|}}}|{{{textsizecom|}}}|150%}};">Commencing in <span class="countdowndate">{{{month|}}} {{{day|}}} {{{year|}}} {{{time|}}} GMT</span></span>
 
|<span style="font-size:{{#if: {{{textsizeyes|}}}|{{{textsizeyes|}}}|250%}}">The [[{{{event|}}}]] is <span class="plainlinks">[{{{link|}}} <span style="background: red; {{radius|2px}} color: #FFF;"> LIVE ON {{{site|}}}</span></span>]</span>
}}
}}
|}
|}  
</includeonly><noinclude>
</includeonly><noinclude>
==Countdown==
==Countdown==
<br>
<br>
{{CupCountdown
{{CupCountdown
|countdown = yes
|colspan = 4
|colspan = 4
|event = 2018 4chan Summer Cup
|event = 2018 4chan Summer Cup
|Matchday = Final Matchday
|Matchday = Final Matchday
|year = 2018
|year = 2099
|month = September
|month = December
|day = 1
|day = 31
|time = 17:00:00
|time = 23:59:59
|textsizeno = 200%
|textsizeno = 200%
|textsizeyes = 250%
|textsizeyes = 250%
Line 26: Line 27:
<pre>
<pre>
{{CupCountdown
{{CupCountdown
|countdown = yes
|colspan = 4
|colspan = 4
|event = 2018 4chan Summer Cup
|event = 2018 4chan Summer Cup
|Matchday = Final Matchday
|Matchday = Final Matchday
|year = 2018
|year = 2099
|month = September
|month = December
|day = 1
|day = 31
|time = 17:00:00
|time = 23:59:59
|textsizeno = 200%
|textsizeno = 200%
|textsizeyes = 250%
|textsizeyes = 250%
Line 45: Line 45:
<br>
<br>
{{CupCountdown
{{CupCountdown
|countdown = no
|colspan = 4
|colspan = 4
|event = 2018 4chan Summer Cup
|event = 2018 4chan Summer Cup
Line 61: Line 60:
<pre>
<pre>
{{CupCountdown
{{CupCountdown
|countdown = no
|colspan = 4
|colspan = 4
|event = 2018 4chan Summer Cup
|event = 2018 4chan Summer Cup
Line 77: Line 75:
</pre>
</pre>


=={{greentext|Delays}}==
<br>
{{CupCountdown
|countdown = maybe
|colspan = 4
|event = 2018 4chan Summer Cup
|Matchday = Final Matchday
|year = 2018
|month = September
|day = 1
|time = 17:00:00
|textsizeno = 200%
|textsizeyes = 250%
|textsizecom = 150%
|link = https://cytu.be/r/the4chancup
|site = CYTUBE
}}
<pre>
{{CupCountdown
|countdown = maybe
|colspan = 4
|event = 2018 4chan Summer Cup
|Matchday = Final Matchday
|year = 2018
|month = September
|day = 1
|time = 17:00:00
|textsizeno = 200%
|textsizeyes = 250%
|textsizecom = 150%
|link = https://cytu.be/r/the4chancup
|site = CYTUBE
}}
</pre>


==Code==
==Code==
<pre>
<pre>
{{CupCountdown
{{CupCountdown  
|countdown =    <!-- yes/no -->
|colspan     = 4
|colspan =     4
|event       =  
|event =  
|Matchday   =  
|Matchday =  
|year       =
|year =
|month       = <!-- mm or m or even the full name -->
|month =
|day         = <!-- dd or d -->
|day =  
|time       = <!-- hh:mm:ss -->
|time =       <!-- hh:mm:ss -->
|textsizeno = <!-- Text size while displaying the coutdown -->
|textsizeno = <!-- Text size while displaying the coutdown -->
|textsizeyes = <!-- Text size when liv -->
|textsizeyes = <!-- Text size when liv -->
|textsizecom = <!-- Text size of "commencing in..." -->
|textsizecom = <!-- Text size of "commencing in..." -->
|link =  
|link       =  
|site =  
|site       =  
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 18:36, 4 January 2020

Countdown


{{CupCountdown
|colspan = 4
|event = 2018 4chan Summer Cup
|Matchday = Final Matchday
|year = 2099
|month = December
|day = 31
|time = 23:59:59
|textsizeno = 200%
|textsizeyes = 250%
|textsizecom = 150%
|link = https://cytu.be/r/the4chancup
|site = CYTUBE
}}

Liv


The 2018 4chan Summer Cup is LIVE ON CYTUBE
{{CupCountdown
|colspan = 4
|event = 2018 4chan Summer Cup
|Matchday = Final Matchday
|year = 2018
|month = September
|day = 1
|time = 17:00:00
|textsizeno = 200%
|textsizeyes = 250%
|textsizecom = 150%
|link = https://cytu.be/r/the4chancup
|site = CYTUBE
}}


Code

{{CupCountdown 
|colspan     = 4
|event       = 
|Matchday    = 
|year        =
|month       = <!-- mm or m or even the full name -->
|day         = <!-- dd or d -->
|time        = <!-- hh:mm:ss -->
|textsizeno  = <!-- Text size while displaying the coutdown -->
|textsizeyes = <!-- Text size when liv -->
|textsizecom = <!-- Text size of "commencing in..." -->
|link        = 
|site        = 
}}