Difference between revisions of "Template:7sTeamCard"

From comp.tf
Jump to navigation Jump to search
m
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="teamcard" style="position:relative; width:250px; height:{{#expr:160+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}+{{#if:{{{qualifier|}}}|28|0}}}}px;">
+
<includeonly><div class="teamcard" style="position:relative; width:210px; height:{{#expr:186+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}+{{#if:{{{qualifier|}}}|28|0}}}}px;">
 
<center>{{#if:{{{team|}}}|'''[[{{{link|{{{team}}}}}}|{{{team}}}]]'''|'''TBD'''}}{{#if:{{{notes|}}}|&nbsp;<sup>{{{notes|&nbsp;}}}</sup>}}{{{ref|}}}</center>
 
<center>{{#if:{{{team|}}}|'''[[{{{link|{{{team}}}}}}|{{{team}}}]]'''|'''TBD'''}}{{#if:{{{notes|}}}|&nbsp;<sup>{{{notes|&nbsp;}}}</sup>}}{{{ref|}}}</center>
{| class="wikitable logo" style="width: 250px; height: {{#expr: 166+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"
+
{| class="wikitable logo" style="width: 210px; height: {{#expr: 192+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"
 
|-
 
|-
 
|[[{{#if:{{{image|}}}|File:{{#ifeq:{{{image|}}}| |Generic_Logo.png|{{{image}}}}}|{{#ifeq:{{{team|}}}||File:Generic_Logo.png|{{#show: {{{team|}}}|?has teamcard image|default={{#show: {{{team|}}}|?has image|default=File:Generic_Logo.png|link=none}}|link=none}}}}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|140x140px}}|center|link=]]
 
|[[{{#if:{{{image|}}}|File:{{#ifeq:{{{image|}}}| |Generic_Logo.png|{{{image}}}}}|{{#ifeq:{{{team|}}}||File:Generic_Logo.png|{{#show: {{{team|}}}|?has teamcard image|default={{#show: {{{team|}}}|?has image|default=File:Generic_Logo.png|link=none}}|link=none}}}}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|140x140px}}|center|link=]]
 
|}
 
|}
{| class="wikitable list" style="width: 250px; height: {{#expr: 166+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"  
+
{| class="wikitable list" style="width: 210px; height: {{#expr: 192+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"  
 
|-
 
|-
!width=95px|<div style="text-align: left;">{{{rolescout1|[[File:Scouticon.png|20px|link=]] [[Scout]]}}}</div>
+
!width=20px|<div style="text-align: left;">[[File:{{{oneclass}}}icon.png|20px|link=]]</div>
|&nbsp;{{flag|fixed-width=1|{{#if:{{{scout1flag|}}}|{{{scout1flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{scout1|}}}|[[{{{scout1link|{{{scout1}}}}}}|{{{scout1}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;{{#if:{{{scout1preview|}}}|[[Image:Writers_icon.png|20px|15px|link={{{scout1preview}}}|Preview]]}}
+
|&nbsp;{{flag|fixed-width=1|{{#if:{{{oneflag|}}}|{{{oneflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{one|}}}|[[{{{onelink|{{{one}}}}}}|{{{one}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;{{#if:{{{scout1preview|}}}|[[Image:Writers_icon.png|20px|15px|link={{{scout1preview}}}|Preview]]}}
 
|-
 
|-
!{{{rolescout2|<div style="text-align: left;">[[File:Scouticon.png|20px|link=]] [[Scout]]}}} </div>
+
!<div style="text-align: left;">[[File:{{{twoclass}}}icon.png|20px|link=]]</div>
|&nbsp;{{flag|fixed-width=1|{{#if:{{{scout2flag|}}}|{{{scout2flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{scout2|}}}|[[{{{scout2link|{{{scout2}}}}}}|{{{scout2}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
|&nbsp;{{flag|fixed-width=1|{{#if:{{{twoflag|}}}|{{{twoflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{two|}}}|[[{{{twolink|{{{two}}}}}}|{{{two}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
!{{{roleroamer|<div style="text-align: left;">[[File:Soldiericon.png|20px|link=]] [[Roamer]]}}}</div>
+
!<div style="text-align: left;">[[File:{{{threeclass}}}icon.png|20px|link=]]</div>
{{!}}&nbsp;{{flag|fixed-width=1|{{#if:{{{roamerflag|}}}|{{{roamerflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{roamer|}}}|[[{{{roamerlink|{{{roamer}}}}}}|{{{roamer}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
{{!}}&nbsp;{{flag|fixed-width=1|{{#if:{{{threeflag|}}}|{{{threeflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{three|}}}|[[{{{threelink|{{{three}}}}}}|{{{three}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
!{{{rolepocket|<div style="text-align: left;">[[File:Soldiericon.png|20px|link=]] [[Pocket]]}}}</div>
+
!<div style="text-align: left;">[[File:{{{fourclass}}}icon.png|20px|link=]]</div>
{{!}}&nbsp;{{flag|fixed-width=1|{{#if:{{{pocketflag|}}}|{{{pocketflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{pocket|}}}|[[{{{pocketlink|{{{pocket}}}}}}|{{{pocket}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
{{!}}&nbsp;{{flag|fixed-width=1|{{#if:{{{fourflag|}}}|{{{fourflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{four|}}}|[[{{{fourlink|{{{four}}}}}}|{{{four}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
!{{{roledemoman|<div style="text-align: left;">[[File:Demomanicon.png|20px|link=]] [[Demoman]]}}}</div>
+
!<div style="text-align: left;">[[File:{{{fiveclass}}}icon.png|20px|link=]]</div>
{{!}}&nbsp;{{flag|fixed-width=1|{{#if:{{{demomanflag|}}}|{{{demomanflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{demoman|}}}|[[{{{demomanlink|{{{demoman}}}}}}|{{{demoman}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
{{!}}&nbsp;{{flag|fixed-width=1|{{#if:{{{fiveflag|}}}|{{{fiveflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{five|}}}|[[{{{fivelink|{{{five}}}}}}|{{{five}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
!{{{rolemedic|<div style="text-align: left;">[[File:Medicicon.png|20px|link=]] [[Medic]]}}}</div>
+
!<div style="text-align: left;">[[File:{{{sixclass}}}icon.png|20px|link=]]</div>
{{!}} &nbsp;{{flag|fixed-width=1|{{#if:{{{medicflag|}}}|{{{medicflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{medic|}}}|[[{{{mediclink|{{{medic}}}}}}|{{{medic}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
{{!}} &nbsp;{{flag|fixed-width=1|{{#if:{{{sixflag|}}}|{{{sixflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{six|}}}|[[{{{sixlink|{{{six}}}}}}|{{{six}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 +
|-
 +
!<div style="text-align: left;">[[File:{{{sevenclass}}}icon.png|20px|link=]]</div>
 +
{{!}} &nbsp;{{flag|fixed-width=1|{{#if:{{{sevenflag|}}}|{{{sevenflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{seven|}}}|[[{{{sevenlink|{{{seven}}}}}}|{{{seven}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 
{{!}}-{{#if:{{{placement|}}}|style="height: 29px;"}}
 
{{!}}-{{#if:{{{placement|}}}|style="height: 29px;"}}
 
{{#if:{{{placement|}}}|{{!}}colspan="2" {{Placement|{{{placement}}}}}{{#if:{{{placementicon|}}}|&nbsp;{{{placementicon}}}}}}}
 
{{#if:{{{placement|}}}|{{!}}colspan="2" {{Placement|{{{placement}}}}}{{#if:{{{placementicon|}}}|&nbsp;{{{placementicon}}}}}}}
Line 32: Line 35:
 
<div class="teamcard-qualifier" style="text-align: center; border-bottom: 1px solid #aaa; border-left: 1px solid #aaa; border-right: 1px solid #aaa; font-weight: bold; background-color: #f9f9f9; padding: 2px;margin-bottom: -25px;">{{{qualifier}}}</div>}}<!--
 
<div class="teamcard-qualifier" style="text-align: center; border-bottom: 1px solid #aaa; border-left: 1px solid #aaa; border-right: 1px solid #aaa; font-weight: bold; background-color: #f9f9f9; padding: 2px;margin-bottom: -25px;">{{{qualifier}}}</div>}}<!--
 
  ----- SEMANTIC SUBOBJECTS -----
 
  ----- SEMANTIC SUBOBJECTS -----
 +
 +
-->{{#set:has team={{{team}}}}}<!--
  
 
-->{{#ifeq:{{NAMESPACE}}||<!--
 
-->{{#ifeq:{{NAMESPACE}}||<!--
Line 37: Line 42:
  
 
-->{{#subobject:ranking_{{lc:{{{link|{{{team|TBD}}}}}}}}
 
-->{{#subobject:ranking_{{lc:{{{link|{{{team|TBD}}}}}}}}
|has player pages={{{scout1link|{{{scout1|}}}}}}
+
 
|has player pages={{{scout2link|{{{scout2|}}}}}}
+
 
|has player pages={{{roamerlink|{{{roamer|}}}}}}
+
|has player pages={{{onelink|{{{one}}}}}}
|has player pages={{{pocketlink|{{{pocket|}}}}}}
+
|has player pages={{{twolink|{{{two}}}}}}
|has player pages={{{demomanlink|{{{demoman|}}}}}}
+
|has player pages={{{threelink|{{{three}}}}}}
|has player pages={{{mediclink|{{{medic|}}}}}}
+
|has player pages={{{fourlink|{{{four}}}}}}
|has player pages={{{p7link|{{{p7|}}}}}}
+
|has player pages={{{fivelink|{{{five}}}}}}
 +
|has player pages={{{sixlink|{{{six}}}}}}
 +
|has player pages={{{sevenlink|{{{seven}}}}}}
 
}}
 
}}
 
}}
 
}}
 
</includeonly>
 
</includeonly>
 
<noinclude>{{Documentation}}[[Category:Templates]][[Category:Source Liquipedia‏‎]]</noinclude>
 
<noinclude>{{Documentation}}[[Category:Templates]][[Category:Source Liquipedia‏‎]]</noinclude>

Latest revision as of 11:54, 28 January 2018

(view - edit) Documentation

Example

{{7sTeamCard
|team=froyotech
|image=Froyotech Logo.png
|imagesize=140x140px
|one=b4nny |oneflag=us |oneclass=Scout
|two=blaze |fourflag=ca|fourclass=Soldier
|three=Hassassin |sixflag=us |sixclass=Demoman
|four=Freestate |fiveflag=us |fiveclass=Heavy
|five=CookieJake |sevenflag=us |sevenclass=Medic
|six=corsa|twoflag=us |twoclass=Sniper
|seven=paddie |threeflag=ca|threeclass=Spy
|notes=
}}
froyotech
Scouticon.png
 United States b4nny 
Snipericon.png
 United States blaze
Spyicon.png
 Canada Hassassin
Soldiericon.png
 Canada Freestate
Heavyicon.png
 United States CookieJake
Demomanicon.png
 United States corsa
Medicicon.png
 United States paddie



Code

Typical
{{7sTeamCard
|team=
|image=
|one= |oneflag= |oneclass=
|two= |twoflag= |twoclass=
|three= |threeflag= |threeclass=
|four= |fourflag= |fourclass=
|five= |fiveflag= |fiveclass=
|six= |sixflag= |sixclass=
|seven= |sevenflag= |sevenclass=
|qualifier=
}}