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

From comp.tf
Jump to navigation Jump to search
Line 4: Line 4:
 
| <div align="center" valign="middle">{{#if: {{{10}}} | [[File:{{{10}}}|25px|link={{{7}}}]] ||}}  [[{{{7}}}|{{{8}}}]]</div>
 
| <div align="center" valign="middle">{{#if: {{{10}}} | [[File:{{{10}}}|25px|link={{{7}}}]] ||}}  [[{{{7}}}|{{{8}}}]]</div>
 
| <div align="center" valign="middle">{{#switch: {{{11|}}}
 
| <div align="center" valign="middle">{{#switch: {{{11|}}}
   | 1 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | Default Win | Default Loss}}
+
   | 1 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | style="background-color:#cfc" {{!}} Default Win | Default Loss}}
   | 2 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | Default Loss | Default Win}}
+
   | 2 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | Default Loss | style="background-color:#cfc" {{!}} Default Win}}
 
   | #default = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | '''{{{5}}}''':{{{6}}} | '''{{{6}}}''':{{{5}}}}}
 
   | #default = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | '''{{{5}}}''':{{{6}}} | '''{{{6}}}''':{{{5}}}}}
 
   }}</div>
 
   }}</div>
 
| <div valign="middle">{{#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|}}}]]}}}}</div>
 
| <div valign="middle">{{#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|}}}]]}}}}</div>
 
</includeonly>
 
</includeonly>

Revision as of 11:07, 1 February 2017