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

From comp.tf
Jump to navigation Jump to search
Line 6: Line 6:
 
   | 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}}
   | #default = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | {{#ifexpr: {{{5}}}>{{{6}}}| style="background-color:#cfc" {{!}} | style="background-color:#ffcccc" {{!}} }} '''{{{5}}}''':{{{6}}} | {{#ifexpr: {{{6}}}>{{{5}}}| style="background-color:#cfc" {{!}} | style="background-color:#ffcccc" {{!}} }} '''{{{6}}}''':{{{5}}}}}
+
   | #default = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | {{#ifexpr: {{{5}}}>{{{6}}}| style="background-color:#cfc" {{!}} | {{#ifexpr: {{{5}}}<{{{6}}} | style="background-color:#ffcccc" {{!}}| style="background-color:#FFFFBB" {{!}}}}}} '''{{{5}}}''':{{{6}}} | {{#ifexpr: {{{6}}}>{{{5}}}| style="background-color:#cfc" {{!}} | {{#ifexpr: {{{6}}}<{{{5}}} | style="background-color:#ffcccc" {{!}}| style="background-color:#FFFFBB" {{!}}}} }} '''{{{6}}}''':{{{5}}}}}
 
   }}
 
   }}
 
| style="text-align:left" {{!}} {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | {{#ifexist:Template:Team/{{lc:{{{4|}}}}} | {{Team/{{lc:{{{4|}}}}}}} | [[File:TF_icon.png|link={{{4|}}}]] [[{{{4|}}}]]}} | {{#ifexist:Template:Team/{{lc:{{{3|}}}}}|{{Team/{{lc:{{{3|}}}}}}} | [[File:TF_icon.png|link={{{3|}}}]] [[{{{3|}}}]]}}}}
 
| style="text-align:left" {{!}} {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | {{#ifexist:Template:Team/{{lc:{{{4|}}}}} | {{Team/{{lc:{{{4|}}}}}}} | [[File:TF_icon.png|link={{{4|}}}]] [[{{{4|}}}]]}} | {{#ifexist:Template:Team/{{lc:{{{3|}}}}}|{{Team/{{lc:{{{3|}}}}}}} | [[File:TF_icon.png|link={{{3|}}}]] [[{{{3|}}}]]}}}}
 
</includeonly>
 
</includeonly>

Revision as of 11:39, 1 February 2017