Editing Template:6sTeamCard2

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.

Latest revision Your text
Line 1: Line 1:
<includeonly>{| style="border:1px solid #aaa; border-spacing:0; margin:1em 0; text-align:center; background-color:#f9f9f9;"
+
<div style="display:inline-block; position:relative; margin-right:2em;">
|+'''{{#ifeq:{{{link|}}}|0|{{{team|}}}|[[{{{link|{{{team|}}}}}}|{{{team|}}}]]}}'''<sup>{{{notes|}}}</sup>
+
 
| class="comptf-cardbg" style="width:172px; height:172px; position:relative" | [[File:{{{image|Generic Logo.png}}}|146x146px|center|link=]]
+
<table class="wikitable" style="width:163px; height:163px; margin:0; margin-top:8px;">
{| class="wikitable comptf-cardfg" style="height:176px; width:176px; margin:0; position:absolute; bottom:-1px; left:-1px; display:none; text-align:center; background-color:rgba(249,249,249,0.9)"
+
<caption>[[{{{team|}}}]]<sup style="font-weight:normal">{{#if:{{{notes|}}}|&#32;{{{notes|}}}|}}</sup></caption>
| rowspan="{{#if:{{{scout1role|}}}{{{scout2role|}}}|1|2}}" style="padding:1px 2px; width:24px; border:1px solid rgba(170,170,170,0.9)" | {{#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>}}
+
<tbody class="teamcard-image">
| style="text-align:left; padding:1px 5px; border:1px solid rgba(170,170,170,0.9); overflow:hidden; white-space:nowrap; max-width:0; text-overflow:ellipsis; padding-right:0;" | {{flag|{{{scout1flag|}}}}}&nbsp;{{#if:{{{scout1|}}}|[[{{{scout1link|{{{scout1|}}}}}}|{{{scout1|}}}]]|{{abbr/TBD}}}}
+
<tr>
 +
<td>[[{{#if:{{{image|}}}|File:{{#ifeq:{{{image|}}}| |Generic_Logo.png|{{{image}}}}}|{{#ifeq:{{{team|}}}||File:Generic_Logo.png|{{#show: {{#if:{{{link|}}}|{{{link|}}}|{{{team|}}}}}|?has teamcard image|default={{#show: {{#if:{{{link|}}}|{{{link|}}}|{{{team|}}}}}|?has image|default=File:Generic_Logo.png|link=none}}|link=none}}}}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|140x140px}}|center|link=]]</td>
 +
</tr>
 +
</tbody>
 +
</table>
 +
{| class="wikitable teamcard-table" style="width:163px; position:absolute; bottom:-14px; z-index:1; display:none; background-color:rgba(249,249,249,0.95)"
 +
!style="width:22px; padding:2px"|<div style="transform:translateY(-1px)">[[File:Scouticon.png|20x20px|link=Scout]]</div>
 +
|<div style="width:122.812px; overflow:hidden; white-space:nowrap;">{{flag|{{{scout1flag|}}}}}&nbsp;[[{{{scout1|}}}]]</div>
 
|-
 
|-
{{#if:{{{scout1role|}}}{{{scout2role|}}}|{{!}} style="padding:1px 2px; width:24px; border:1px solid rgba(170,170,170,0.9)" {{!}} {{#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:2px"|<div style="transform:translateY(-1px)">[[File:Scouticon.png|20x20px|link=Scout]]</div>
| style="text-align:left; padding:1px 5px; border:1px solid rgba(170,170,170,0.9)" | {{flag|{{{scout1flag|}}}}}&nbsp;{{#if:{{{scout2|}}}|[[{{{scout2link|{{{scout2|}}}}}}|{{{scout2|}}}]]|{{abbr/TBD}}}}
+
|<div style="width:122.812px; overflow:hidden; white-space:nowrap;">{{flag|{{{scout2flag|}}}}}&nbsp;[[{{{scout2|}}}]]</div>
 
|-
 
|-
| style="padding:1px 2px; width:24px; border:1px solid rgba(170,170,170,0.9); overflow:hidden; white-space:nowrap; max-width:0; text-overflow:ellipsis; padding-right:0;" | {{#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:2px"|<div style="transform:translateY(-1px)">[[File:Soldiericon.png|20x20px|link=Roaming Soldier]]</div>
| style="text-align:left; padding:1px 5px; border:1px solid rgba(170,170,170,0.9); overflow:hidden; white-space:nowrap; max-width:0; text-overflow:ellipsis; padding-right:0;" | {{flag|{{{roamerflag|}}}}}&nbsp;{{#if:{{{roamer|}}}|[[{{{roamerlink|{{{roamer|}}}}}}|{{{roamer|}}}]]|{{abbr/TBD}}}}
+
|<div style="width:122.812px; overflow:hidden; white-space:nowrap;">{{flag|{{{roamerflag|}}}}}&nbsp;[[{{{roamer|}}}]]</div>
 
|-
 
|-
| style="padding:1px 2px; width:24px; border:1px solid rgba(170,170,170,0.9)" | {{#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:2px"|<div style="transform:translateY(-1px)">[[File:Pocketicon.png|20x20px|link=Pocket Soldier]]</div>
| style="text-align:left; padding:1px 5px; border:1px solid rgba(170,170,170,0.9); overflow:hidden; white-space:nowrap; max-width:0; text-overflow:ellipsis; padding-right:0;" | {{flag|{{{pocketflag|}}}}}&nbsp;{{#if:{{{pocket|}}}|[[{{{pocketlink|{{{pocket|}}}}}}|{{{pocket|}}}]]|{{abbr/TBD}}}}
+
|<div style="width:122.812px; overflow:hidden; white-space:nowrap;">{{flag|{{{pocketflag|}}}}}&nbsp;[[{{{pocket|}}}]]</div>
 
|-
 
|-
| style="padding:1px 2px; width:24px; border:1px solid rgba(170,170,170,0.9)" | {{#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:2px"|<div style="transform:translateY(-1px)">[[File:Demomanicon.png|20x20px|link=Demoman]]</div>
| style="text-align:left; padding:1px 5px; border:1px solid rgba(170,170,170,0.9); overflow:hidden; white-space:nowrap; max-width:0; text-overflow:ellipsis; padding-right:0;" | {{flag|{{{demomanflag|}}}}}&nbsp;{{#if:{{{demoman|}}}|[[{{{demomanlink|{{{demoman|}}}}}}|{{{demoman|}}}]]|{{abbr/TBD}}}}
+
|<div style="width:122.812px; overflow:hidden; white-space:nowrap;">{{flag|{{{demomanflag|}}}}}&nbsp;[[{{{demoman|}}}]]</div>
 
|-
 
|-
| style="padding:1px 2px; width:24px; border:1px solid rgba(170,170,170,0.9)" | {{#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:2px"|<div style="transform:translateY(-1px)">[[File:Medicicon.png|20x20px|link=Medic]]</div>
| style="text-align:left; padding:1px 5px; border:1px solid rgba(170,170,170,0.9); overflow:hidden; white-space:nowrap; max-width:0; text-overflow:ellipsis; padding-right:0;" | {{flag|{{{medicflag|}}}}}&nbsp;{{#if:{{{medic|}}}|[[{{{mediclink|{{{medic|}}}}}}|{{{medic|}}}]]|{{abbr/TBD}}}}
+
|<div style="width:122.812px; overflow:hidden; white-space:nowrap;">{{flag|{{{medicflag|}}}}}&nbsp;[[{{{medic|}}}]]</div>
|-
 
{{#if:{{{7th|}}}{{{7throle|}}}|
 
{{!}} style="padding:1px 2px; width:24px; border:1px solid rgba(170,170,170,0.9)" {{!}} {{#switch:{{lc:{{{7throle|}}}}}
 
  | coach = '''{{abbr|C|Coach}}'''
 
  | sub
 
  | substitute = '''{{abbr|S|Substitute}}'''
 
  |#default={{{7throle|}}}
 
}}
 
{{!}} style="text-align:left; padding:1px 5px; border:1px solid rgba(170,170,170,0.9); overflow:hidden; white-space:nowrap; max-width:0; text-overflow:ellipsis; padding-right:0;" {{!}} {{flag|{{{7thflag|}}}}}&nbsp;{{#if:{{{7th|}}}|[[{{{7thlink|{{{7th|}}}}}}|{{{7th|}}}]]|{{abbr/TBD}}}}
 
|}}
 
 
|}
 
|}
|-
+
</div>
{{#if:{{{qualifier|}}}|
 
{{!}} style="padding:2px 5px; background-color:#f2f2f2; border-top:1px solid #aaa" {{!}} '''{{{qualifier}}}'''
 
|}}
 
|}</includeonly><noinclude>{{Documentation}}[[Category:Template]][[Category:Templates]]</noinclude>
 

Please note that all contributions to comp.tf may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see comp.tf:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page: