Difference between revisions of "Template:Player matches table/row"
Jump to navigation
Jump to search
(Created page with "<includeonly> |- | {{#ifexpr: {{#len:{{{2|}}}}}>10 | {{#sub:{{{2|}}}|0|-9}} | {{{2|}}}}} | {{#if: {{{10}}} | [[File:{{{10}}}|25px|link={{{7}}}]] ||}} [[{{{7}}}|{{{8}}}]] | {{...") |
|||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#vardefine:team|{{{#explode:{{{userparam}}}|,|0}}}}} |
|- | |- | ||
| {{#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}}}]] | | {{#if: {{{10}}} | [[File:{{{10}}}|25px|link={{{7}}}]] ||}} [[{{{7}}}|{{{8}}}]] | ||
| {{#switch: {{{11|}}} | | {{#switch: {{{11|}}} | ||
− | | 1 = {{#ifeq: {{lc:{{ | + | | 1 = {{#ifeq: {{lc:{{#var:team}}}} | {{lc:{{{3}}}}} | style="background-color:#cfc" {{!}} Default Win | style="background-color:#ffcccc" {{!}} Default Loss}} |
− | | 2 = {{#ifeq: {{lc:{{ | + | | 2 = {{#ifeq: {{lc:{{#var:team}}}} | {{lc:{{{3}}}}} | style="background-color:#ffcccc" {{!}} Default Loss | style="background-color:#cfc" {{!}} Default Win}} |
− | | #default = {{#ifeq: {{lc:{{ | + | | #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}}}}} |
}} | }} | ||
− | | style="text-align:left" {{!}} {{#ifeq: {{lc:{{ | + | | 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:{{ | + | | 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|}}}]]}} | {{#ifexist:Template:Team/{{lc:{{{3|}}}}}|{{Team/{{lc:{{{3|}}}}}}} | [[File:TF_icon.png|link={{{3|}}}]] [[{{{3|}}}]]}}}} |
</includeonly> | </includeonly> |