Difference between revisions of "Template:TeamShow"

From QWiki
m (Added Category:Templates for correct categorization)
m (Enabled flexible width)
 
Line 1: Line 1:
<includeonly>{| class="collapsible collapsed" style="width:300px; 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;"
 
! 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}}}
 
! 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;"

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