Difference between revisions of "Template:6sTeamCard2"

From comp.tf
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>{| style="border:1px solid #aaa; border-spacing:0; margin:1em 0; text-align:center; position:relative; background-color:#f9f9f9"
 
<includeonly>{| style="border:1px solid #aaa; border-spacing:0; margin:1em 0; text-align:center; position:relative; background-color:#f9f9f9"
|+'''[[{{{team|}}}]]'''
+
|+'''{{#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:{{{image|}}}|146x146px|center|link={{{team|}}}]]
+
  | 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"  
  | style="padding:1px 2px; width:24px" | {{icon|scout|middle=true}}
+
  | style="padding:1px 2px; width:24px" | {{icon|{{{rolescout1|scout}}}|{{{rolescout1|Scout}}}|middle=true}}
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{scout1flag|}}}}} [[{{{scout1|}}}]]
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{scout1flag|}}}}} [[{{{scout1|}}}]]
 
|-
 
|-
  | style="padding:1px 2px; width:24px" | {{icon|scout|middle=true}}
+
  | style="padding:1px 2px; width:24px" | {{icon|{{{rolescout2|scout}}}|{{{rolescout2|Scout}}}|middle=true}}
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{scout2flag|}}}}} [[{{{scout2|}}}]]
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{scout2flag|}}}}} [[{{{scout2|}}}]]
 
|-
 
|-
  | style="padding:1px 2px; width:24px" | {{icon|roamer|middle=true}}
+
  | style="padding:1px 2px; width:24px" | {{icon|{{{roleroamer|roamer}}}|{{{roleroamer|Roaming Soldier}}}|middle=true}}
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{roamerflag|}}}}} [[{{{roamer|}}}]]
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{roamerflag|}}}}} [[{{{roamer|}}}]]
 
|-
 
|-
  | style="padding:1px 2px; width:24px" | {{icon|pocket|middle=true}}
+
  | style="padding:1px 2px; width:24px" | {{icon|{{{rolepocket|pocket}}}|{{{rolepocket|Pocket Soldier}}}|middle=true}}
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{pocketflag|}}}}} [[{{{pocket|}}}]]
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{pocketflag|}}}}} [[{{{pocket|}}}]]
 
|-
 
|-
  | style="padding:1px 2px; width:24px" | {{icon|demoman|middle=true}}
+
  | style="padding:1px 2px; width:24px" | {{icon|{{{roledemoman|demoman}}}|{{{roledemoman|Demoman}}}|middle=true}}
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{demomanflag|}}}}} [[{{{demoman|}}}]]
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{demomanflag|}}}}} [[{{{demoman|}}}]]
 
|-
 
|-
  | style="padding:1px 2px; width:24px" | {{icon|medic|middle=true}}
+
  | style="padding:1px 2px; width:24px" | {{icon|{{{rolemedic|medic}}}|{{{rolemedic|Medic}}}|middle=true}}
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{medicflag|}}}}} [[{{{medic}}}]]
 
  | style="text-align:left; padding:1px 5px" | {{flag|{{{medicflag|}}}}} [[{{{medic}}}]]
 
|-
 
|-
{{#if:{{{coach|}}}|
+
{{#if:{{{coach|}}}{{{sub|}}}{{{7th|}}}|
  {{!}} style="padding:1px 2px; width:24px" {{!}} {{abbr|'''C'''|Coach}}
+
  {{!}} style="padding:1px 2px; width:24px" {{!}} {{#if:{{{coach|}}}|{{abbr|'''C'''|Coach}}{{#if:{{{sub|}}}|{{abbr|'''S'''|Substitute}}{{#if:{{{role7th|}}}|{{{role7th|}}}}}}}}}
  {{!}} style="text-align:left; padding:1px 5px" {{!}} {{flag|{{{coachflag|}}}}} [[{{{coach}}}]]
+
  {{!}} style="text-align:left; padding:1px 5px" {{!}} {{#if:{{{coach|}}}|{{flag|{{{coachflag|}}}}} [[{{{coach}}}]]{{#if:{{{sub|}}}|{{flag|{{{subflag|}}}}} [[{{{sub|}}}]]|{{#if:{{{7th|}}}|{{flag|{{{7thflag|}}}}} [[{{{7th|}}}]]}}}}}}
 
|}}
 
|}}
 
|}
 
|}
 
|}</includeonly><noinclude>{{Documentation}}[[Category:Template]][[Category:Templates]]</noinclude>
 
|}</includeonly><noinclude>{{Documentation}}[[Category:Template]][[Category:Templates]]</noinclude>

Revision as of 07:14, 19 April 2020

(view - edit) Documentation

Template:6sTeamCard2/doc