Difference between revisions of "Template:6sTeamCard2"

From comp.tf
Jump to navigation Jump to search
(Undo revision 62429 by Garlic (talk))
Line 2: Line 2:
 
|+'''{{#if:{{{team|}}}|[[{{{link|{{{team|}}}}}}|{{{team|}}}]]|{{abbr|TBD|To be determined}}}}'''{{#if:{{{notes|}}}|&nbsp;<sup>{{{notes|}}}</sup>}}{{#if:{{{ref|}}}|{{{ref|}}}|}}
 
|+'''{{#if:{{{team|}}}|[[{{{link|{{{team|}}}}}}|{{{team|}}}]]|{{abbr|TBD|To be determined}}}}'''{{#if:{{{notes|}}}|&nbsp;<sup>{{{notes|}}}</sup>}}{{#if:{{{ref|}}}|{{{ref|}}}|}}
 
  | class="comptf-cardbg" style="width:172px; height:172px" | [[File:{{#if:{{{image|}}}|{{{image|}}}|{{#show:{{#if:{{{link|}}}|{{{link|}}}|{{{team|}}}}}|?has teamcard image|default={{#show:{{#if:{{{link|}}}|{{{link|}}}|{{{team|}}}}}|?has image|default=File:Generic_Logo2.png|link=none}}|link=none}}}}|146x146px|center|link=]]
 
  | class="comptf-cardbg" style="width:172px; height:172px" | [[File:{{#if:{{{image|}}}|{{{image|}}}|{{#show:{{#if:{{{link|}}}|{{{link|}}}|{{{team|}}}}}|?has teamcard image|default={{#show:{{#if:{{{link|}}}|{{{link|}}}|{{{team|}}}}}|?has image|default=File:Generic_Logo2.png|link=none}}|link=none}}}}|146x146px|center|link=]]
{| class="wikitable comptf-cardfg" style="height:176px; width:176px; margin:0; position:absolute; bottom:-1px; left:-1px; display:none"  
+
{| class="wikitable comptf-cardfg" style="height:176px; width:176px; margin:0; position:absolute; bottom:-1px; left:-1px; display:none; text-align:center"  
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{scout1role|}}}|{{#switch:{{lc:{{{scout1role|}}}}}|pyro={{icon|pyro|Pyro|middle=true}}|heavy={{icon|heavy|Heavy|middle=true}}|engineer={{icon|engineer|Engineer|middle=true}}|sniper={{icon|sniper|Sniper|middle=true}}|spy={{icon|spy|Spy|middle=true}}|#default={{{scout1role|}}}}}|{{icon|scout|Scout|middle=true}}}}
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{scout1role|}}}|{{#switch:{{lc:{{{scout1role|}}}}}|pyro={{icon|pyro|Pyro|middle=true}}|heavy={{icon|heavy|Heavy|middle=true}}|engineer={{icon|engineer|Engineer|middle=true}}|sniper={{icon|sniper|Sniper|middle=true}}|spy={{icon|spy|Spy|middle=true}}|#default={{{scout1role|}}}}}|{{icon|scout|Scout|middle=true}}}}
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{scout1flag|}}}}} [[{{{scout1|}}}]]
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{scout1flag|}}}}} [[{{{scout1|}}}]]

Revision as of 09:50, 19 April 2020

(view - edit) Documentation

Template:6sTeamCard2/doc