Difference between revisions of "Template:6sTeamCard"

From comp.tf
Jump to navigation Jump to search
m (Added captain option)
m
Line 8: Line 8:
 
|-
 
|-
 
!width=95px|<div style="text-align: left;">{{{rolescout1|[[File:Scouticon.png|20px|link=]] [[Scout]]}}}</div>
 
!width=95px|<div style="text-align: left;">{{{rolescout1|[[File:Scouticon.png|20px|link=]] [[Scout]]}}}</div>
|&nbsp;{{flag|{{#if:{{{scout1flag|}}}|{{{scout1flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{scout1|}}}|[[{{{scout1link|{{{scout1}}}}}}|{{{scout1}}}]]{{#ifeq:{{{captain|}}}|1|&#32;(c)|}}|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;{{#if:{{{scout1preview|}}}|[[Image:Writers_icon.png|20px|15px|link={{{scout1preview}}}|Preview]]}}
+
|&nbsp;{{flag|{{#if:{{{scout1flag|}}}|{{{scout1flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{scout1|}}}|[[{{{scout1link|{{{scout1}}}}}}|{{{scout1}}}]]{{#ifeq:{{{captain|}}}|scout1|&#32;(c)|{{#ifeq:{{{captain|}}}|{{{scout1|}}}&#32;(c)|}}|}}|<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>
 
!{{{rolescout2|<div style="text-align: left;">[[File:Scouticon.png|20px|link=]] [[Scout]]}}} </div>
|&nbsp;{{flag|{{#if:{{{scout2flag|}}}|{{{scout2flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{scout2|}}}|[[{{{scout2link|{{{scout2}}}}}}|{{{scout2}}}]]{{#ifeq:{{{captain|}}}|1|&#32;(c)|}}|<abbr title="To Be Determined">TBD</abbr>}}
+
|&nbsp;{{flag|{{#if:{{{scout2flag|}}}|{{{scout2flag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{scout2|}}}|[[{{{scout2link|{{{scout2}}}}}}|{{{scout2}}}]]{{#ifeq:{{{captain|}}}|scout2|&#32;(c)|{{#ifeq:{{{captain|}}}|{{{scout2|}}}&#32;(c)|}}|}}|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
 
!{{{roleroamer|<div style="text-align: left;">[[File:Soldiericon.png|20px|link=]] [[Roamer]]}}}</div>
 
!{{{roleroamer|<div style="text-align: left;">[[File:Soldiericon.png|20px|link=]] [[Roamer]]}}}</div>
{{!}}&nbsp;{{flag|{{#if:{{{roamerflag|}}}|{{{roamerflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{roamer|}}}|[[{{{roamerlink|{{{roamer}}}}}}|{{{roamer}}}]]{{#ifeq:{{{captain|}}}|1|&#32;(c)|}}|<abbr title="To Be Determined">TBD</abbr>}}
+
{{!}}&nbsp;{{flag|{{#if:{{{roamerflag|}}}|{{{roamerflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{roamer|}}}|[[{{{roamerlink|{{{roamer}}}}}}|{{{roamer}}}]]{{#ifeq:{{{captain|}}}|roamer|&#32;(c)|{{#ifeq:{{{captain|}}}|{{{roamer|}}}&#32;(c)|}}|}}|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
 
!{{{rolepocket|<div style="text-align: left;">[[File:Soldiericon.png|20px|link=]] [[Pocket]]}}}</div>
 
!{{{rolepocket|<div style="text-align: left;">[[File:Soldiericon.png|20px|link=]] [[Pocket]]}}}</div>
{{!}}&nbsp;{{flag|{{#if:{{{pocketflag|}}}|{{{pocketflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{pocket|}}}|[[{{{pocketlink|{{{pocket}}}}}}|{{{pocket}}}]]{{#ifeq:{{{captain|}}}|1|&#32;(c)|}}|<abbr title="To Be Determined">TBD</abbr>}}
+
{{!}}&nbsp;{{flag|{{#if:{{{pocketflag|}}}|{{{pocketflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{pocket|}}}|[[{{{pocketlink|{{{pocket}}}}}}|{{{pocket}}}]]{{#ifeq:{{{captain|}}}|pocket|&#32;(c)|{{#ifeq:{{{captain|}}}|{{{pocket|}}}&#32;(c)|}}|}}|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
 
!{{{roledemoman|<div style="text-align: left;">[[File:Demomanicon.png|20px|link=]] [[Demoman]]}}}</div>
 
!{{{roledemoman|<div style="text-align: left;">[[File:Demomanicon.png|20px|link=]] [[Demoman]]}}}</div>
{{!}}&nbsp;{{flag|{{#if:{{{demomanflag|}}}|{{{demomanflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{demoman|}}}|[[{{{demomanlink|{{{demoman}}}}}}|{{{demoman}}}]]{{#ifeq:{{{captain|}}}|1|&#32;(c)|}}|<abbr title="To Be Determined">TBD</abbr>}}
+
{{!}}&nbsp;{{flag|{{#if:{{{demomanflag|}}}|{{{demomanflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{demoman|}}}|[[{{{demomanlink|{{{demoman}}}}}}|{{{demoman}}}]]{{#ifeq:{{{captain|}}}|demoman|&#32;(c)|{{#ifeq:{{{captain|}}}|{{{demoman|}}}&#32;(c)|}}|}}|<abbr title="To Be Determined">TBD</abbr>}}
 
|-
 
|-
 
!{{{rolemedic|<div style="text-align: left;">[[File:Medicicon.png|20px|link=]] [[Medic]]}}}</div>
 
!{{{rolemedic|<div style="text-align: left;">[[File:Medicicon.png|20px|link=]] [[Medic]]}}}</div>
{{!}} &nbsp;{{flag|{{#if:{{{medicflag|}}}|{{{medicflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{medic|}}}|[[{{{mediclink|{{{medic}}}}}}|{{{medic}}}]]{{#ifeq:{{{captain|}}}|1|&#32;(c)|}}|<abbr title="To Be Determined">TBD</abbr>}}
+
{{!}} &nbsp;{{flag|{{#if:{{{medicflag|}}}|{{{medicflag|filler flag}}}|filler flag}}}}&nbsp;{{#if:{{{medic|}}}|[[{{{mediclink|{{{medic}}}}}}|{{{medic}}}]]{{#ifeq:{{{captain|}}}|medic|&#32;(c)|{{#ifeq:{{{captain|}}}|{{{medic|}}}&#32;(c)|}}|}}|<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}}}}}}}

Revision as of 00:23, 11 June 2016

(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=
}}