Difference between revisions of "Template:Team results"

From comp.tf
Jump to navigation Jump to search
(condensed extra info down and bolded win/loss appropriately)
(added docs)
Line 100: Line 100:
 
{{!}} {{#ifeq:{{{match16result}}}|loss|'''{{#if:{{{match16opponentscore|}}}|{{{match16opponentscore}}}|-}}'''|{{#if:{{{match16opponentscore|}}}|{{{match16opponentscore}}}|-}}}}
 
{{!}} {{#ifeq:{{{match16result}}}|loss|'''{{#if:{{{match16opponentscore|}}}|{{{match16opponentscore}}}|-}}'''|{{#if:{{{match16opponentscore|}}}|{{{match16opponentscore}}}|-}}}}
 
{{!}} {{#ifeq:{{{match16result}}}|loss|'''{{#if:{{{match16opponent|}}}|{{{match16opponent}}}|-}} {{#if:{{{info|}}}|{{!}}{{!}} {{#if:{{{match16info|}}}|{{{match16info}}}|-}}|}}'''|{{#if:{{{match16opponent|}}}|{{{match16opponent}}}|-}} {{#if:{{{info|}}}|{{!}}{{!}} {{#if:{{{match16info|}}}|{{{match16info}}}|-}}|}}}}
 
{{!}} {{#ifeq:{{{match16result}}}|loss|'''{{#if:{{{match16opponent|}}}|{{{match16opponent}}}|-}} {{#if:{{{info|}}}|{{!}}{{!}} {{#if:{{{match16info|}}}|{{{match16info}}}|-}}|}}'''|{{#if:{{{match16opponent|}}}|{{{match16opponent}}}|-}} {{#if:{{{info|}}}|{{!}}{{!}} {{#if:{{{match16info|}}}|{{{match16info}}}|-}}|}}}}
|}
+
|}<noinclude>
 +
=== Usage ===
 +
The template currently supports up to 16 matches. The template below should give you an idea of how this works:
 +
<pre>{{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}}
 +
}}</pre>
 +
{{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}}
 +
}}
 +
 
 +
Omitting the <code>info</code> variable hides the Info column from display.
 +
</noinclude>

Revision as of 21:56, 25 August 2013

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

Usage

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.