Difference between revisions of "Template:Team matches table/row"

From comp.tf
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
|-
 
|-
| {{#if:{{{2|}}}|{{#ifexpr: {{#len:{{{2|}}}}}>10 | {{#sub:{{{2|}}}|0|-9}} | {{{2|}}}}}|{{#if:{{#var:tournament_date}}|{{#var:tournament_date}}|{{#var:tournament_edate}}}}}}
+
| {{#if:{{{11|}}}|{{#ifexpr: {{#len:{{{11|}}}}}>10 | {{#sub:{{{11|}}}|0|-9}} | {{{11|}}}}}|{{#if:{{#var:tournament_date}}|{{#var:tournament_date}}|{{#var:tournament_edate}}}}}}
 
| {{#if: {{{10}}} | [[File:{{{10}}}|25px|link={{{7}}}]] ||}}  [[{{{7}}}|{{{8}}}]]
 
| {{#if: {{{10}}} | [[File:{{{10}}}|25px|link={{{7}}}]] ||}}  [[{{{7}}}|{{{8}}}]]
| {{#switch: {{{11|}}}
+
| {{#switch: {{{2|}}}
 
   | 1 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | style="background-color:#cfc" {{!}} Default Win | style="background-color:#ffcccc" {{!}} Default Loss}}
 
   | 1 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | style="background-color:#cfc" {{!}} Default Win | style="background-color:#ffcccc" {{!}} Default Loss}}
 
   | 2 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | style="background-color:#ffcccc" {{!}} Default Loss | style="background-color:#cfc" {{!}} Default Win}}
 
   | 2 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | style="background-color:#ffcccc" {{!}} Default Loss | style="background-color:#cfc" {{!}} Default Win}}

Revision as of 18:23, 26 February 2017