Difference between revisions of "Template:Upcoming and ongoing games"

From comp.tf
Jump to navigation Jump to search
m
m (Reverted edits by Efefknee (talk) to last revision by 63.142.254.188)
Line 1: Line 1:
<includeonly>{{#ifeq:{{#pos:{{{3}}}|Portal:}}|0||{{#ifeq:3|
+
<includeonly><!--
{{#expr:{{#ifeq:{{#var:date|}}|{{{2|}}}|1|0}} + {{#ifeq:{{#var:team1|}}|{{{4|}}}|1|0}} + {{#ifeq:{{#var:team2|}}|{{{5|}}}|1|0}} }}||&#10;
+
Clear variables
{{Template:Upcoming games/start}}
+
-->{{#vardefine:date|null}}{{#vardefine:team1|null}}{{#vardefine:team2|null}}<!--
{{!}}class="team-left" {{!}}{{team2Short/{{lc:{{{4|}}}}}}}
 
{{!}}class="versus" {{!}}vs.
 
{{!}}class="team-right" {{!}}{{teamShort/{{lc:{{{5|}}}}}}}
 
{{!}}-
 
{{!}}class="match-filler" colspan="3"{{!}}<span class="match-countdown"><span class="streamLink">{{{6|}}}</span><span class="datetime" style="display: none">{{#time:F j, Y - G:i|{{{2|}}}}} {{Abbr/UTC}}</span><span class="countdown match-countdown-countdown"></span></span><div style="width:180px; float:right; white-space:nowrap;"><span style="float:right; vertical-align:middle;">[[{{#if:{{{7|}}}|File:{{{7}}}|File:InfoboxIcon_Tournament.png}}|24x24px|link={{{3}}}{{#if:{{{8|}}}|{{!}}{{{8}}}}}]]</span><div style="overflow:hidden; text-overflow:ellipsis; max-width: 170px; vertical-align:middle; white-space:nowrap; font-size:11px; height:16px; margin-top:3px;">[[{{{3}}}|{{{8|{{{3|}}}}}}]]&nbsp;</div></div>
 
{{Template:Upcoming games/end}}<!--
 
  
Variables definition
+
 
-->{{#vardefine:date|{{{2|}}}}}{{#vardefine:team1|{{{4|}}}}}{{#vardefine:team2|{{{5|}}}}}}}}}<!--
+
{{Upcoming games/start}}
--></includeonly>
+
-->{{#ask: [[-Has subobject::+]] [[:+]] [[has map_date::>{{#time: r|-6 hours}}]] [[has map_date::<{{#time: r|now}}]] [[Is finished::false]] [[Has exact time::true]]
 +
| ?has map_date
 +
| ?has tournament
 +
| ?has team left
 +
| ?has team right
 +
| ?has match stream
 +
| ?has tournament icon
 +
| ?Has tournament name
 +
| ?Has team left score
 +
| ?Has team right score
 +
| sort=has map_date, Has team left, Has team right, Has tournament name
 +
| order=asc
 +
| format=template
 +
| link=none
 +
| template=Ongoing games/row
 +
| searchlabel=
 +
}}<!--
 +
Clear variables
 +
-->{{#vardefine:date|null}}{{#vardefine:team1|null}}{{#vardefine:team2|null}}<!--
 +
 
 +
 
 +
-->{{#ask: [[-Has subobject::+]] [[:+]]  [[has map_date::<{{#time: r}}]] [[Has team left::+]] [[Has team right::+]] [[Has exact time::true]] [[Is finished::false]]
 +
| ?has map_date
 +
| ?has tournament
 +
| ?has team left
 +
| ?has team right
 +
| ?has match stream
 +
| ?has tournament icon
 +
| ?Has tournament name
 +
| sort=has map_date, Has team left, Has team right, Has tournament name
 +
| order=asc
 +
| limit=10
 +
| format=template
 +
| link=none
 +
| template=Upcoming games/row
 +
| searchlabel=
 +
}}
 +
<!--{{Upcoming games/end}}--></includeonly><noinclude>[[Category:Templates]]{{documentation}}</noinclude>

Revision as of 00:21, 28 May 2016

(view - edit) Documentation