Difference between revisions of "Template:Goal"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(extend check to the remaining goals)
imported>Jonesey95
(too many braces)
 
Line 1: Line 1:
 
[[File:Soccerball shade.svg|13px|Goal|link=]]<!--
 
[[File:Soccerball shade.svg|13px|Goal|link=]]<!--
 
-->{{#if: {{#if:{{{1|}}}|{{{1|}}}|{{{2|}}}}}|&nbsp;<small style="vertical-align: middle;">{{#if: {{{1|}}}|{{{1}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{1}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{2|}}}|{{#if:{{{1|}}}|&nbsp;}}{{#switch: {{{2|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{2}}})}}}}</small>}}<!--
 
-->{{#if: {{#if:{{{1|}}}|{{{1|}}}|{{{2|}}}}}|&nbsp;<small style="vertical-align: middle;">{{#if: {{{1|}}}|{{{1}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{1}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{2|}}}|{{#if:{{{1|}}}|&nbsp;}}{{#switch: {{{2|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{2}}})}}}}</small>}}<!--
-->{{#if: {{{3<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{3}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{3}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{4|}}}|&nbsp;{{#switch: {{{4|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{4}}})}}}}</small>}}<!--
+
-->{{#if: {{{3<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{3}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{3}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{4|}}}|&nbsp;{{#switch: {{{4|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{4}}})}}}}</small>}}<!--
-->{{#if: {{{5<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{5}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{5}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{6|}}}|&nbsp;{{#switch: {{{6|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{6}}})}}}}</small>}}<!--
+
-->{{#if: {{{5<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{5}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{5}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{6|}}}|&nbsp;{{#switch: {{{6|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{6}}})}}}}</small>}}<!--
-->{{#if: {{{7<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{7}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{7}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{8|}}}|&nbsp;{{#switch: {{{8|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{8}}})}}}}</small>}}<!--
+
-->{{#if: {{{7<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{7}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{7}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{8|}}}|&nbsp;{{#switch: {{{8|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{8}}})}}}}</small>}}<!--
-->{{#if: {{{9<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{9}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{9}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{10|}}}|&nbsp;{{#switch: {{{10|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{10}}})}}}}</small>}}<!--
+
-->{{#if: {{{9<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{9}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{9}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{10|}}}|&nbsp;{{#switch: {{{10|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{10}}})}}}}</small>}}<!--
-->{{#if: {{{11<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{11}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{11}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{12|}}}|&nbsp;{{#switch: {{{12|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{12}}})}}}}</small>}}<!--
+
-->{{#if: {{{11<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{11}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{11}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{12|}}}|&nbsp;{{#switch: {{{12|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{12}}})}}}}</small>}}<!--
-->{{#if: {{{13<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{13}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{13}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{14|}}}|&nbsp;{{#switch: {{{14|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{14}}})}}}}</small>}}<!--
+
-->{{#if: {{{13<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{13}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{13}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{14|}}}|&nbsp;{{#switch: {{{14|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{14}}})}}}}</small>}}<!--
-->{{#if: {{{15<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{15}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{15}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{16|}}}|&nbsp;{{#switch: {{{16|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{16}}})}}}}</small>}}<!--
+
-->{{#if: {{{15<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{15}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{15}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{16|}}}|&nbsp;{{#switch: {{{16|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{16}}})}}}}</small>}}<!--
-->{{#if: {{{17<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{17}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{17}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{18|}}}|&nbsp;{{#switch: {{{18|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{18}}})}}}}</small>}}<!--
+
-->{{#if: {{{17<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{17}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{17}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{18|}}}|&nbsp;{{#switch: {{{18|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{18}}})}}}}</small>}}<!--
-->{{#if: {{{19<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{19}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{19}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{20|}}}|&nbsp;{{#switch: {{{20|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{20}}})}}}}</small>}}<noinclude>
+
-->{{#if: {{{19<includeonly>|</includeonly>}}}|,&nbsp;<small style="vertical-align: middle;">{{{19}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{19}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{20|}}}|&nbsp;{{#switch: {{{20|}}} |o.g. =([[Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{20}}})}}}}</small>}}<noinclude>
  
 
{{documentation}}
 
{{documentation}}

Latest revision as of 17:35, 16 December 2018

Goal{{{3}}}Template:`{{{5}}}Template:`{{{7}}}Template:`{{{9}}}Template:`{{{11}}}Template:`{{{13}}}Template:`{{{15}}}Template:`{{{17}}}Template:`{{{19}}}Template:`

Template documentation[view] [edit] [history] [purge]

Usage

Displays a goal icon. Two optional parameters are available to display more details about the goal. Multiple goals can be indicated by repeating these parameters. A maximum of ten goals are supported this way; if you need more, call the template multiple times.

{{goal|min1|note1|min2|note2|min3|note3...}}

  • min – Shows at what time the goal was scored. The template automatically inserts an apostrophe to represent "minutes".
  • note – Adds a note for the goal. The following notes will automatically be wikilinked: o.g., pen., p and corner.

Leave the note parameter blank if you don't need it, but don't forget its pipe character if another goal comes after it.

Examples

Note

Displaying only a note, without the time, is only supported for the first goal.

See also

Goal {{goal}}
Template:Yel {{yel}} Template:Sent off {{sent off}} Template:Sent off {{sent off|1}} Template:Sent off {{sent off|2}}
Template:Subon {{subon}} Template:Suboff {{suboff}}
Template:Pengoal {{pengoal}} Template:Penmiss {{penmiss}}
Golden goal {{golden goal}} Template:Silver goal {{silver goal}}

Tracking categories

Category:Soccer template needing maintenance (0): for templates using an apostrophe at the end of a minute value (remove the apostrophe to fix the error)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Goal

Signifies that a goal has been scored by showing picture of a small football
ParameterDescriptionTypeStatus
minutes 11
Time the first goal was scored
Example
15, 90+2
Stringsuggested
note 12
Note for first goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringsuggested
minutes 23
Time the second goal was scored
Example
15, 90+2
Stringoptional
note 24
Note for second goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringoptional
minutes 35
Time the third goal was scored
Example
15, 90+2
Stringoptional
note 36
Note for third goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringoptional
minutes 47
Time the fourth goal was scored
Example
15, 90+2
Stringoptional
note 48
Note for fourth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringoptional
minutes 59
Time the fifth goal was scored
Example
15, 90+2
Stringoptional
note 510
Note for fifth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringoptional
minutes 611
Time the sixth goal was scored
Example
15, 90+2
Stringoptional
note 612
Note for sixth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringoptional
minutes 713
Time the seventh goal was scored
Example
15, 90+2
Stringoptional
note 714
Note for seventh goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringoptional
minutes 815
Time the eighth goal was scored
Example
15, 90+2
Stringoptional
note 816
Note for eighth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringoptional
minutes 917
Time the ninth goal was scored
Example
15, 90+2
Stringoptional
note 918
Note for ninth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringoptional
minutes 1019
Time the tenth goal was scored
Example
15, 90+2
Stringoptional
note 1020
Note for tenth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
Example
o.g., pen., p, corner
Stringoptional

Format: inline

Test of raw TemplateData output:

Signifies that a goal has been scored by showing picture of a small football

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
minutes 11

Time the first goal was scored

Example
15, 90+2
Stringsuggested
note 12

Note for first goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringsuggested
minutes 23

Time the second goal was scored

Example
15, 90+2
Stringoptional
note 24

Note for second goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringoptional
minutes 35

Time the third goal was scored

Example
15, 90+2
Stringoptional
note 36

Note for third goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringoptional
minutes 47

Time the fourth goal was scored

Example
15, 90+2
Stringoptional
note 48

Note for fourth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringoptional
minutes 59

Time the fifth goal was scored

Example
15, 90+2
Stringoptional
note 510

Note for fifth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringoptional
minutes 611

Time the sixth goal was scored

Example
15, 90+2
Stringoptional
note 612

Note for sixth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringoptional
minutes 713

Time the seventh goal was scored

Example
15, 90+2
Stringoptional
note 714

Note for seventh goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringoptional
minutes 815

Time the eighth goal was scored

Example
15, 90+2
Stringoptional
note 816

Note for eighth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringoptional
minutes 917

Time the ninth goal was scored

Example
15, 90+2
Stringoptional
note 918

Note for ninth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringoptional
minutes 1019

Time the tenth goal was scored

Example
15, 90+2
Stringoptional
note 1020

Note for tenth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner

Example
o.g., pen., p, corner
Stringoptional