![]() |
Congratulations /co/! | ![]() |
---|---|---|
Winners of the 2025 4chan Spring Babby Cup |
Difference between revisions of "Template:Match details"
Jump to navigation
Jump to search
m |
Noteperson (talk | contribs) (Fixed template so bar is symmetric, rather than squared off on the left end and rounded on the right) |
||
Line 1: | Line 1: | ||
{| width="100%" style="background: transparent; margin-top: 5px; margin-bottom: 5px;" | {| width="100%" style="background: transparent; margin-top: 5px; margin-bottom: 5px;" | ||
|- | |- | ||
| | | | ||
{| width="35%" align="center" style="text-align: center; color: #FFF; background: #8697af; box-shadow: 0px 0px 5px #888; text-shadow:0.0em 0.1em 0.2em #000; {{radiustop|100px;}}" cellspacing="0" cellpadding="0" | {| width="35%" align="center" style="text-align: center; color: #FFF; background: #8697af; box-shadow: 0px 0px 5px #888; text-shadow:0.0em 0.1em 0.2em #000; {{radiustop|100px;}}" cellspacing="0" cellpadding="0" | ||
|- | |- | ||
! {{{day|1}}} {{{month|January}}}, {{{year|1900}}} {{#if:{{{time|}}}|–|}} {{{time|}}} {{#if:{{{time|}}}|UTC|}} | ! {{{day|1}}} {{{month|January}}}, {{{year|1900}}} {{#if:{{{time|}}}|–|}} {{{time|}}} {{#if:{{{time|}}}|UTC|}} | ||
|} | |} | ||
{| width="75%" align="center" style="background: #f7d020; box-shadow: 0px 0px 5px #888; {{radiusbottom|100px;}}" cellspacing="0" cellpadding="0" | {| width="75%" align="center" style="background: #f7d020; box-shadow: 0px 0px 5px #888; {{radiusbottom|100px;}}" cellspacing="0" cellpadding="0" | ||
|- | |- | ||
| width="40%" | | | width="40%" | | ||
{| width="100%" align="center" style="background: {{gradient|left|#{{{hex1|ff0000}}}, #f7d020 | {| width="100%" align="center" style="{{radiustl}}; {{radiusbl|60px}}; background: {{gradient|left|#{{{hex1|ff0000}}}, #f7d020}}; border-top: 1px solid #a0a0a0; border-bottom: 1px solid #a0a0a0; border-left: 1px solid #a0a0a0;" cellspacing="0" cellpadding="0" | ||
|- | |- | ||
| | | | ||
{| width="93%" style=" | {| align="left" width="93%" style="{{radiustl}}; {{radiusbl|60px}}; background: transparent; margin-left: 15px; margin-right: 15px;" cellspacing="0" cellpadding="0" | ||
|- | |- | ||
| style=" | | align="left" style="{{radiustl}}; {{radiusbl|60px}}; padding-left: 30px; background: #dfdfdf; border-left: 1px solid #a0a0a0;" | {{team away|{{{team1|m}}}}} | ||
|} | |} | ||
|} | |} | ||
| width="20%" style="background: transparent; border-top: 1px solid #a0a0a0; border-bottom: 1px solid #a0a0a0;" | | | width="20%" style="background: transparent; border-top: 1px solid #a0a0a0; border-bottom: 1px solid #a0a0a0;" | | ||
{| width="100%" align="center" style="background: transparent; padding-top: 3px; padding-bottom: 3px;" cellspacing="0" cellpadding="0" | {| width="100%" align="center" style="background: transparent; padding-top: 3px; padding-bottom: 3px;" cellspacing="0" cellpadding="0" | ||
|- | |- | ||
! <span style="font-size: 120%; color:white;text-shadow:0.0em 0.1em 0.2em #000;">{{#if:{{{score1|}}}|{{{score1|0}}} - {{{score2|0}}}|v}} {{#switch: {{{ot|}}}|yes=(O.T.)|}}</span> | ! <span style="font-size: 120%; color:white;text-shadow:0.0em 0.1em 0.2em #000;">{{#if:{{{score1|}}}|{{{score1|0}}} - {{{score2|0}}}|v}} {{#switch: {{{ot|}}}|yes=(O.T.)|}}</span> | ||
|} | |} | ||
| width="40%" | | | width="40%" | | ||
{| width="100%" align="center" style="background: {{gradient|right|#{{{hex2|ff8080}}}, #f7d020}} {{radiustr}} {{radiusbr|60px}}; border-top: 1px solid #a0a0a0; border-bottom: 1px solid #a0a0a0; border-right: 1px solid #a0a0a0;" cellspacing="0" cellpadding="0" | {| width="100%" align="center" style="background: {{gradient|right|#{{{hex2|ff8080}}}, #f7d020}} {{radiustr}} {{radiusbr|60px}}; border-top: 1px solid #a0a0a0; border-bottom: 1px solid #a0a0a0; border-right: 1px solid #a0a0a0;" cellspacing="0" cellpadding="0" | ||
|- | |- | ||
| | | | ||
{| align="right" width="93%" style="background: transparent; {{radiustr}} {{radiusbr|60px}} {{radiustl}} {{radiusbr|60px}}; margin-left: 15px; margin-right: 15px;" cellspacing="0" cellpadding="0" | {| align="right" width="93%" style="background: transparent; {{radiustr}} {{radiusbr|60px}} {{radiustl}} {{radiusbr|60px}}; margin-left: 15px; margin-right: 15px;" cellspacing="0" cellpadding="0" | ||
|- | |- | ||
| align="right" style="padding-right: 30px; background: #dfdfdf; {{radiustr}} {{radiusbr|60px}} {{radiustl|60px}} border-right: 1px solid #a0a0a0;" | {{team home|{{{team2|m}}}}} | | align="right" style="padding-right: 30px; background: #dfdfdf; {{radiustr}} {{radiusbr|60px}} {{radiustl|60px}} border-right: 1px solid #a0a0a0;" | {{team home|{{{team2|m}}}}} | ||
|} | |} | ||
|} | |} | ||
|} | |} | ||
{{#if: {{{penalty|}}}|| | {{#if: {{{penalty|}}}|| | ||
{{#if: {{{score1|}}}| | {{#if: {{{score1|}}}| |
Revision as of 02:35, 27 March 2025
|
Example:
Normal match
{{Match details |day=5 |month=April |year=2012 |time=19:00 |hex1=ff0000 |hex2=ff00ff |team1=m |team2=a |score1=1 |score2=1 |goal1=Alteisen {{goal|25}} |goal2=Mugi {{goal|81}} }}
Turns out as:
|
Match with extra time
{{Match details |day=5 |month=April |year=2012 |time=19:00 |hex1=ff0000 |hex2=ff00ff |team1=m |team2=a |score1=1 |score2=1 |goal1=Alteisen {{goal|25}}<br>Kamen Rider {{goal|99}} |goal2=Mugi {{goal|81||120}} |ot=yes }}
Turns out as:
|
Match with penalties
{{Match details |day=5 |month=April |year=2012 |time=19:00 |hex1=ff0000 |hex2=ff00ff |team1=m |team2=a |score1=1 |score2=1 |goal1=Alteisen {{goal|25}} |goal2=Mugi {{goal|81}} |penalty=yes |pk1=Alteisen {{pengoal}}<br>Alteisen {{pengoal}}<br>Alteisen {{penmiss}}<br>Alteisen {{pengoal}}<br>Alteisen {{pengoal}} |pk2={{pengoal}} Mugi<br>{{pengoal}} Mugi<br>{{penmiss}} Mugi<br>{{pengoal}} Mugi<br>{{pengoal}} Mugi }}
Turns out as:
|
It's based on the prominent color of the team kit. If the score ends in a draw, just add 0 in both score parameters. When adding more than a goal, use <br> to go to the next line.