Difference between revisions of "Template:7sTeamCard"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <includeonly><div class="teamcard" style="position:relative; width: | + | <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|}}}| <sup>{{{notes| }}}</sup>}}{{{ref|}}}</center> | <center>{{#if:{{{team|}}}|'''[[{{{link|{{{team}}}}}}|{{{team}}}]]'''|'''TBD'''}}{{#if:{{{notes|}}}| <sup>{{{notes| }}}</sup>}}{{{ref|}}}</center> | ||
− | {| class="wikitable logo" style="width: | + | {| 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: | + | {| class="wikitable list" style="width: 210px; height: {{#expr: 192+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;" |
|- | |- | ||
− | !width= | + | !width=20px|<div style="text-align: left;">[[File:{{{oneclass}}}icon.png|20px|link=]]</div> |
| {{flag|fixed-width=1|{{#if:{{{oneflag|}}}|{{{oneflag|filler flag}}}|filler flag}}}} {{#if:{{{one|}}}|[[{{{onelink|{{{one}}}}}}|{{{one}}}]]|<abbr title="To Be Determined">TBD</abbr>}} {{#if:{{{scout1preview|}}}|[[Image:Writers_icon.png|20px|15px|link={{{scout1preview}}}|Preview]]}} | | {{flag|fixed-width=1|{{#if:{{{oneflag|}}}|{{{oneflag|filler flag}}}|filler flag}}}} {{#if:{{{one|}}}|[[{{{onelink|{{{one}}}}}}|{{{one}}}]]|<abbr title="To Be Determined">TBD</abbr>}} {{#if:{{{scout1preview|}}}|[[Image:Writers_icon.png|20px|15px|link={{{scout1preview}}}|Preview]]}} | ||
|- | |- | ||
− | !<div style="text-align: left;">[[File:{{{twoclass}}}icon.png|20px|link= | + | !<div style="text-align: left;">[[File:{{{twoclass}}}icon.png|20px|link=]]</div> |
| {{flag|fixed-width=1|{{#if:{{{twoflag|}}}|{{{twoflag|filler flag}}}|filler flag}}}} {{#if:{{{two|}}}|[[{{{twolink|{{{two}}}}}}|{{{two}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|fixed-width=1|{{#if:{{{twoflag|}}}|{{{twoflag|filler flag}}}|filler flag}}}} {{#if:{{{two|}}}|[[{{{twolink|{{{two}}}}}}|{{{two}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
|- | |- | ||
− | !<div style="text-align: left;">[[File:{{{threeclass}}}icon.png|20px|link= | + | !<div style="text-align: left;">[[File:{{{threeclass}}}icon.png|20px|link=]]</div> |
{{!}} {{flag|fixed-width=1|{{#if:{{{threeflag|}}}|{{{threeflag|filler flag}}}|filler flag}}}} {{#if:{{{three|}}}|[[{{{threelink|{{{three}}}}}}|{{{three}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | {{!}} {{flag|fixed-width=1|{{#if:{{{threeflag|}}}|{{{threeflag|filler flag}}}|filler flag}}}} {{#if:{{{three|}}}|[[{{{threelink|{{{three}}}}}}|{{{three}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
|- | |- | ||
− | !<div style="text-align: left;">[[File:{{{fourclass}}}icon.png|20px|link= | + | !<div style="text-align: left;">[[File:{{{fourclass}}}icon.png|20px|link=]]</div> |
{{!}} {{flag|fixed-width=1|{{#if:{{{fourflag|}}}|{{{fourflag|filler flag}}}|filler flag}}}} {{#if:{{{four|}}}|[[{{{fourlink|{{{four}}}}}}|{{{four}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | {{!}} {{flag|fixed-width=1|{{#if:{{{fourflag|}}}|{{{fourflag|filler flag}}}|filler flag}}}} {{#if:{{{four|}}}|[[{{{fourlink|{{{four}}}}}}|{{{four}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
|- | |- | ||
− | !<div style="text-align: left;">[[File:{{{fiveclass}}}icon.png|20px|link= | + | !<div style="text-align: left;">[[File:{{{fiveclass}}}icon.png|20px|link=]]</div> |
{{!}} {{flag|fixed-width=1|{{#if:{{{fiveflag|}}}|{{{fiveflag|filler flag}}}|filler flag}}}} {{#if:{{{five|}}}|[[{{{fivelink|{{{five}}}}}}|{{{five}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | {{!}} {{flag|fixed-width=1|{{#if:{{{fiveflag|}}}|{{{fiveflag|filler flag}}}|filler flag}}}} {{#if:{{{five|}}}|[[{{{fivelink|{{{five}}}}}}|{{{five}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
|- | |- | ||
− | !<div style="text-align: left;">[[File:{{{sixclass}}}icon.png|20px|link= | + | !<div style="text-align: left;">[[File:{{{sixclass}}}icon.png|20px|link=]]</div> |
{{!}} {{flag|fixed-width=1|{{#if:{{{sixflag|}}}|{{{sixflag|filler flag}}}|filler flag}}}} {{#if:{{{six|}}}|[[{{{sixlink|{{{six}}}}}}|{{{six}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | {{!}} {{flag|fixed-width=1|{{#if:{{{sixflag|}}}|{{{sixflag|filler flag}}}|filler flag}}}} {{#if:{{{six|}}}|[[{{{sixlink|{{{six}}}}}}|{{{six}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
|- | |- | ||
− | !<div style="text-align: left;">[[File:{{{sevenclass}}}icon.png|20px|link= | + | !<div style="text-align: left;">[[File:{{{sevenclass}}}icon.png|20px|link=]]</div> |
{{!}} {{flag|fixed-width=1|{{#if:{{{sevenflag|}}}|{{{sevenflag|filler flag}}}|filler flag}}}} {{#if:{{{seven|}}}|[[{{{sevenlink|{{{seven}}}}}}|{{{seven}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | {{!}} {{flag|fixed-width=1|{{#if:{{{sevenflag|}}}|{{{sevenflag|filler flag}}}|filler flag}}}} {{#if:{{{seven|}}}|[[{{{sevenlink|{{{seven}}}}}}|{{{seven}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | ||
{{!}}-{{#if:{{{placement|}}}|style="height: 29px;"}} | {{!}}-{{#if:{{{placement|}}}|style="height: 29px;"}} |
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= }}
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= }}