Difference between revisions of "Template:Team results"

From comp.tf
Jump to navigation Jump to search
(added docs)
(made table sortable)
 
Line 1: Line 1:
{| class="wikitable centered"
+
{| class="wikitable centered sortable"
 
! {{{roundheader|Round}}}
 
! {{{roundheader|Round}}}
 
! Map  
 
! Map  
 
! colspan="2" | Score
 
! colspan="2" | Score
! width="200px" | Opponent {{#if:{{{info|}}}|!! Info|}}
+
! width="200px" | Opponent {{#if:{{{info|}}}|!! class="unsortable" {{!}} Info|}}
 
{{!}}- {{#if:{{{match1|}}}||style="display: none;"}} {{#if:{{{match1result|}}}|class="{{#ifeq:{{{match1result}}}|win|playoffs|{{#ifeq:{{{match1result}}}|loss|relegated|}}}}"|}}
 
{{!}}- {{#if:{{{match1|}}}||style="display: none;"}} {{#if:{{{match1result|}}}|class="{{#ifeq:{{{match1result}}}|win|playoffs|{{#ifeq:{{{match1result}}}|loss|relegated|}}}}"|}}
 
{{!}} {{{match1round|1}}}
 
{{!}} {{{match1round|1}}}

Latest revision as of 15:57, 26 August 2013

Round Map Score Opponent
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -
1 - - - -

Usage[edit]

The template currently supports up to 16 matches. The template below should give you an idea of how this works:

{{Team results
| roundheader = Week
| info = 1
| match1 = 1 | match1result = loss | match1round = 1 | match1map = cp_process_rc3 | match1teamscore = 4 | match1opponentscore = 5 | match1opponent = Classic Mixup | match1info = {{ESEA match|3330571}}
| match2 = 1 | match2result = win | match2round = 1 | match2map = cp_process_rc3 | match2teamscore = 5 | match2opponentscore = 1 | match2opponent = The Runaway 5 | match2info = {{ESEA match|3333451}}
}}
Week Map Score Opponent Info
1 cp_process_rc3 4 5 Classic Mixup ESEA icon.png
1 cp_process_rc3 5 1 The Runaway 5 ESEA icon.png
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -
1 - - - - -

Omitting the info variable hides the Info column from display.