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

From comp.tf
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#vardefine:team|{{{#explode:{{{userparam}}}|*|0}}}}}{{#vardefine:player|{{#explode:{{{userparam}}}|,|1}}}}
+
<includeonly>{{#vardefine:team|{{{#explode:{{{userparam}}}|*|0}}}}}{{#vardefine:player|{{#explode:{{{userparam}}}|,|0}}}}
 
{{#ifexpr: {{#rpos: {{#explode:{{{12|}}}|,|0}} {{#explode:{{{12|}}}|,|1}} {{#explode:{{{12|}}}|,|2}} | {{{#var:player}}} }} = -1 |
 
{{#ifexpr: {{#rpos: {{#explode:{{{12|}}}|,|0}} {{#explode:{{{12|}}}|,|1}} {{#explode:{{{12|}}}|,|2}} | {{{#var:player}}} }} = -1 |
 
{{!}}-
 
{{!}}-
Line 9: Line 9:
 
   | #default = {{#ifeq: {{lc:{{#var:team}}}} | {{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}}}}}
 
   | #default = {{#ifeq: {{lc:{{#var:team}}}} | {{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}}}}}
 
   }}
 
   }}
{{!}} {{#if:{{{12|}}}|{{{12|}}}|no}} - {{#var:player}} - {{#rpos: {{#explode:{{{12|}}}|,|0}} {{#explode:{{{12|}}}|,|1}} {{#explode:{{{12|}}}|,|2}} | {{{#var:player}}} }}
+
{{!}} {{#if:{{{12|}}}|{{{12|}}}|no}} - {{#var:player}} - {{{userparam}}} - {{#rpos: {{#explode:{{{12|}}}|,|0}} {{#explode:{{{12|}}}|,|1}} {{#explode:{{{12|}}}|,|2}} | {{{#var:player}}} }}
 
{{!}} style="text-align:left" {{!}} {{#ifeq: {{lc:{{#var:team}}}} | {{lc:{{{3}}}}} | {{#ifexist:Template:Team/{{lc:{{{3|}}}}} | {{Team/{{lc:{{{3|}}}}}}} | [[File:TF_icon.png|link={{{3|}}}]] [[{{{3|}}}]]}} | {{#ifexist:Template:Team/{{lc:{{{4|}}}}}|{{Team/{{lc:{{{4|}}}}}}} | [[File:TF_icon.png|link={{{4|}}}]] [[{{{4|}}}]]}}}}
 
{{!}} style="text-align:left" {{!}} {{#ifeq: {{lc:{{#var:team}}}} | {{lc:{{{3}}}}} | {{#ifexist:Template:Team/{{lc:{{{3|}}}}} | {{Team/{{lc:{{{3|}}}}}}} | [[File:TF_icon.png|link={{{3|}}}]] [[{{{3|}}}]]}} | {{#ifexist:Template:Team/{{lc:{{{4|}}}}}|{{Team/{{lc:{{{4|}}}}}}} | [[File:TF_icon.png|link={{{4|}}}]] [[{{{4|}}}]]}}}}
 
{{!}} style="text-align:left" {{!}} {{#ifeq: {{lc:{{#var:team}}}} | {{lc:{{{3}}}}} | {{#ifexist:Template:Team/{{lc:{{{4|}}}}} | {{Team/{{lc:{{{4|}}}}}}} | [[File:TF_icon.png|link={{{4|}}}]] [[{{{4|}}}]]}} |  
 
{{!}} style="text-align:left" {{!}} {{#ifeq: {{lc:{{#var:team}}}} | {{lc:{{{3}}}}} | {{#ifexist:Template:Team/{{lc:{{{4|}}}}} | {{Team/{{lc:{{{4|}}}}}}} | [[File:TF_icon.png|link={{{4|}}}]] [[{{{4|}}}]]}} |  

Revision as of 15:48, 28 February 2017