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

From comp.tf
Jump to navigation Jump to search
m (Undo revision 50399 by Garlic (talk))
 
(45 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
| {{#ifexpr: {{#len:{{{2|}}}}}>10 | {{#sub:{{{2|}}}|0|-9}} | {{{2|}}}}}
 
| {{#ifexpr: {{#len:{{{2|}}}}}>10 | {{#sub:{{{2|}}}|0|-9}} | {{{2|}}}}}
| {{#if: {{{10}}} | [[File:{{{10}}}|25px|link={{{7}}}]] ||}}  [[{{{7}}}|{{{8}}}]]
+
| style="text-align:left" {{!}} {{#ifexist: Template:LeagueIconSmall/{{lc:{{{12|}}}}} | {{LeagueIconSmall/{{lc:{{{12|}}}}}}} | {{#if: {{{10}}} | [[File:{{{10}}}|25px|link={{{7}}}]] ||}}}}  [[{{{7}}}|{{{8}}}]]
| {{#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|}}}]]}}}}
+
| {{#switch: {{{11|}}}
| <div align="center" valign="middle">{{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | {{{6}}}:'''{{{5}}}''' | {{{5}}}:'''{{{6}}}'''}}</div>
+
  | 1 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | style="background-color:#cfc" {{!}} {{Abbr/DW}} | style="background-color:#ffcccc" {{!}} {{Abbr/DL}}}}
 +
  | 2 = {{#ifeq: {{lc:{{{userparam}}}}} | {{lc:{{{3}}}}} | style="background-color:#ffcccc" {{!}} {{Abbr/DL}} | style="background-color:#cfc" {{!}} {{Abbr/DW}}}}
 +
  | #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}}}''' &minus; {{{6}}} | {{#ifexpr: {{{6}}}>{{{5}}}| style="background-color:#cfc" {{!}} | {{#ifexpr: {{{6}}}<{{{5}}} | style="background-color:#ffcccc" {{!}}| style="background-color:#FFFFBB" {{!}}}} }} '''{{{6}}}''' &minus; {{{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|}}}]]}}}}
 
</includeonly>
 
</includeonly>

Latest revision as of 20:59, 14 March 2017