Template:Goal: Difference between revisions
m (1 revision imported) |
No edit summary |
||
Line 1: | Line 1: | ||
[[File:Soccerball shade.svg|13px|Goal|link=]]<!-- | [[File:Soccerball shade.svg|13px|Goal|link=]]<!-- | ||
-->{{#if: {{#if:{{{1|}}}|{{{1|}}}|{{{2|}}}}}| <small style="vertical-align: middle;">{{#if: {{{1|}}}|{{{1}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{1}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{2|}}}|{{#if:{{{1|}}}| }}{{#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|}}}}}| <small style="vertical-align: middle;">{{#if: {{{1|}}}|{{{1}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{1}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}}}{{#if: {{{2|}}}|{{#if:{{{1|}}}| }}{{#switch: {{{2|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[wikipedia:Penalty kick (association football)|pen.]]) |p =([[wikipedia:Penalty kick (association football)|p]]) | #default = ({{{2}}})}}}}</small>}}<!-- | ||
-->{{#if: {{{3<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{3}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{3}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{4|}}}| {{#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>}}}|, <small style="vertical-align: middle;">{{{3}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{3}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{4|}}}| {{#switch: {{{4|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[wikipedia:Penalty kick (association football)|pen.]]) |p =([[wikipedia:Penalty kick (association football)|p]]) | #default = ({{{4}}})}}}}</small>}}<!-- | ||
-->{{#if: {{{5<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{5}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{5}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{6|}}}| {{#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>}}}|, <small style="vertical-align: middle;">{{{5}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{5}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{6|}}}| {{#switch: {{{6|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[wikipedia:Penalty kick (association football)|pen.]]) |p =([[wikipedia:Penalty kick (association football)|p]]) | #default = ({{{6}}})}}}}</small>}}<!-- | ||
-->{{#if: {{{7<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{7}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{7}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{8|}}}| {{#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>}}}|, <small style="vertical-align: middle;">{{{7}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{7}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{8|}}}| {{#switch: {{{8|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[wikipedia:Penalty kick (association football)|pen.]]) |p =([[wikipedia:Penalty kick (association football)|p]]) | #default = ({{{8}}})}}}}</small>}}<!-- | ||
-->{{#if: {{{9<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{9}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{9}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{10|}}}| {{#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>}}}|, <small style="vertical-align: middle;">{{{9}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{9}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{10|}}}| {{#switch: {{{10|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[Penalty kick (association football)|pen.]]) |p =([[wikipedia:Penalty kick (association football)|p]]) | #default = ({{{10}}})}}}}</small>}}<!-- | ||
-->{{#if: {{{11<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{11}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{11}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{12|}}}| {{#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>}}}|, <small style="vertical-align: middle;">{{{11}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{11}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{12|}}}| {{#switch: {{{12|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[wikipedia:Penalty kick (association football)|pen.]]) |p =([[wikipedia:Penalty kick (association football)|p]]) | #default = ({{{12}}})}}}}</small>}}<!-- | ||
-->{{#if: {{{13<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{13}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{13}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{14|}}}| {{#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>}}}|, <small style="vertical-align: middle;">{{{13}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{13}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{14|}}}| {{#switch: {{{14|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[wikipedia:Penalty kick (association football)|pen.]]) |p =([[wikipedia:Penalty kick (association football)|p]]) | #default = ({{{14}}})}}}}</small>}}<!-- | ||
-->{{#if: {{{15<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{15}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{15}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{16|}}}| {{#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>}}}|, <small style="vertical-align: middle;">{{{15}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{15}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{16|}}}| {{#switch: {{{16|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[wikipedia:Penalty kick (association football)|pen.]]) |p =([[wikipedia:Penalty kick (association football)|p]]) | #default = ({{{16}}})}}}}</small>}}<!-- | ||
-->{{#if: {{{17<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{17}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{17}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{18|}}}| {{#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>}}}|, <small style="vertical-align: middle;">{{{17}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{17}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{18|}}}| {{#switch: {{{18|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[wikipedia:Penalty kick (association football)|pen.]]) |p =([[Penalty kick (association football)|p]]) | #default = ({{{18}}})}}}}</small>}}<!-- | ||
-->{{#if: {{{19<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{19}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{19}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{20|}}}| {{#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>}}}|, <small style="vertical-align: middle;">{{{19}}}{{`}}{{main other|{{#ifeq:{{Str rightmost|{{{19}}}|1}}|'|[[Category:Soccer template needing maintenance]]}}}}{{#if: {{{20|}}}| {{#switch: {{{20|}}} |o.g. =([[wikipedia:Own goal#Association football|o.g.]]) |pen. =([[wikipedia:Penalty kick (association football)|pen.]]) |p =([[wikipedia:Penalty kick (association football)|p]]) | #default = ({{{20}}})}}}}</small>}}<noinclude> | ||
{{documentation}} | {{documentation}} |
Latest revision as of 14:13, 14 June 2019
, {{{3}}}', {{{5}}}', {{{7}}}', {{{9}}}', {{{11}}}', {{{13}}}', {{{15}}}', {{{17}}}', {{{19}}}'
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.
- 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
{{goal}} →
{{goal|67}} →
67'{{goal||o.g.}} →
(o.g.){{goal|44|o.g.}} →
44' (o.g.){{goal|5||20||90+2|pen.}} →
5', 20', 90+2' (pen.){{goal|14||54|p|72||87}} →
14', 54' (p), 72', 87'
Note
Displaying only a note, without the time, is only supported for the first goal.
See also
- {{goal}}
- {{yel}} {{sent off}} {{sent off|1}} {{sent off|2}}
- {{subon}} {{suboff}}
- {{pengoal}} {{penmiss}}
- {{golden 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
TemplateData for Goal