Difference between revisions of "Template:7sTeamCard"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
− | <includeonly><div class="teamcard" style="position:relative; width:250px; height:{{#expr: | + | <includeonly><div class="teamcard" style="position:relative; width:250px; height:{{#expr:160+{{#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: 250px; height: {{#expr: | + | {| class="wikitable logo" style="width: 250px; height: {{#expr: 166+{{#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 image|default=File:Generic_Logo.png|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: 250px; height: {{#expr: | + | {| class="wikitable list" style="width: 250px; height: {{#expr: 166+{{#if:{{{placement|}}}|33|0}}+{{#if:{{{preview|}}}|27|0}}}}px;" |
|- | |- | ||
!width=95px|<div style="text-align: left;">[[File:{{{oneclass|}}}icon.png|20px|link={{{oneclass|}}}]] [[{{{oneclass|}}}]]</div> | !width=95px|<div style="text-align: left;">[[File:{{{oneclass|}}}icon.png|20px|link={{{oneclass|}}}]] [[{{{oneclass|}}}]]</div> | ||
Line 28: | Line 28: | ||
<div style="text-align: left;">[[File:{{{sevenclass|}}}icon.png|20px|link={{{sevenclass|}}}]] [[{{{sevenclass|}}}]]</div> | <div style="text-align: left;">[[File:{{{sevenclass|}}}icon.png|20px|link={{{sevenclass|}}}]] [[{{{sevenclass|}}}]]</div> | ||
| {{flag|{{#if:{{{sevenflag|}}}|{{{sevenflag|filler flag}}}|filler flag}}}} {{#if:{{{seven|}}}|[[{{{sevenlink|{{{seven}}}}}}|{{{seven}}}]]|<abbr title="To Be Determined">TBD</abbr>}} | | {{flag|{{#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|}}}|{{!}}colspan="2" {{Placement|{{{placement}}}}}{{#if:{{{placementicon|}}}| {{{placementicon}}}}}}} | {{#if:{{{placement|}}}|{{!}}colspan="2" {{Placement|{{{placement}}}}}{{#if:{{{placementicon|}}}| {{{placementicon}}}}}}} | ||
{{!}}- | {{!}}- | ||
Line 35: | Line 34: | ||
|} | |} | ||
</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: | + | <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: -25px;">{{{qualifier}}}</div>}}<!-- |
− | </includeonly><noinclude>[[Category:Templates]] | + | ----- SEMANTIC SUBOBJECTS ----- |
+ | |||
+ | -->{{#ifeq:{{NAMESPACE}}||<!-- | ||
+ | |||
+ | |||
+ | -->{{#subobject:ranking_{{lc:{{{link|{{{team|TBD}}}}}}}} | ||
+ | |has player pages={{{scout1link|{{{scout1|}}}}}} | ||
+ | |has player pages={{{scout2link|{{{scout2|}}}}}} | ||
+ | |has player pages={{{roamerlink|{{{roamer|}}}}}} | ||
+ | |has player pages={{{pocketlink|{{{pocket|}}}}}} | ||
+ | |has player pages={{{demomanlink|{{{demoman|}}}}}} | ||
+ | |has player pages={{{mediclink|{{{medic|}}}}}} | ||
+ | |has player pages={{{p7link|{{{p7|}}}}}} | ||
+ | }} | ||
+ | }} | ||
+ | </includeonly> | ||
+ | <noinclude>{{Documentation}}[[Category:Templates]][[Category:Source Liquipedia]]</noinclude> |
Revision as of 17:37, 26 November 2016
(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= }}