Difference between revisions of "Template:6sTeamCard2"

From comp.tf
Jump to navigation Jump to search
Line 4: Line 4:
 
{| class="wikitable comptf-cardfg" style="height:176px; width:176px; margin:0; position:absolute; bottom:-1px; left:-1px; display:none; text-align:center"  
 
{| 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=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{scout1role|}}}}}|<div style="transform:translateY(-1px)">{{icon|scout|Scout|middle=true}}</div>}}
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{scout1role|}}}|{{#switch:{{lc:{{{scout1role|}}}}}|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{scout1role|}}}}}|<div style="transform:translateY(-1px)">{{icon|scout|Scout|middle=true}}</div>}}
  | style="text-align:left; padding:1px 5px" | {{flag|{{{scout1flag|}}}}} [[{{{scout1|}}}]]
+
  | style="text-align:left; padding:1px 5px" | {{#if:{{{scout1|}}}|{{flag|{{{scout1flag|}}}}} [[{{{scout1link|{{{scout1|}}}}}}|{{{scout1|}}}]]|{{#if:{{{scout1flag|}}}|{{flag|{{{scout1flag|}}}}}&nbsp|}}'''{{abbr|TBD|To be determined}}'''
 
|-
 
|-
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{scout2role|}}}|{{#switch:{{lc:{{{scout2role|}}}}}|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{scout2role|}}}}}|<div style="transform:translateY(-1px)">{{icon|scout|Scout|middle=true}}</div>}}
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{scout2role|}}}|{{#switch:{{lc:{{{scout2role|}}}}}|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{scout2role|}}}}}|<div style="transform:translateY(-1px)">{{icon|scout|Scout|middle=true}}</div>}}
  | style="text-align:left; padding:1px 5px" | {{flag|{{{scout2flag|}}}}} [[{{{scout2|}}}]]
+
  | style="text-align:left; padding:1px 5px" | {{#if:{{{scout2|}}}|{{flag|{{{scout2flag|}}}}} [[{{{scout2link|{{{scout2|}}}}}}|{{{scout2|}}}]]|{{#if:{{{scout2flag|}}}|{{flag|{{{scout2flag|}}}}}&nbsp|}}'''{{abbr|TBD|To be determined}}'''
 
|-
 
|-
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{roamerrole|}}}|{{#switch:{{lc:{{{roamerrole|}}}}}|soldier=<div style="transform:translateY(-1px)">{{icon|soldier|Soldier|middle=true}}</div>|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{roamerrole|}}}}}|<div style="transform:translateY(-1px)">{{icon|roamer|Roaming Soldier|middle=true}}</div>}}
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{roamerrole|}}}|{{#switch:{{lc:{{{roamerrole|}}}}}|soldier=<div style="transform:translateY(-1px)">{{icon|soldier|Soldier|middle=true}}</div>|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{roamerrole|}}}}}|<div style="transform:translateY(-1px)">{{icon|roamer|Roaming Soldier|middle=true}}</div>}}
  | style="text-align:left; padding:1px 5px" | {{flag|{{{roamerflag|}}}}} [[{{{roamer|}}}]]
+
  | style="text-align:left; padding:1px 5px" | {{#if:{{{roamer|}}}|{{flag|{{{romaerflag|}}}}} [[{{{roamerlink|{{{roamer|}}}}}}|{{{roamer|}}}]]|{{#if:{{{roamerflag|}}}|{{flag|{{{roamerflag|}}}}}&nbsp|}}'''{{abbr|TBD|To be determined}}'''
 
|-
 
|-
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{pocketrole|}}}|{{#switch:{{lc:{{{pocketrole|}}}}}|soldier=<div style="transform:translateY(-1px)">{{icon|soldier|Soldier|middle=true}}</div>|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{pocketrole|}}}}}|<div style="transform:translateY(-1px)">{{icon|pocket|Pocket|middle=true}}</div>}}
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{pocketrole|}}}|{{#switch:{{lc:{{{pocketrole|}}}}}|soldier=<div style="transform:translateY(-1px)">{{icon|soldier|Soldier|middle=true}}</div>|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{pocketrole|}}}}}|<div style="transform:translateY(-1px)">{{icon|pocket|Pocket|middle=true}}</div>}}
  | style="text-align:left; padding:1px 5px" | {{flag|{{{pocketflag|}}}}} [[{{{pocket|}}}]]
+
  | style="text-align:left; padding:1px 5px" | {{#if:{{{pocket|}}}|{{flag|{{{pocketflag|}}}}} [[{{{pocketlink|{{{pocket|}}}}}}|{{{pocket|}}}]]|{{#if:{{{pocketflag|}}}|{{flag|{{{pocketflag|}}}}}&nbsp|}}'''{{abbr|TBD|To be determined}}'''
 
|-
 
|-
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{demomanrole|}}}|{{#switch:{{lc:{{{demomanrole|}}}}}|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{demomanrole|}}}}}|<div style="transform:translateY(-1px)">{{icon|demoman|Demoman|middle=true}}</div>}}
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{demomanrole|}}}|{{#switch:{{lc:{{{demomanrole|}}}}}|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{demomanrole|}}}}}|<div style="transform:translateY(-1px)">{{icon|demoman|Demoman|middle=true}}</div>}}
  | style="text-align:left; padding:1px 5px" | {{flag|{{{demomanflag|}}}}} [[{{{demoman|}}}]]
+
  | style="text-align:left; padding:1px 5px" | {{#if:{{{demoman|}}}|{{flag|{{{demomanflag|}}}}} [[{{{demomanlink|{{{demoman|}}}}}}|{{{demoman|}}}]]|{{#if:{{{demomanflag|}}}|{{flag|{{{demomanflag|}}}}}&nbsp|}}'''{{abbr|TBD|To be determined}}'''
 
|-
 
|-
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{medicrole|}}}|{{#switch:{{lc:{{{medicrole|}}}}}|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{medicrole|}}}}}|<div style="transform:translateY(-1px)">{{icon|medic|Medic|middle=true}}</div>}}
 
  | style="padding:1px 2px; width:24px" | {{#if:{{{medicrole|}}}|{{#switch:{{lc:{{{medicrole|}}}}}|pyro=<div style="transform:translateY(-1px)">{{icon|pyro|Pyro|middle=true}}</div>|heavy=<div style="transform:translateY(-1px)">{{icon|heavy|Heavy|middle=true}}</div>|engineer=<div style="transform:translateY(-1px)">{{icon|engineer|Engineer|middle=true}}</div>|sniper=<div style="transform:translateY(-1px)">{{icon|sniper|Sniper|middle=true}}</div>|spy=<div style="transform:translateY(-1px)">{{icon|spy|Spy|middle=true}}</div>|#default={{{medicrole|}}}}}|<div style="transform:translateY(-1px)">{{icon|medic|Medic|middle=true}}</div>}}
  | style="text-align:left; padding:1px 5px" | {{flag|{{{medicflag|}}}}} [[{{{medic}}}]]
+
  | style="text-align:left; padding:1px 5px" | {{#if:{{{medic|}}}|{{flag|{{{medicflag|}}}}} [[{{{mediclink|{{{medic|}}}}}}|{{{medic|}}}]]|{{#if:{{{medicflag|}}}|{{flag|{{{medicflag|}}}}}&nbsp|}}'''{{abbr|TBD|To be determined}}'''
 
|-
 
|-
{{#if:{{{7th|}}}|
+
{{#if:{{{7th|}}}{{{7throle|}}}|
 
  {{!}} style="padding:1px 2px; width:24px" {{!}} {{#switch:{{lc:{{{7throle|}}}}}
 
  {{!}} style="padding:1px 2px; width:24px" {{!}} {{#switch:{{lc:{{{7throle|}}}}}
 
   | coach = '''{{abbr|C|Coach}}'''
 
   | coach = '''{{abbr|C|Coach}}'''
Line 28: Line 28:
 
   |#default={{{7throle|}}}
 
   |#default={{{7throle|}}}
 
}}
 
}}
  {{!}} style="text-align:left; padding:1px 5px" {{!}} {{flag|{{{7thflag|}}}}} [[{{{7th}}}]]
+
  {{!}} style="text-align:left; padding:1px 5px" {{!}} {{#if:{{{7th|}}}|{{flag|{{{7thflag|}}}}} [[{{{7thlink|{{{7th|}}}}}}|{{{7th|}}}]]|{{#if:{{{7thflag|}}}|{{flag|{{{7thflag|}}}}}&nbsp|}}'''{{abbr|TBD|To be determined}}'''
 
|}}
 
|}}
 
|}
 
|}

Revision as of 10:57, 19 April 2020

(view - edit) Documentation

Template:6sTeamCard2/doc