Difference between revisions of "Template:TeamShow"

From QWiki
m
m (Enabled flexible width)
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="collapsible expanded" style="width:310px; margin-right: 0.2em; margin-bottom:1em; background-color:#eee;border-radius:2px;"
+
<includeonly>{| class="collapsible collapsed" style="{{#if: {{{width|}}}|width: {{{width}}}; |}}; margin-right: 0.2em; margin-bottom:1em; background-color:#eee;border-radius:2px;"
! style="font-weight:bold; color:#666; text-align:left;padding-left:10px;height:40px;"| {{{team}}} {{#if:{{{seed|}}}|{{seed|{{{seed}}}}}}}
+
! colspan="2" style="font-weight:bold; color:#666; text-align:left;padding-left:10px;padding-right:10px;height:40px;"| {{#if:{{{teamflag|}}}|<span style="white-space:nowrap;">{{flag/{{lc:{{{teamflag}}}}}}}&nbsp;</span>|<span style="white-space:nowrap;">{{flag/tbd}}&nbsp;</span>}} {{{team}}}
 
|- style="background-color:#f6f6f6;"
 
|- style="background-color:#f6f6f6;"
{{#if:{{{player1|}}}|{{!}} style="padding: 3px 0 3px 10px; border-top:1px solid #e9e9e9;" {{!}}{{player|{{{player1}}}|flag={{{flag1|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 1}}
+
{{#if:{{{player1|}}}|{{!}} style="padding: 3px 0 3px 10px; border-top:1px solid #e9e9e9;" {{!}}{{player|{{{player1}}}|flag={{{flag1|}}}|link={{{link1|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 1}}
 
|-
 
|-
{{#if:{{{player2|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player2}}}|flag={{{flag2|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 2}}
+
{{#if:{{{player2|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player2}}}|flag={{{flag2|}}}|link={{{link2|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 2}}
 
|- style="background-color:#f6f6f6;"
 
|- style="background-color:#f6f6f6;"
{{#if:{{{player3|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player3}}}|flag={{{flag3|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 3}}
+
{{#if:{{{player3|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player3}}}|flag={{{flag3|}}}|link={{{link3|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 3}}
 
|-
 
|-
{{#if:{{{player4|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player4}}}|flag={{{flag4|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 4}}
+
{{#if:{{{player4|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player4}}}|flag={{{flag4|}}}|link={{{link4|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 4}}
 
|- style="background-color:#f6f6f6;"
 
|- style="background-color:#f6f6f6;"
{{#if:{{{player5|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player5}}}|flag={{{flag5|}}}}} {{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 5}}
+
{{#if:{{{player5|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player5}}}|flag={{{flag5|}}}|link={{{link5|}}}}} {{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 5}}
 
|-
 
|-
{{#if:{{{player6|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player6}}}|flag={{{flag6|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 6}}
+
{{#if:{{{player6|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player6}}}|flag={{{flag6|}}}|link={{{link6|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 6}}
 
|- style="background-color:#f6f6f6;"
 
|- style="background-color:#f6f6f6;"
{{#if:{{{player7|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player7}}}|flag={{{flag7|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 7}}
+
{{#if:{{{player7|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player7}}}|flag={{{flag7|}}}|link={{{link7|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 7}}
 
|-
 
|-
{{#if:{{{player8|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player8}}}|flag={{{flag8|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 8}}
+
{{#if:{{{player8|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player8}}}|flag={{{flag8|}}}|link={{{link8|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 8}}
 
|- style="background-color:#f6f6f6;"
 
|- style="background-color:#f6f6f6;"
{{#if:{{{player9|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player9}}}|flag={{{flag9|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 9}}
+
{{#if:{{{player9|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player9}}}|flag={{{flag9|}}}|link={{{link9|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 9}}
 
|-
 
|-
{{#if:{{{player10|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player10}}}|flag={{{flag10|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 10}}
+
{{#if:{{{player10|}}}|{{!}} style="padding: 3px 0 3px 10px;" {{!}}{{player|{{{player10}}}|flag={{{flag10|}}}|link={{{link10|}}}}}{{!}}{{!}}style="text-align:right;padding-right:25px;color:#ddd" {{!}} 10}}
 
|}
 
|}
</includeonly><noinclude>{{Documentation}}</noinclude>
+
</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Latest revision as of 09:16, 22 September 2021

Documentation (view - edit)

|player1=
Name for player 1.
|flag1=
Flag for player1.

Supports up to 10 players.

Example

This code:

{{Team4on4|team=020|teamflag=se|player1=raket|flag1=se|player2=shaka|flag2=se|player3=greco|flag3=se|player4=rkd|flag4=se|player5=z0det|flag5=se}}

Returns this:


Example with abbreviation

This code:

{{Team4on4|team={{abbr|Suddendeath|SD }}|teamflag=se|player1=bps|flag1=se|player2=carapace|flag2=se|player3=rio|flag3=se|player4=Rikoll|flag4=no}}

Returns this:


Example with only 2 players