Difference between revisions of "Template:TeamCard"

From QWiki
m (Cleanup)
m (tbd flag cleanup)
Line 24: Line 24:
  
 
--><table class="table table-bordered list" style="height: {{#expr:158+{{#if:{{{placement|}}}|30|0}}+{{#if:{{{p6|}}}|26|0}}+{{#if:{{{p7|}}}|26|0}}+{{#if:{{{p8|}}}|26|0}}+{{#if:{{{p9|}}}|26|0}}+{{#if:{{{p10|}}}|26|0}}+{{#if:{{{c2|}}}|26|0}}}}px;"><!--
 
--><table class="table table-bordered list" style="height: {{#expr:158+{{#if:{{{placement|}}}|30|0}}+{{#if:{{{p6|}}}|26|0}}+{{#if:{{{p7|}}}|26|0}}+{{#if:{{{p8|}}}|26|0}}+{{#if:{{{p9|}}}|26|0}}+{{#if:{{{p10|}}}|26|0}}+{{#if:{{{c2|}}}|26|0}}}}px;"><!--
--><tr><th>{{{pos1|1}}}</th><td>{{flag/{{#if:{{{p1flag|}}}|{{{p1flag|tbd}}}|filler flag}}}}&nbsp;{{#if:{{{p1|}}}|[[{{{p1link|{{{p1}}}}}}|{{{p1}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
+
--><tr><th>{{{pos1|1}}}</th><td>{{flag/{{#if:{{{p1flag|}}}|{{{p1flag|tbd}}}|tbd}}}}&nbsp;{{#if:{{{p1|}}}|[[{{{p1link|{{{p1}}}}}}|{{{p1}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
--><tr><th>{{{pos2|2}}}</th><td>{{flag/{{#if:{{{p2flag|}}}|{{{p2flag|tbd}}}|filler flag}}}}&nbsp;{{#if:{{{p2|}}}|[[{{{p2link|{{{p2}}}}}}|{{{p2}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
+
--><tr><th>{{{pos2|2}}}</th><td>{{flag/{{#if:{{{p2flag|}}}|{{{p2flag|tbd}}}|tbd}}}}&nbsp;{{#if:{{{p2|}}}|[[{{{p2link|{{{p2}}}}}}|{{{p2}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
--><tr><th>{{{pos3|3}}}</th><td>{{flag/{{#if:{{{p3flag|}}}|{{{p3flag|tbd}}}|filler flag}}}}&nbsp;{{#if:{{{p3|}}}|[[{{{p3link|{{{p3}}}}}}|{{{p3}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
+
--><tr><th>{{{pos3|3}}}</th><td>{{flag/{{#if:{{{p3flag|}}}|{{{p3flag|tbd}}}|tbd}}}}&nbsp;{{#if:{{{p3|}}}|[[{{{p3link|{{{p3}}}}}}|{{{p3}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
--><tr><th>{{{pos4|4}}}</th><td>{{flag/{{#if:{{{p4flag|}}}|{{{p4flag|tbd}}}|filler flag}}}}&nbsp;{{#if:{{{p4|}}}|[[{{{p4link|{{{p4}}}}}}|{{{p4}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
+
--><tr><th>{{{pos4|4}}}</th><td>{{flag/{{#if:{{{p4flag|}}}|{{{p4flag|tbd}}}|tbd}}}}&nbsp;{{#if:{{{p4|}}}|[[{{{p4link|{{{p4}}}}}}|{{{p4}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
--><tr><th>{{{pos5|5}}}</th><td>{{flag/{{#if:{{{p5flag|}}}|{{{p5flag|tbd}}}|filler flag}}}}&nbsp;{{#if:{{{p5|}}}|[[{{{p5link|{{{p5}}}}}}|{{{p5}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
+
--><tr><th>{{{pos5|5}}}</th><td>{{flag/{{#if:{{{p5flag|}}}|{{{p5flag|tbd}}}|tbd}}}}&nbsp;{{#if:{{{p5|}}}|[[{{{p5link|{{{p5}}}}}}|{{{p5}}}]]|<abbr title="To Be Determined">TBD</abbr>}}&nbsp;</td></tr><!--
-->{{#if:{{{p6|}}}|<tr><th>{{{pos6|6}}}</th><td>{{flag/{{#if:{{{p6flag|}}}|{{{p6flag|tbd}}}|filler flag}}}}&nbsp;[[{{{p6link|{{{p6}}}}}}|{{{p6}}}]]&nbsp;</td></tr>}}<!--
+
-->{{#if:{{{p6|}}}|<tr><th>{{{pos6|6}}}</th><td>{{flag/{{#if:{{{p6flag|}}}|{{{p6flag|tbd}}}|tbd}}}}&nbsp;[[{{{p6link|{{{p6}}}}}}|{{{p6}}}]]&nbsp;</td></tr>}}<!--
-->{{#if:{{{p7|}}}|<tr><th>{{{pos7|7}}}</th><td>{{flag/{{#if:{{{p7flag|}}}|{{{p7flag|tbd}}}|filler flag}}}}&nbsp;[[{{{p7link|{{{p7}}}}}}|{{{p7}}}]]&nbsp;</td></tr>}}<!--
+
-->{{#if:{{{p7|}}}|<tr><th>{{{pos7|7}}}</th><td>{{flag/{{#if:{{{p7flag|}}}|{{{p7flag|tbd}}}|tbd}}}}&nbsp;[[{{{p7link|{{{p7}}}}}}|{{{p7}}}]]&nbsp;</td></tr>}}<!--
-->{{#if:{{{p8|}}}|<tr><th>{{{pos8|8}}}</th><td>{{flag/{{#if:{{{p8flag|}}}|{{{p8flag|tbd}}}|filler flag}}}}&nbsp;[[{{{p8link|{{{p8}}}}}}|{{{p8}}}]]&nbsp;</td></tr>}}<!--
+
-->{{#if:{{{p8|}}}|<tr><th>{{{pos8|8}}}</th><td>{{flag/{{#if:{{{p8flag|}}}|{{{p8flag|tbd}}}|tbd}}}}&nbsp;[[{{{p8link|{{{p8}}}}}}|{{{p8}}}]]&nbsp;</td></tr>}}<!--
-->{{#if:{{{p9|}}}|<tr><th>{{{pos9|9}}}</th><td>{{flag/{{#if:{{{p9flag|}}}|{{{p9flag|tbd}}}|filler flag}}}}&nbsp;[[{{{p9link|{{{p9}}}}}}|{{{p9}}}]]&nbsp;</td></tr>}}<!--
+
-->{{#if:{{{p9|}}}|<tr><th>{{{pos9|9}}}</th><td>{{flag/{{#if:{{{p9flag|}}}|{{{p9flag|tbd}}}|tbd}}}}&nbsp;[[{{{p9link|{{{p9}}}}}}|{{{p9}}}]]&nbsp;</td></tr>}}<!--
-->{{#if:{{{p10|}}}|<tr><th>{{{pos10|10}}}</th><td>{{flag/{{#if:{{{p10flag|}}}|{{{p10flag|tbd}}}|filler flag}}}}&nbsp;[[{{{p10link|{{{p10}}}}}}|{{{p10}}}]]&nbsp;</td></tr>}}<!--
+
-->{{#if:{{{p10|}}}|<tr><th>{{{pos10|10}}}</th><td>{{flag/{{#if:{{{p10flag|}}}|{{{p10flag|tbd}}}|tbd}}}}&nbsp;[[{{{p10link|{{{p10}}}}}}|{{{p10}}}]]&nbsp;</td></tr>}}<!--
 
-->{{#if:{{#var:teamcard_coaches|}}{{{c|}}}{{{c2|}}}|<!--
 
-->{{#if:{{#var:teamcard_coaches|}}{{{c|}}}{{{c2|}}}|<!--
--><tr><th style="border-top-width:2px;"><abbr title="Coach">C</abbr></th><td style="border-top-width:2px;">{{flag/{{#if:{{{cflag|}}}|{{{cflag|tbd}}}|filler flag}}}}&nbsp;{{#if:{{{c|}}}|[[{{{clink|{{{c}}}}}}|{{{c}}}]]|–}}&nbsp;</td></tr><!--
+
--><tr><th style="border-top-width:2px;"><abbr title="Coach">C</abbr></th><td style="border-top-width:2px;">{{flag/{{#if:{{{cflag|}}}|{{{cflag|tbd}}}|tbd}}}}&nbsp;{{#if:{{{c|}}}|[[{{{clink|{{{c}}}}}}|{{{c}}}]]|–}}&nbsp;</td></tr><!--
-->{{#if:{{{c2|}}}<tr><th><abbr title="Coach 2">C</abbr></th><td>{{flag/{{#if:{{{c2flag|}}}|{{{c2flag|tbd}}}|filler flag}}}}&nbsp;[[{{{c2link|{{{c2}}}}}}|{{{c2}}}]]&nbsp;</td></tr>}}<!--
+
-->{{#if:{{{c2|}}}<tr><th><abbr title="Coach 2">C</abbr></th><td>{{flag/{{#if:{{{c2flag|}}}|{{{c2flag|tbd}}}|tbd}}}}&nbsp;[[{{{c2link|{{{c2}}}}}}|{{{c2}}}]]&nbsp;</td></tr>}}<!--
 
-->}}<!--
 
-->}}<!--
  

Revision as of 08:49, 16 April 2025

Documentation (view - edit)

Template meant to be used when presenting a 1-24 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 24, 1 is the top row and 24 the bottom.

|team=
|link=
Name of the team and link to the page if this is different.
|number=
Number of player rows to display. Default 4.
|image=
Image file link (no File: or Image: before this)
|imagesize=
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.
|pX=
|pXlink=
Player name and page link if different from the name. Leave empty for "TBD".
|pXflag=
Player nationality/flag only 2 letter code in lower case is needed. Leave empty for "TBD".
|qualifier=
How the team qualified for the event, i.e. "Invited". Can also be a used for "Seed 5" or whatever.
|notes=
Superscript text that appears next to the team name.

Example

[[|Suddendeath]]
1Sweden bps 
2Sweden carapace 
3Sweden goblin 
4Sweden andeh 
5TBD TBD 
{{TeamCard
|team=Suddendeath
|link=
|number=4
|flag=se
|image=S-logo-shortteam.png
|imagesize=120px
|p1flag=se |p1=bps
|p2flag=se |p2=carapace
|p3flag=se |p3=goblin
|p4flag=se |p4=andeh
}}
[[|The Axemen]]
1Norway Timmi 
2Norway TheChosenOne 
3Norway Baresi 
4Norway PreMortem 
5Norway tr0ll 
6Norway Macisum 
{{TeamCard
|number=6
|team=The Axemen
|link=
|flag=no
|image=Axemen logo.png
|imagesize=130px
|p1flag=no |p1=Timmi
|p2flag=no |p2=TheChosenOne
|p3flag=no |p3=Baresi
|p4flag=no |p4=PreMortem
|p5flag=no |p5=tr0ll
|p6flag=no |p6=Macisum
}}

Code

Typical
{{TeamCard
|team=
|number=
|flag=
|image=
|imagesize=120px
|p1flag= |p1=
|p2flag= |p2=
|p3flag= |p3=
|p4flag= |p4=
|p5flag= |p5=
|p6flag= |p6=
}}
All variables
{{TeamCard
|team=
|number=
|flag=
|image=
|imagesize=120px
|p1flag= |p1= |p1link=
|p2flag= |p2= |p2link=
|p3flag= |p3= |p3link=
|p4flag= |p4= |p4link=
|p5flag= |p5= |p5link=
|p6flag= |p6= |p6link=
|p7flag= |p7= |p7link=
|p8flag= |p8= |p8link=
|p9flag= |p9= |p9link=
|p10flag= |p10= |p10link=
|p11flag= |p11= |p11link=
|p12flag= |p12= |p12link=
|p13flag= |p13= |p13link=
|p14flag= |p14= |p14link=
|p15flag= |p15= |p15link=
|p16flag= |p16= |p16link=
|p17flag= |p17= |p17link=
|p18flag= |p18= |p18link=
|p19flag= |p19= |p19link=
|p20flag= |p20= |p20link=
|p21flag= |p21= |p21link=
|p23flag= |p22= |p22link=
|p23flag= |p23= |p23link=
|p24flag= |p24= |p24link=
|qualifier=
|notes=
}}