Difference between revisions of "Template:6sTeamCard2"

From comp.tf
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{| style="border:1px solid #aaa; border-spacing:0; margin:1em 0; text-align:center; background-color:#f9f9f9;"
 
<includeonly>{| style="border:1px solid #aaa; border-spacing:0; margin:1em 0; text-align:center; background-color:#f9f9f9;"
|+'''{{#if:{{{team|}}}|{{#ifeq:{{{link|}}}|0|{{{team|}}}|[[{{{link|{{{team|}}}}}}|{{{team|}}}]]}}|{{abbr|TBD|To be determined}}}}'''{{#if:{{{notes|}}}|<sup>{{{notes|}}}</sup>}}{{#if:{{{ref|}}}|{{{ref|}}}|}}
+
|+'''{{#ifeq:{{{link|}}}|0|{{{team|}}}|[[{{{link|{{{team|}}}}}}|{{{team|}}}]]}}'''<sup>{{{notes|}}}</sup>
  | class="comptf-cardbg" style="width:172px; height:172px; position:relative" | [[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; position:relative" | [[File:{{{image|Generic Logo.png}}}|146x146px|center|link=]]
 
{| 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)"  
 
{| 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)"  
 
  | 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>}}
 
  | 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>}}
  | 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;" | {{#if:{{{scout1|}}}|{{flag|{{{scout1flag|}}}}} [[{{{scout1link|{{{scout1|}}}}}}|{{{scout1|}}}]]|{{#if:{{{scout1flag|}}}|{{flag|{{{scout1flag|}}}}}&nbsp;|}}{{abbr|TBD|To be determined}}}}
+
  | 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}}}}
 
|-
 
|-
 
{{#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>}}}}
 
{{#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="text-align:left; padding:1px 5px; border:1px solid rgba(170,170,170,0.9)" | {{#if:{{{scout2|}}}|{{flag|{{{scout2flag|}}}}} [[{{{scout2link|{{{scout2|}}}}}}|{{{scout2|}}}]]|{{#if:{{{scout2flag|}}}|{{flag|{{{scout2flag|}}}}}&nbsp;|}}{{abbr|TBD|To be determined}}}}
+
  | 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}}}}
 
|-
 
|-
 
  | 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: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="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;" | {{#if:{{{roamer|}}}|{{flag|{{{roamerflag|}}}}} [[{{{roamerlink|{{{roamer|}}}}}}|{{{roamer|}}}]]|{{#if:{{{roamerflag|}}}|{{flag|{{{roamerflag|}}}}}&nbsp;|}}{{abbr|TBD|To be determined}}}}
+
  | 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}}}}
 
|-
 
|-
 
  | 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: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="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;" | {{#if:{{{pocket|}}}|{{flag|{{{pocketflag|}}}}} [[{{{pocketlink|{{{pocket|}}}}}}|{{{pocket|}}}]]|{{#if:{{{pocketflag|}}}|{{flag|{{{pocketflag|}}}}}&nbsp;|}}{{abbr|TBD|To be determined}}}}
+
  | 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}}}}
 
|-
 
|-
 
  | 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: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="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;" | {{#if:{{{demoman|}}}|{{flag|{{{demomanflag|}}}}} [[{{{demomanlink|{{{demoman|}}}}}}|{{{demoman|}}}]]|{{#if:{{{demomanflag|}}}|{{flag|{{{demomanflag|}}}}}&nbsp;|}}{{abbr|TBD|To be determined}}}}
+
  | 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}}}}
 
|-
 
|-
 
  | 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: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="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;" | {{#if:{{{medic|}}}|{{flag|{{{medicflag|}}}}} [[{{{mediclink|{{{medic|}}}}}}|{{{medic|}}}]]|{{#if:{{{medicflag|}}}|{{flag|{{{medicflag|}}}}}&nbsp;|}}{{abbr|TBD|To be determined}}}}
+
  | 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}}}}
 
|-
 
|-
 
{{#if:{{{7th|}}}{{{7throle|}}}|
 
{{#if:{{{7th|}}}{{{7throle|}}}|
Line 28: Line 28:
 
   |#default={{{7throle|}}}
 
   |#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;" {{!}} {{#if:{{{7th|}}}|{{flag|{{{7thflag|}}}}} [[{{{7thlink|{{{7th|}}}}}}|{{{7th|}}}]]|{{#if:{{{7thflag|}}}|{{flag|{{{7thflag|}}}}}&nbsp;|}}{{abbr|TBD|To be determined}}}}
+
  {{!}} 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}}}}
 
|}}
 
|}}
 
|}
 
|}
Line 35: Line 35:
 
  {{!}} style="padding:2px 5px; background-color:#f2f2f2; border-top:1px solid #aaa" {{!}} '''{{{qualifier}}}'''
 
  {{!}} style="padding:2px 5px; background-color:#f2f2f2; border-top:1px solid #aaa" {{!}} '''{{{qualifier}}}'''
 
|}}
 
|}}
|}<!--
+
|}</includeonly><noinclude>{{Documentation}}[[Category:Template]][[Category:Templates]]</noinclude>
----- SEMANTIC SUBOBJECTS -----
 
 
 
-->{{#set:has team={{{team}}}}}<!--
 
 
 
-->{{#ifeq:{{NAMESPACE}}||<!--
 
 
 
-->{{#vardefine:team_name|{{#ifexist:Template:Team/{{{link|{{{team|}}}}}}|{{#explode:{{#explode:{{Team/{{{link|{{{team|}}}}}}}}|link=|1}}|]]|0}}|{{{link|{{{team|}}}}}}}}}}<!--
 
 
 
-->{{#subobject:ranking_{{lc:{{{link|{{{team|TBD}}}}}}}}
 
|is team={{#var:team_name}}
 
|has tournament={{FULLPAGENAME}}
 
|has approssimate date={{#if:{{#var:tournament_date}}|{{#var:tournament_date}}|{{#if:{{#var:tournament_edate}}|{{#var:tournament_edate}}|{{#var:tournament_sdate}}}} }}
 
|has player pages={{{scout1link|{{{scout1|}}}}}}
 
|has player pages={{{scout2link|{{{scout2|}}}}}}
 
|has player pages={{{roamerlink|{{{roamer|}}}}}}
 
|has player pages={{{pocketlink|{{{pocket|}}}}}}
 
|has player pages={{{demomanlink|{{{demoman|}}}}}}
 
|has player pages={{{mediclink|{{{medic|}}}}}}
 
|has player pages={{{7thlink|{{{7th|}}}}}}
 
}}
 
}}</includeonly><noinclude>{{Documentation}}[[Category:Template]][[Category:Templates]]</noinclude>
 

Latest revision as of 10:32, 13 May 2020

(view - edit) Documentation

Template:6sTeamCard2/doc