Difference between revisions of "Template:FootballBoxCollapsible"

From YouthHawk
Jump to: navigation, search
(update)
(update)
 
(9 intermediate revisions by one user not shown)
Line 1: Line 1:
<div class="vevent"><span class="summary" style="display: none;">{{{team1}}} v {{{team2}}}</span>
+
<div><span class="summary" style="display: none;">{{{team1}}} v {{{team2}}}</span>
{| cellspacing=0 class="collapsible collapsed" style="{{#if:{{{nobars|}}} | | border-top:1px solid #999999; border-bottom:1px solid #999999; margin-bottom: -1px;}} width: {{{size|100%}}}; background-color:{{FootballBoxCollapsible{{{competition}}}|result={{{result|}}}|bg={{{bg|}}}}}"  
+
{| cellspacing=0 class="mw-collapsible mw-collapsed" style="{{#if:{{{nobars|}}} | | border-top:1px solid #999999; border-bottom:1px solid #999999; margin-bottom: -1px;}} width: {{{size|85%}}};"  
 
|-
 
|-
| width={{#ifeq: {{{format}}}|1|28%|{{#ifeq: {{{format}}}|1.1|22%|{{#ifeq: {{{format}}}|1.2|28%|19%}}}}}} style="vertical-align:top" | <span style="white-space:nowrap;float:right;margin-left:.5em">{{{date}}}</span> {{ #if: {{{round|}}} | <span style="font-size: 85%;">{{{round}}}</span> | }}
+
| width={{#ifeq: {{{format}}}|1|28%|{{#ifeq: {{{format}}}|1.1|22%|{{#ifeq: {{{format}}}|1.2|28%|19%}}}}}} style="vertical-align:top" | <span style="font-size: 85%;white-space:nowrap;float:right;margin-left:.5em">{{{date}}}</span> {{ #if: {{{round|}}} | <span style="font-size: 85%;">{{{round}}}</span> | }}
 
| width={{#ifeq: {{{format}}}|1|19%|{{#ifeq: {{{format}}}|1.1|25%|{{#ifeq: {{{format}}}|1.2|19%|23%}}}}}} style="text-align:right;vertical-align:top" | '''<span class="fn org">{{{team1}}}</span>'''
 
| width={{#ifeq: {{{format}}}|1|19%|{{#ifeq: {{{format}}}|1.1|25%|{{#ifeq: {{{format}}}|1.2|19%|23%}}}}}} style="text-align:right;vertical-align:top" | '''<span class="fn org">{{{team1}}}</span>'''
| width={{#ifeq: {{{format}}}|1|8%|{{#ifeq: {{{format}}}|1.1|8%|{{#ifeq: {{{format}}}|1.2|8%|12%}}}}}} style="text-align:center;vertical-align:top" | <span style="white-space:nowrap; display:inline;">'''{{#if: {{{score|}}} | {{{score}}} | v }}'''{{#if:{{{aet|}}}|<span style="font-size:85%"> ([[Overtime (sports)#Association football|a.e.t.]])</span> }}</span>{{ #if: {{{aggregatescore|}}} | <br><span style="font-size: 85%">('''{{{aggregatescore}}}''' [[Playoff format#Total points series (aggregate)|agg.]])</span> | }}{{ #if: {{{penaltyscore|}}} | <br><span style="font-size:85%">('''{{{penaltyscore}}}''' [[Penalty shoot-out (association football)|p]])</span> | }}
+
| width={{#ifeq: {{{format}}}|1|8%|{{#ifeq: {{{format}}}|1.1|8%|{{#ifeq: {{{format}}}|1.2|8%|12%}}}}}} style="text-align:center;vertical-align:top" | <span style="white-space:nowrap; display:inline;">'''{{#if: {{{score|}}} | {{{score}}} | v }}'''{{#if:{{{aet|}}}|<span style="font-size:85%"> (aet)</span> }}</span>{{ #if: {{{aggregatescore|}}} | <br><span style="font-size: 85%">('''{{{aggregatescore}}}'''agg)</span> | }}{{ #if: {{{penaltyscore|}}} | <br><span style="font-size:85%">('''{{{penaltyscore}}}''' pens)</span> | }}
 
| width={{#ifeq: {{{format}}}|1|19%|{{#ifeq: {{{format}}}|1.1|19|{{#ifeq: {{{format}}}|1.2|26%|23%}}}}}} style="vertical-align:top" | '''<span class="fn org">{{{team2}}}</span>'''
 
| width={{#ifeq: {{{format}}}|1|19%|{{#ifeq: {{{format}}}|1.1|19|{{#ifeq: {{{format}}}|1.2|26%|23%}}}}}} style="vertical-align:top" | '''<span class="fn org">{{{team2}}}</span>'''
 
! width={{#ifeq: {{{format}}}|1|26%|{{#ifeq: {{{format}}}|1.1|26%|{{#ifeq: {{{format}}}|1.2|19%|23%}}}}}} style="text-align:left;vertical-align:top;font-weight:normal" | {{ #if: {{{location|}}} | <span style="font-size:85%;">{{{location}}}</span> | <span class="location" style="font-size:85%;">{{{stadium}}}</span> }}
 
! width={{#ifeq: {{{format}}}|1|26%|{{#ifeq: {{{format}}}|1.1|26%|{{#ifeq: {{{format}}}|1.2|19%|23%}}}}}} style="text-align:left;vertical-align:top;font-weight:normal" | {{ #if: {{{location|}}} | <span style="font-size:85%;">{{{location}}}</span> | <span class="location" style="font-size:85%;">{{{stadium}}}</span> }}
Line 13: Line 13:
 
| style="vertical-align:top;" | {{{goals2|}}}
 
| style="vertical-align:top;" | {{{goals2|}}}
 
| style="vertical-align:top;" | {{ #if: {{{location|}}} | {{ #if: {{{stadium|}}} | Stadium: <span class="location">{{{stadium}}}</span><br> | }} }} {{ #if: {{{attendance|}}} | Attendance: {{{attendance}}}<br> | }}{{ #if: {{{referee|}}} | Referee: {{{referee}}}<br>  | }}
 
| style="vertical-align:top;" | {{ #if: {{{location|}}} | {{ #if: {{{stadium|}}} | Stadium: <span class="location">{{{stadium}}}</span><br> | }} }} {{ #if: {{{attendance|}}} | Attendance: {{{attendance}}}<br> | }}{{ #if: {{{referee|}}} | Referee: {{{referee}}}<br>  | }}
| style="display:none" | <!-- fix for empty line -->
 
 
{{ #ifexpr:{{#if:{{{penalties1|}}}|1|0}} or {{#if:{{{penalties2|}}}|1|0}} | {{!}}-
 
{{ #ifexpr:{{#if:{{{penalties1|}}}|1|0}} or {{#if:{{{penalties2|}}}|1|0}} | {{!}}-
 
{{!}} rowspan="2" {{!}}&nbsp;
 
{{!}} rowspan="2" {{!}}&nbsp;
 
{{!}} &nbsp;
 
{{!}} &nbsp;
{{!}} style="text-align:center;"{{!}}'''[[Penalty shoot-out (association football){{!}}Penalties]]'''
+
{{!}} style="text-align:center;"{{!}}'''Penalties'''
 
{{!}}- style="font-size:85%"
 
{{!}}- style="font-size:85%"
 
{{!}} style="text-align:right;vertical-align:top;"{{!}} {{{penalties1|}}}
 
{{!}} style="text-align:right;vertical-align:top;"{{!}} {{{penalties1|}}}
Line 24: Line 23:
 
| }}
 
| }}
 
|}</div>
 
|}</div>
 +
 +
<noinclude>
 +
== Usage ==
 +
| date      =
 +
| time      =
 +
| team1      =
 +
| score      =
 +
| team2      =
 +
| goals1    =
 +
| goals2    =
 +
| penalties1 =
 +
| penaltyscore =
 +
| penalties2 =
 +
| stadium    =
 +
| attendance =
 +
| referee    =
 +
| report    =
 +
| class      =
 +
</noinclude>

Latest revision as of 12:45, 29 August 2017

{{{date}}} {{{team1}}} v {{{team2}}} {{{stadium}}}


Usage

| date       = 
| time       = 
| team1      = 
| score      =
| team2      = 
| goals1     =
| goals2     =
| penalties1 = 
| penaltyscore =
| penalties2 =
| stadium    =
| attendance =
| referee    =
| report     =
| class      =