Difference between revisions of "Template:MatchClanLogo"
From QWiki
(Creating first version) |
m |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{#if: {{{info|}}} | <div style="width:100%;text-align: center;margin-bottom:-14px;margin-top: 8px;"><span style="background-color:#f0eee6;color:#444;border-radius:2px;border:1px solid #dedacf;vertical-align:text-top;padding-bottom:1px;font-size:75%;"> {{{info}}} </span></div> | }} | {{#if: {{{info|}}} | <div style="width:100%;text-align: center;margin-bottom:-14px;margin-top: 8px;"><span style="background-color:#f0eee6;color:#444;border-radius:2px;border:1px solid #dedacf;vertical-align:text-top;padding-bottom:1px;font-size:75%;"> {{{info}}} </span></div> | }} | ||
{| style="width:100%;border: 1px solid #DEDACF;margin-bottom:-1px;" | {| style="width:100%;border: 1px solid #DEDACF;margin-bottom:-1px;" | ||
| − | | style="width:6%;text-align:center;" |[[{{#var:teamcardimage}}|{{#if:{{{logosize1|}}}|{{{logosize1|}}}| | + | | style="width:6%;text-align:center;padding-left: 8px;" |[[{{#var:teamcardimage}}|{{#if:{{{logosize1|}}}|{{{logosize1|}}}|42x42px}}|center|link=]] |
| − | | style="width:42%;height:24px;padding: 0.5em 0 0 0. | + | | style="width:42%;height:24px;padding: 0.5em 0 0 0.5em;" |'''{{TeamAbbr|{{{1|}}}|{{{2|}}}|link=true|rows=2}}''' |
| style="width:4%;font-size:75%;" |vs. | | style="width:4%;font-size:75%;" |vs. | ||
| − | | style="width:42%;text-align:right;padding: 0.5em 0.5em 0 0. | + | | style="width:42%;text-align:right;padding: 0.5em 0.5em 0 0.5em;" |'''{{TeamAbbr|{{{3|}}}|{{{4|}}}|link=true|rows=2}}''' |
| − | | style="width:6%;text-align:center;" |[[{{#var:teamcardimage2}}|{{#if:{{{logosize2|}}}|{{{logosize2|}}}| | + | | style="width:6%;text-align:center;padding-right: 5px;" |[[{{#var:teamcardimage2}}|{{#if:{{{logosize2|}}}|{{{logosize2|}}}|42x42px}}|center|link=]] |
|- 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 21:21, 30 April 2025
Documentation (view - edit)
Used to put an upcoming match in the spotlight on the startpage.
This particular template displays bold teamname with logotype + an array of players on 2 lines.
- For a similar version with logotype but no players, see {{MatchClanLogoFocus}}.
- For a similar version without logotype, 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:
{{MatchClanLogo|Slackers|ParadokS, zero, razor, grisling|logo1=Logo clan slackers.png|logosize1=|Suddendeath|bps, cara, andeh, goblin|logo2=Logo clan suddendeath.png|logosize2=|date=4 May 2027 21:30|event=EQL Season 23|info=Gold Semi - '''Sun 21:30''' {{Abbr/CEST}}|stream=bps__}}
gives us:
Game in spotlight Gold Semi - Sun 21:30 CEST
|
|||||||||
Parameters
- | #1 |
- team name
- | #2 |
- team lineup. No linked text. Separate with '&' or ','.
- |logo1-2=
- filename to logotype for team 1 and 2 (omit "File:").
- |logosize1-2=
- customize logotype size for team 1 and 2 (leave blank sets 42px)
- | #3 |
- team2 name
- | #4 |
- team2 lineup. No linked text. Separate with '&' or ','.
- |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.