Difference between revisions of "Template:HLTeamCard"
Jump to navigation
Jump to search
Highpander
(Created page with "<div class="teamcard" style="position:relative; width:460px; height:{{#expr:140+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"> <center>{{#if:{{{team|}}}|'''[...") |
m |
||
Line 1: | Line 1: | ||
− | <div class="teamcard" style="position:relative; width:460px; height:{{#expr:140+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"> | + | <includeonly><div class="teamcard" style="position:relative; width:460px; height:{{#expr:140+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;"> |
<center>{{#if:{{{team|}}}|'''[[{{{link|{{{team}}}}}}|{{{team}}}]]'''|'''TBD'''}}{{#if:{{{notes|}}}|<sup>{{{notes| }}}</sup>}}{{{ref|}}}</center> | <center>{{#if:{{{team|}}}|'''[[{{{link|{{{team}}}}}}|{{{team}}}]]'''|'''TBD'''}}{{#if:{{{notes|}}}|<sup>{{{notes| }}}</sup>}}{{{ref|}}}</center> | ||
{| class="wikitable logo" style="width: 460px; height: {{#expr: 100+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;" | {| class="wikitable logo" style="width: 460px; height: {{#expr: 100+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;" | ||
Line 6: | Line 6: | ||
{| class="wikitable list" style="width: 460px; height: {{#expr: 100+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;" | {| class="wikitable list" style="width: 460px; height: {{#expr: 100+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;" | ||
|- | |- | ||
− | !width=20px|[[File:Scouticon.png]] | + | !width=20px|[[File:Scouticon.png|link=Scout]] |
| {{flag|{{#if:{{{scoutflag|}}}|{{{scoutflag|filler flag}}}|filler flag}}}} {{#if:{{{scout|}}}|[[{{{scoutlink|{{{scout}}}}}}|{{{scout}}}]]|<abbr title="To Be Determined">TBD</abbr>}} {{#if:{{{p1preview|}}}| | | {{flag|{{#if:{{{scoutflag|}}}|{{{scoutflag|filler flag}}}|filler flag}}}} {{#if:{{{scout|}}}|[[{{{scoutlink|{{{scout}}}}}}|{{{scout}}}]]|<abbr title="To Be Determined">TBD</abbr>}} {{#if:{{{p1preview|}}}| | ||
[[Image:Writers_Icon.png|15px|link={{{p1preview}}}|Preview]]}} | [[Image:Writers_Icon.png|15px|link={{{p1preview}}}|Preview]]}} | ||
− | !width=20px|[[File:Demomanicon.png]] | + | !width=20px|[[File:Demomanicon.png|link=Demoman]] |
| {{flag|{{#if:{{{demoflag|}}}|{{{demoflag|filler flag}}}|filler flag}}}} {{#if:{{{demo|}}}|[[{{{p2link|{{{demo}}}}}}|{{{demo}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|{{#if:{{{demoflag|}}}|{{{demoflag|filler flag}}}|filler flag}}}} {{#if:{{{demo|}}}|[[{{{p2link|{{{demo}}}}}}|{{{demo}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
− | !width=20px|[[File:Medicicon.png]] | + | !width=20px|[[File:Medicicon.png|link=Medic]] |
| {{flag|{{#if:{{{medicflag|}}}|{{{medicflag|filler flag}}}|filler flag}}}} {{#if:{{{medic|}}}|[[{{{p2link|{{{medic}}}}}}|{{{medic}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|{{#if:{{{medicflag|}}}|{{{medicflag|filler flag}}}|filler flag}}}} {{#if:{{{medic|}}}|[[{{{p2link|{{{medic}}}}}}|{{{medic}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
|- | |- | ||
− | ![[File:Soldiericon.png]] | + | ![[File:Soldiericon.png|link=Soldier]] |
| {{flag|{{#if:{{{soldierflag|}}}|{{{soldierflag|filler flag}}}|filler flag}}}} {{#if:{{{soldier|}}}|[[{{{p2link|{{{soldier}}}}}}|{{{soldier}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|{{#if:{{{soldierflag|}}}|{{{soldierflag|filler flag}}}|filler flag}}}} {{#if:{{{soldier|}}}|[[{{{p2link|{{{soldier}}}}}}|{{{soldier}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
− | ![[File:Heavyicon.png]] | + | ![[File:Heavyicon.png|link=Heavy]] |
| {{flag|{{#if:{{{heavyflag|}}}|{{{heavyflag|filler flag}}}|filler flag}}}} {{#if:{{{heavy|}}}|[[{{{p2link|{{{heavy}}}}}}|{{{heavy}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|{{#if:{{{heavyflag|}}}|{{{heavyflag|filler flag}}}|filler flag}}}} {{#if:{{{heavy|}}}|[[{{{p2link|{{{heavy}}}}}}|{{{heavy}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
− | ![[File:Snipericon.png]] | + | ![[File:Snipericon.png|link=Sniper]] |
| {{flag|{{#if:{{{sniperflag|}}}|{{{sniperflag|filler flag}}}|filler flag}}}} {{#if:{{{sniper|}}}|[[{{{p2link|{{{sniper}}}}}}|{{{sniper}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|{{#if:{{{sniperflag|}}}|{{{sniperflag|filler flag}}}|filler flag}}}} {{#if:{{{sniper|}}}|[[{{{p2link|{{{sniper}}}}}}|{{{sniper}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
|- | |- | ||
− | ![[File:Pyroicon.png]] | + | ![[File:Pyroicon.png|link=Pyro]] |
| {{flag|{{#if:{{{pyroflag|}}}|{{{pyroflag|filler flag}}}|filler flag}}}} {{#if:{{{pyro|}}}|[[{{{p2link|{{{pyro}}}}}}|{{{pyro}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|{{#if:{{{pyroflag|}}}|{{{pyroflag|filler flag}}}|filler flag}}}} {{#if:{{{pyro|}}}|[[{{{p2link|{{{pyro}}}}}}|{{{pyro}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
− | ![[File:Engineericon.png]] | + | ![[File:Engineericon.png|link=Engineer]] |
| {{flag|{{#if:{{{engineerflag|}}}|{{{engineerflag|filler flag}}}|filler flag}}}} {{#if:{{{engineer|}}}|[[{{{p2link|{{{engineer}}}}}}|{{{engineer}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|{{#if:{{{engineerflag|}}}|{{{engineerflag|filler flag}}}|filler flag}}}} {{#if:{{{engineer|}}}|[[{{{p2link|{{{engineer}}}}}}|{{{engineer}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
− | ![[File:Spyicon.png]] | + | ![[File:Spyicon.png|link=Spy]] |
| {{flag|{{#if:{{{spyflag|}}}|{{{spyflag|filler flag}}}|filler flag}}}} {{#if:{{{spy|}}}|[[{{{p2link|{{{spy}}}}}}|{{{spy}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|{{#if:{{{spyflag|}}}|{{{spyflag|filler flag}}}|filler flag}}}} {{#if:{{{spy|}}}|[[{{{p2link|{{{spy}}}}}}|{{{spy}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
{{!}}-{{#if:{{{placement|}}}|style="height: 29px;"}} | {{!}}-{{#if:{{{placement|}}}|style="height: 29px;"}} | ||
Line 41: | Line 41: | ||
-->}}<!-- | -->}}<!-- | ||
--> | --> | ||
− | <noinclude>[[Category:Templates]]{{Documentation}}</noinclude> | + | </includeonly><noinclude>[[Category:Templates]]{{Documentation}}</noinclude> |
Revision as of 16:01, 24 September 2015
(view - edit) Documentation
Template meant to be used when presenting a Highlander 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.
- |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 be 245x165px, can use the regular image size input ways of just width (245px) or height (x165px) 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.
- |role<class>=
- If a team has different roles. E.g.
|rolesoldier={{Icon|roamer}}
will show the roamer icon in place of the soldier icon. - |qualifier=
- How the team qualified for the event, i.e. "Invited". Can also be a link.
Example
{{HLTeamCard |team=Highpander |image=Highpander.png |scout=Kissakala |scoutflag=fi |soldier=zoob |soldierflag=fi |pyro=Stevepander |pyroflag=uk |demoman=Hildreth |demomanflag=uk |heavy=Polk |heavyflag=us |engineer=nijoonen |engineerflag=se |medic=Sprayer |medicflag=li |sniper=phromelo |sniperflag=pl |spy=Grenjabob |spyflag=uk |notes= }}
Kissakala | Template:Flag/filler flag TBD | Sprayer | |||
zoob | Polk | phromelo | |||
Stevepander | nijoonen | Grenjabob |
Code
- Typical
{{HLTeamCard |team= |image= |scout= |scoutflag= |soldier= |soldierflag= |pyro= |pyroflag= |demoman= |demomanflag= |heavy= |heavyflag= |engineer= |engineerflag= |medic= |medicflag= |sniper= |sniperflag= |spy= |spyflag= }}
- All variables
{{HLTeamCard |team= |link= |ref= |image= |imagesize= |notes= |scout= |scoutflag= |rolescout= |soldier= |soldierflag= |rolesoldier= |pyro= |pyroflag= |rolepyro= |demoman= |demomanflag= |roledemoman= |heavy= |heavyflag= |roleheavy= |engineer= |engineerflag= |roleengineer= |medic= |medicflag= |rolemedic= |sniper= |sniperflag= |rolesniper= |spy= |spyflag= |rolespy= |qualifier= }}