Difference between revisions of "Template:MatchAbbr"

From QWiki
m (Changed styling to a more boxed format)
m (Adding |info= parameter for additional context)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| style="width:100%;border: 1px solid #DEDACF;"
+
<includeonly>{{#if: {{{info|}}} | <div style="width:100%;text-align: center;margin-bottom:-14px;"><span style="background-color:#f0eee6;color:#444;border-radius:2px;border:1px solid #dedacf;vertical-align:text-top;padding-bottom:1px;font-size:75%;">&nbsp;&nbsp;{{{info}}}&nbsp;&nbsp;</span></div> | }}
 +
{| style="width:100%;border: 1px solid #DEDACF;margin-bottom:-1px;"
 
| style="width:48%;height:24px;padding: 0.5em 0 0 0.8em;" |{{TeamAbbr|{{{1|}}}|flag={{{2|}}}|{{{3|}}}|rows={{{rows|1}}}}}
 
| style="width:48%;height:24px;padding: 0.5em 0 0 0.8em;" |{{TeamAbbr|{{{1|}}}|flag={{{2|}}}|{{{3|}}}|rows={{{rows|1}}}}}
 
| style="width:4%;font-size:75%;" |vs.
 
| style="width:4%;font-size:75%;" |vs.
Line 7: Line 8:
 
| style="width:50%; white-space:nowrap;padding: 0.5em 0.5em 0.5em 0.8em;" | {{#if:{{{date|}}}|<div class=""><span class="datetime" style="visibility:hidden;font-size: 1px;">{{{date}}}</span><span class="countdown" style="float:left;"></span> {{#ifeq:{{{finished|}}}|true|{{{date}}}|{{#if:{{{stream|}}}|<span class="twitchlink" style="float:left;margin-left:5px;color:#6745A6;white-space:nowrap;">&#8594;  [http://twitch.tv/{{{stream|}}} {{{stream|}}}]{{#if:{{{stream2|}}}|<span class="twitchlink" style="color:#6745A6;white-space:nowrap;">, [http://twitch.tv/{{{stream2|}}} {{{stream2|}}}]</span>|}}</span>|}}}}</div>}}
 
| style="width:50%; white-space:nowrap;padding: 0.5em 0.5em 0.5em 0.8em;" | {{#if:{{{date|}}}|<div class=""><span class="datetime" style="visibility:hidden;font-size: 1px;">{{{date}}}</span><span class="countdown" style="float:left;"></span> {{#ifeq:{{{finished|}}}|true|{{{date}}}|{{#if:{{{stream|}}}|<span class="twitchlink" style="float:left;margin-left:5px;color:#6745A6;white-space:nowrap;">&#8594;  [http://twitch.tv/{{{stream|}}} {{{stream|}}}]{{#if:{{{stream2|}}}|<span class="twitchlink" style="color:#6745A6;white-space:nowrap;">, [http://twitch.tv/{{{stream2|}}} {{{stream2|}}}]</span>|}}</span>|}}}}</div>}}
 
| colspan="2" style="width:50%;text-align:right;overflow:hidden; text-overflow:ellipsis; max-width: 170px; vertical-align:middle; white-space:nowrap; font-size:11px; height:16px; margin-top:3px;padding-right:0.8em" | {{#if:{{{event|}}}|[[{{{event|}}}]]|}}
 
| colspan="2" style="width:50%;text-align:right;overflow:hidden; text-overflow:ellipsis; max-width: 170px; vertical-align:middle; white-space:nowrap; font-size:11px; height:16px; margin-top:3px;padding-right:0.8em" | {{#if:{{{event|}}}|[[{{{event|}}}]]|}}
|}&#10;</includeonly><noinclude>[[Category:Templates]]</noinclude>
+
|}&#10;</includeonly><noinclude>[[Category:Templates]]</noinclude><noinclude>{{documentation}}</noinclude>

Latest revision as of 19:17, 24 March 2021

Documentation (view - edit)

Used to put an upcoming match in the spotlight on the startpage.

This particular template displays teamname + an array of players, either on 1 line or 2.

  • For a simpler version with only playername or teamname, see {{Match}}.
  • For a version with 2 individual players with a common flag, see {{Match2on2}}.

Example

The code:

{{matchAbbr|Unholy Alliance|sefi|Milton & carapace|AeronautS|se|bps & locust|rows=2|date=20 February 2021 20:00|event=Money for nothin and gibs for free|info=Grand Final|stream=suddendeathTV}}

gives us:

Game in spotlight

  Grand Final  
Sweden & Finland Unholy Alliance
Milton & carapace
vs. Sweden AeronautS
bps & locust
suddendeathTV
Money for nothin and gibs for free

Parameters

| #1 |
team name
| #2 |
team flag
| #3 |
team lineup. No linked text. Separate with '&' or ','.
| #4 |
team2 name
| #5 |
team2 flag
| #6 |
team2 lineup. No linked text. Separate with '&' or ','.
|rows=
normally use '2', which puts lineups under team name. '1' will put lineup next to team name.
|date=
set the date and time of the match, in format: February 21, 2021 18:00 UTC. If the date is in the future, a countdown will show.
|event=
link to the event.
|info=
set to give match context, like "Division 1 Finals" or similar. Shows top-center.
|stream=
set twitch username for primary stream.
|stream2=
set twitch username for secondary stream.