Difference between revisions of "Template:6sTeamCard"

From comp.tf
Jump to navigation Jump to search
m (Changed roles to classes - testing)
m (More TF2 - removed example stuff)
Line 1: Line 1:
<noinclude> {{Ambox
+
<includeonly><div class="teamcard" style="position:relative; width:175px; height:{{#expr:140+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;">
|type = notice
 
|header = Under Maintance}}</noinclude>
 
<div class="teamcard" style="position:relative; width:175px; height:{{#expr:140+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|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: 175px; height: {{#expr: 120+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"
+
{| class="wikitable logo" style="width: 175px; height: {{#expr: 166+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"
 
|-
 
|-
 
|[[{{#if:{{{image|}}}|File:{{{image|Generic_logo.png}}}|{{#show: {{{team|TBD}}}|?has image|default=File:Generic_logo.png|link=none}}}}|{{{imagesize|119x119px}}}|center|link=]]
 
|[[{{#if:{{{image|}}}|File:{{{image|Generic_logo.png}}}|{{#show: {{{team|TBD}}}|?has image|default=File:Generic_logo.png|link=none}}}}|{{{imagesize|119x119px}}}|center|link=]]
 
|}
 
|}
{| class="wikitable list" style="width: 250px; height: {{#expr: 120+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"  
+
{| class="wikitable list" style="width: 200px; height: {{#expr: 166+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"  
 
|-
 
|-
!width=95px|{{{role1|[[File:Scouticon.png]] [[Scout]]}}}
+
!width=95px|<div style="text-align: left;">{{{role1|[[File:Scouticon.png]] [[Scout]]}}}</div>
|&nbsp;{{flag|{{#if:{{{p1flag|}}}|{{{p1flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{p1|}}}|[[{{{p1link|{{{p1}}}}}}|{{{p1}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;{{#if:{{{p1preview|}}}|[[Image:Writers_Icon.png|15px|link={{{p1preview}}}|Preview]]}}
+
|&nbsp;{{flag|{{#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|15px|link={{{scout1preview}}}|Preview]]}}
 
|-
 
|-
!{{{role2|[[File:Scouticon.png]] [[Scout]]}}}  
+
!{{{role2|<div style="text-align: left;">[[File:Scouticon.png]] [[Scout]]}}} </div>
|&nbsp;{{flag|{{#if:{{{p2flag|}}}|{{{p2flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{p2|}}}|[[{{{p2link|{{{p2}}}}}}|{{{p2}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
|&nbsp;{{flag|{{#if:{{{scout2flag|}}}|{{{scout2flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{scout2|}}}|[[{{{scout2link|{{{scout2}}}}}}|{{{scout2}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
!{{{role3|[[File:Soldiericon.png]] [[Pocket]]}}}
+
!{{{role3|<div style="text-align: left;">[[File:Soldiericon.png]] [[pocket]]}}}</div>
|&nbsp;{{flag|{{#if:{{{p3flag|}}}|{{{p3flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{p3|}}}|[[{{{p3link|{{{p3}}}}}}|{{{p3}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
|&nbsp;{{flag|{{#if:{{{pocketflag|}}}|{{{pocketflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{pocket|}}}|[[{{{pocketlink|{{{pocket}}}}}}|{{{pocket}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
!{{{role4|[[File:Soldiericon.png]] [[Roamer]]}}}
+
!{{{role4|<div style="text-align: left;">[[File:Soldiericon.png]] [[Roamer]]}}}</div>
|&nbsp;{{flag|{{#if:{{{p4flag|}}}|{{{p4flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{p4|}}}|[[{{{p1link|{{{p4}}}}}}|{{{p4}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
|&nbsp;{{flag|{{#if:{{{roamerflag|}}}|{{{roamerflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{roamer|}}}|[[{{{scout1link|{{{roamer}}}}}}|{{{roamer}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
!{{{role5|[[File:Demomanicon.png]] [[Demoman]]}}}
+
!{{{role5|<div style="text-align: left;">[[File:Demomanicon.png]] [[Demoman]]}}}</div>
|&nbsp;{{flag|{{#if:{{{p5flag|}}}|{{{p5flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{p5|}}}|[[{{{p1link|{{{p5}}}}}}|{{{p5}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
|&nbsp;{{flag|{{#if:{{{demomanflag|}}}|{{{demomanflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{demoman|}}}|[[{{{scout1link|{{{demoman}}}}}}|{{{demoman}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
!{{{role6|[[File:Medicicon.png]] [[Medic]]}}}
+
!{{{role6|<div style="text-align: left;">[[File:Medicicon.png]] [[Medic]]}}}</div>
|&nbsp;{{flag|{{#if:{{{p6flag|}}}|{{{p6flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{p6|}}}|[[{{{p1link|{{{p6}}}}}}|{{{p6}}}]]|<abbr title="To Be Determined">TBD</abbr>}}
+
|&nbsp;{{flag|{{#if:{{{medicflag|}}}|{{{medicflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{medic|}}}|[[{{{scout1link|{{{medic}}}}}}|{{{medic}}}]]|<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 34: Line 31:
 
</div>{{#if:{{{qualifier|}}}|
 
</div>{{#if:{{{qualifier|}}}|
 
<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: 13px;">{{{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: 13px;">{{{qualifier}}}</div>}}<!--
  ----- SEMANTIC SUBOBJECTS -----
+
  ----- SEMANTIC SUBOBJECTS /disabled/ -----
  
-->{{#ifeq:{{NAMESPACE}}||<!--
+
{{#ifeq:{{NAMESPACE}}||
  
-->{{#subobject:ranking_{{lc:{{{link|{{{team|TBD}}}}}}}}
+
{{#subobject:ranking_{{lc:{{{link|{{{team|TBD}}}}}}}}
|has player pages={{{p1link|{{{p1|}}}}}}
+
|has player pages={{{scout1link|{{{scout1|}}}}}}
|has player pages={{{p2link|{{{p2|}}}}}}
+
|has player pages={{{scout2link|{{{scout2|}}}}}}
|has player pages={{{p3link|{{{p3|}}}}}}
+
|has player pages={{{pocketlink|{{{pocket|}}}}}}
|has player pages={{{p4link|{{{p4|}}}}}}
+
|has player pages={{{roamerlink|{{{roamer|}}}}}}
|has player pages={{{p5link|{{{p5|}}}}}}
+
|has player pages={{{demomanlink|{{{demoman|}}}}}}
|has player pages={{{p6link|{{{p6|}}}}}}
+
|has player pages={{{mediclink|{{{medic|}}}}}}
 
|has player pages={{{p7link|{{{p7|}}}}}}
 
|has player pages={{{p7link|{{{p7|}}}}}}
}}<!--
+
}}
  
 
-->}}<!--
 
-->}}<!--
 
-->
 
-->
 
</includeonly>
 
</includeonly>
<noinclude>
+
<noinclude>{{Documentation}}[[Category:Templates]][[Category:Liquipedia Attribution]]</noinclude>
[http://wiki.teamliquid.net/counterstrike/Template:TeamCard Credit to Liquipedia]<br />
 
Template meant to be used when presenting a 5 man team on a tournament page. With only logo displayed until it's hovered and the roster is revealed.
 
 
 
== Usage ==
 
X will denote a number from 1 to 5, 1 is the top row and 5 the bottom.
 
;|team=
 
;|link=
 
:Name of the team and link to the page if this is different.
 
;|ref=
 
:To be used to insert a reference if there was some change with the team or whatever.
 
;|image=
 
:Image file link (no File: or Image: before this)
 
;|size=
 
:Max size is be 163x119px, can use the regular image size input ways of just width (163px) or height (x119px) to make the image fit into the template.
 
;|notes=
 
:Superscript text that appears next to the team name
 
;|pX=
 
;|pXlink=
 
:Player name and page link if different from the name.
 
;|pXflag=
 
:Player nationality/flag only 2 letter code in lower case is needed.
 
;|roleX=
 
:Optional depending on squad if they have fixed roles or not, to be used together with these abbreviation templates: .
 
;|qualifier=
 
:How the team qualified for the event, i.e. "Invited".  Can also be a link.
 
 
 
== Example ==
 
<pre>{{TeamCard
 
|team=Alliance
 
|image=Alliance.png
 
|size=119x119px
 
|p1=Loda |p1flag=se
 
|p2=S4 |p2flag=se
 
|p3=AdmiralBulldog |p3flag=se
 
|p4=EGM |p4flag=se
 
|p5=Akke |p5flag=se
 
}}</pre>
 
{{TeamCard
 
|team=Ninjas in Pyjamas
 
|image=Ninjas_in_Pyjamas.png
 
|imagesize=119x119px
 
|notes=1
 
|p1=cogline|p1flag=se
 
|p2=Hyb |p2flag=se
 
|p3=litzer|p3flag=se
 
|p4=Medion|p4flag=se
 
|p5=Potti|p5flag=se
 
}}
 
 
 
== Code ==
 
 
 
;Typical
 
<pre>{{TeamCard
 
|team=
 
|image=
 
|p1= |p1flag=
 
|p2= |p2flag=
 
|p3= |p3flag=
 
|p4= |p4flag=
 
|p5= |p5flag=
 
|qualifier=
 
}}
 
</pre>
 
;All variables
 
<pre>{{TeamCard
 
|team=
 
|link=
 
|ref=
 
|image=
 
|imagesize=
 
|notes=
 
|p1= |p1flag= |p1link= |role1=
 
|p2= |p2flag= |p2link= |role2=
 
|p3= |p3flag= |p3link= |role3=
 
|p4= |p4flag= |p4link= |role4=
 
|p5= |p5flag= |p5link= |role5=
 
|qualifier=
 
}}
 
</pre>
 
[[Category:Templates]][[Category:Liquipedia Attribution]]</noinclude>
 

Revision as of 15:44, 14 June 2015

(view - edit) Documentation

Credit to Liquipedia
Template meant to be used when presenting a 6 man team on a tournament page. With only logo displayed until it's hovered and the roster is revealed.

Usage

X will denote a number from 1 to 5, 1 is the top row and 5 the bottom.

|team=
|link=
Name of the team and link to the page if different. If set to 0, no link will show.
|ref=
To be used to insert a reference if there was some change with the team or whatever.
|image=
Image file link (no File: or Image: before this)
|imagesize=
Max size is 140x140px, can use the regular image size input ways of just width (140px) or height (x140px) to make the image fit into the template.
|notes=
Superscript text that appears next to the team name.
|<class>=
Player name.
|<class>flag=
Player nationality/flag only 2 letter code in lower case is needed.
|<class>team=
Player's main team if playing on a secondary team (e.g. national teams). Must have main team's proper capitalisation.
|<class>teamimg=
Alternate image file to be used for main team icon.
|role<class>=
If a team has different roles. E.g. |rolepocket={{Icon|pyro}} will show the Pyro pyro icon in place of the Pocket Soldier pocket icon.
|coach=
If a team has a coach/7th player. Can be used with |coachflag= and |rolecoach= just like the other player parameters. E.g. set |rolecoach={{abbr|S|Substitute}} to show "S" instead of the coach icon.
|qualifier=
How the team qualified for the event, i.e. "Invited". Can also be a link.

Example

{{6sTeamCard
|team=Epsilon
|image=Epsilon.jpeg
|imagesize=140x140px
|scout1=kileR4fuNN |scout1flag=pt
|scout2=basH. |scout2flag=de
|roamer=Tek |roamerflag=fr
|pocket=Mike |pocketflag=uk
|demoman=WARHURYEAH |demomanflag=uk
|medic=KnOxXx |medicflag=fr
|notes= 
}}
}}


Code

Typical
{{6sTeamCard
|team=
|image=
|scout1= |scout1flag=
|scout2= |scout2flag=
|roamer= |roamerflag=
|pocket= |pocketflag=
|demoman= |demomanflag=
|medic= |medicflag=
|qualifier=
}}
All variables
{{6sTeamCard
|team=
|link=
|ref=
|image=
|imagesize=
|notes=
|scout1= |scout1flag= |rolescout1= |scout1team= |scout1teamimg=
|scout2= |scout2flag= |rolescout2= |scout2team= |scout2teamimg=
|roamer= |roamerflag= |roleroamer= |roamerteam= |roamerteamimg=
|pocket= |pocketflag= |rolepocket= |pocketteam= |pocketteamimg=
|demoman= |demomanflag= |roledemoman= |demomanteam= |demomanteamimg=
|medic= |medicflag= |rolemedic= |medicteam= |medicteamimg=
|coach= |coachflag= |rolecoach=
|qualifier=
}}