Difference between revisions of "Template:Team2on2"

From QWiki
m
m
 
(58 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable" style="width:240px"
+
{| class="wikitable mw-collapsible mw-collapsed" style="width:235px; margin: 0.2em 0;"
 
|-
 
|-
! colspan="2" style="text-align:left; padding-left:10px; height:40px;" | {{{team|}}}
+
! colspan="2" style="text-align:left; font-weight:normal; padding-left:10px; height:40px;" |{{#if:{{{teamflag|}}}|{{flag/{{lc:{{{teamflag|}}}}}}} {{{team|}}}}}
 
|-
 
|-
| {{player|{{{player1}}}|flag={{{flag1|}}}}}
+
{{#if:{{{player1|}}}|{{!}} style="padding-left:10px;" {{!}}{{player|{{{player1}}}|flag={{{flag1|}}}}}}}
 
|-
 
|-
| {{player|{{{player2}}}|flag={{{flag2|}}}}}
+
{{#if:{{{player2|}}}|{{!}} style="padding-left:10px;" {{!}}{{player|{{{player2}}}|flag={{{flag2|}}}}}}}
 
|}
 
|}
 
Checking to see if flag variable is set and if so using an image link to display it.
 
-->{{#if:{{{flag1|}}}|{{flag/{{lc:{{{flag1}}}}}}}&nbsp;}}<!--
 
-->{{#if:{{{flag2|}}}|{{flag/{{lc:{{{flag2}}}}}}}&nbsp;}}<!--
 

Latest revision as of 20:00, 2 May 2017