Difference between revisions of "Template:MatchHistory"

From Rigged Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexpr:{{{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>{{{1}}}</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>{{{1}}}</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}}
|Cup Page
|Date Time
|Team
|Home Team
|Away Team
|Home Score
|Away Score
|Home Goals
|Away Goals
}}
</pre>
</pre>
<table>
<tr><th>Date</th><th>Opponent</th><th>Tournament</th><th>Score</th><th>Goals</th></tr>
{{MatchHistory
|Cup Page
|Date Time
|mu
|mu
|a
|4
|1
|Home Goals
|Away Goals
}}
{{MatchHistory
|Cup Page
|Date Time
|mu
|ck
|mu
|2
|0
|Home Goals
|Away Goals
}}
{{MatchHistory
|Cup Page
|Date Time
|mu
|mu
|asp
|3
|3
|Home Goals
|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}}