Difference between revisions of "Template:MatchEvent"
From QWiki
m (Width changes of bottom line (Streamlink competing with space of Infotext)) |
m (Margin fix) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{| style="width:100%;margin-bottom:-1px;border: 1px solid #DEDACF;" | + | <includeonly>{| style="width:100%;margin-bottom:-1px;border: 1px solid #DEDACF;margin-top: 8px;" |
| − | | colspan="2" style="width:100%;height:24px | + | | colspan="2" style="width:100%;height:24px;padding: 0.5em 0.5em 0 0.8em;mix-blend-mode:normal;" |'''{{TeamAbbr|{{{1|}}}|flag={{{2|}}}|{{{3|}}}|rows={{{rows|1}}}|link=true}}''' |
| + | | colspan="1" style="padding-right:5px;"|{{#if:{{{img|}}}|[[File:{{{img|}}}|{{{imgsize|}}}]]|}} | ||
|- style="vertical-align:middle; font-size:11px; height:16px; margin-top:3px;border-top:1px solid #DEDACF;background-color:#F0EEE6;" | |- style="vertical-align:middle; font-size:11px; height:16px; margin-top:3px;border-top:1px solid #DEDACF;background-color:#F0EEE6;" | ||
{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}} | {{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}} | ||
Latest revision as of 19:31, 7 May 2025
Documentation (view - edit)
Used to put an upcoming match in the spotlight on the startpage.
This particular template displays eventname + an array of players, either on 1 line or 2.
- For another version with only teamname + an array of players, see {{MatchAbbr}}.
- 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:
{{matchEvent|Australian DM2 Showdown 1|au|Phylum, Magnum, Egge, GS, tautheory, Swoop, Trent, Snoozer, Scott|rows=2|date=16 April 2021 09:00|event=Australian DM2 Showdown 1|info=Weekend event with Group games into Finals|stream=dracsqw}}
gives us:
Game in spotlight
|
|||||
Parameters
- | #1 |
- team name
- | #2 |
- team flag
- | #3 |
- team/players lineup. No linked text. Separate with '&' or ','.
- |img=
- Set path to image, without the "Link:" part.
- imgsize=
- Set with px, example 105px
- |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 bottom-right.
- |stream=
- set twitch username for primary stream.
- |stream2=
- set twitch username for secondary stream.