Difference between revisions of "Template:MatchAbbr/doc"

From QWiki
m (Updated doc)
m (Expanded explanation of parameters, including the new 'info')
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
This particular template displays <mark>teamname + an array of players</mark>, either on 1 line or 2.<br />
 
This particular template displays <mark>teamname + an array of players</mark>, either on 1 line or 2.<br />
For a simpler version with only playername or teamname, see {{Tl|Match}}.
+
* For a simpler version with only playername or teamname, see {{Tl|Match}}.
 +
* For a version with 2 individual players with a common flag, see {{Tl|Match2on2}}.
  
 
== Example ==
 
== Example ==
 
The code:
 
The code:
<pre>{{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|stream=suddendeathTV}}</pre>
+
<pre>{{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}}</pre>
  
gives us:
+
gives us:{{Col}}
<div class="col-md-6">
+
===Game in spotlight===
===Games in spotlight===
+
{{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}}
{{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|stream=suddendeathTV}}
+
{{Col-break}}
 +
{{EndCol}}
  
===Tournaments===
+
== Parameters ==
{{Upcoming}}
+
;| #1 |
{{Event|Upcoming tournament 1|date=?|link=false|i=}}
+
:team name
{{Event|Upcoming tournament 2|date=?|link=false|i=}}
+
;| #2 |
{{Endcal}}
+
:team flag
<br />
+
;| #3 |
</div>
+
: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: <mark>February 21, 2021 18:00 UTC</mark>. 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.

Latest revision as of 19:34, 24 March 2021

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.