Difference between revisions of "Template:Match2on2"
From QWiki
m (Tweaked margin to next Spotlight item when stacked) |
m (Added info= parameter (as other Match templates have)) |
||
Line 1: | Line 1: | ||
− | <includeonly>{| style="width:100%;border: 1px solid #DEDACF;margin-bottom:-1px;" | + | <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%;"> {{{info}}} </span></div> | }} |
+ | {| style="width:100%;border: 1px solid #DEDACF;margin-bottom:-1px;" | ||
| style="width:48%;height:24px;padding: 0.5em 0 0.5em 0.8em;color:#337ab7;" |{{#if:{{{1|}}}|<span style="white-space:nowrap;">{{flag/{{lc:{{{1}}}}}}} </span>|<span style="white-space:nowrap;">{{flag/tbd}} </span>}}[[{{{2|}}}]] & [[{{{3|}}}]] | | style="width:48%;height:24px;padding: 0.5em 0 0.5em 0.8em;color:#337ab7;" |{{#if:{{{1|}}}|<span style="white-space:nowrap;">{{flag/{{lc:{{{1}}}}}}} </span>|<span style="white-space:nowrap;">{{flag/tbd}} </span>}}[[{{{2|}}}]] & [[{{{3|}}}]] | ||
| style="width:4%;font-size:75%;" |vs. | | style="width:4%;font-size:75%;" |vs. |
Latest revision as of 09:59, 16 April 2021
Documentation (view - edit)
Used to put an upcoming match in the spotlight on the startpage.
This particular template displays 2 individual players with a common flag.
- For a version with player/teamname + an array of players, see {{MatchAbbr}}.
- For a version with only playername/teamname, see {{Match}}.
Example
The code:
{{match2on2|fi|fifi|fix|pl|insane|avenger|date=25 February 2022 20:00|event=Money for nothin and gibs for free|stream=Link}}
gives us: