Difference between revisions of "Template:MatchHistory"

From Rigged Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{{3}}}|{{{4}}}
<table class='wikitable sortable'>  
|<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>
<tr><th>Date</th><th>Opponent</th><th>Tournament</th><th>Score</th><th>Goals</th></tr>
|<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>
{{#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=MatchHistoryRow
}}
}}
 
</table>
<noinclude>
<noinclude>
<pre>
<pre>
{{MatchHistory
{{MatchHistory|team=mu}}
|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>
</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>
</noinclude>

Latest revision as of 10:46, 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=MatchHistoryRow }}

DateOpponentTournamentScoreGoals
{{MatchHistory|team=mu}}