Difference between revisions of "Template:MatchHistory"

From Rigged Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#ifeq:{{{3}}}|{{{4}}}
{{#cargo_query:
|<tr style='background:{{#ifexpr:{{{6}}}>{{{7}}}|#ccffcc|{{#ifexpr:{{{6}}}<{{{7}}}|#ffcccc|#ffffcc}}}}'><td>{{{2}}}</td><td>{{team away|{{{5}}}}}</td><td>[[{{#regex:{{{1}}}|/(.+)Cup/}}]]</td><td>{{{6}}}-{{{7}}}</td><td>{{{8}}}</td></tr>
tables=CupMatches
|<tr style='background:{{#ifexpr:{{{7}}}>{{{6}}}|#ccffcc|{{#ifexpr:{{{7}}}<{{{6}}}|#ffcccc|#ffffcc}}}}'><td>{{{2}}}</td><td>{{team away|{{{4}}}}}</td><td>[[{{#regex:{{{1}}}|/(.+)Cup/}}]]</td><td>{{{7}}}-{{{6}}}</td><td>{{{9}}}</td></tr>
|fields=_pageName,MatchTime,'{{{team}}}'=Team,Home,Away,HomeS,AwayS,HomeG,AwayG
|where=_pageName LIKE '201% 4Chan%Cup%' AND (home = '{{{team}}}' OR away = '{{{team}}}')
|order by=MatchTime
|limit=1000
|format=template
|template=MatchHistory
}}
}}
<noinclude>
<pre>
{{MatchHistory
|1=Cup Page
|2=Date Time
|3=Team
|4=Home Team
|5=Away Team
|6=Home Score
|7=Away Score
|8=Home Goals
|9=Away Goals
}}
</pre>
<table>
<tr><th>Date</th><th>Opponent</th><th>Tournament</th><th>Score</th><th>Goals</th></tr>
{{MatchHistory
|1=Cup Page
|2=Date Time
|3=mu
|4=mu
|5=a
|6=4
|7=1
|8=Home Goals
|9=Away Goals
}}
{{MatchHistory
|1=Cup Page
|2=Date Time
|3=mu
|4=a
|5=mu
|6=4
|7=1
|8=Home Goals
|9=Away Goals
}}
{{MatchHistory
|1=Cup Page
|2=Date Time
|3=mu
|4=mu
|5=a
|6=4
|7=4
|8=Home Goals
|9=Away Goals
}}
</table>
</noinclude>

Revision as of 10:33, 25 May 2018

{{#cargo_query: tables=CupMatches |fields=_pageName,MatchTime,'{{{team}}}'=Team,Home,Away,HomeS,AwayS,HomeG,AwayG |where=_pageName LIKE '201% 4Chan%Cup%' AND (home = '{{{team}}}' OR away = '{{{team}}}') |order by=MatchTime |limit=1000 |format=template |template=MatchHistory }}