Difference between revisions of "Template:Goal"

From Rigged Wiki
Jump to navigation Jump to search
m (1 revision)
m (Protected "Template:Goal" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
Line 21: Line 21:
:An optional parameter, shows what time the goal was scored.
:An optional parameter, shows what time the goal was scored.
;''note''
;''note''
:Another optional parameter, shows a note about the goal, such as "{{tt|o.g.|Own goal}}", "{{tt|pen.|Penalty kick}}", {{tt|corner|Corner kick}}, or other note.
:Another optional parameter, shows a note about the goal, such as "{{tt|o.g.|Own goal}}", "{{tt|pen.|Penalty kick}}", "{{tt|corner|Corner kick}}", or other note.


Up to five goals can be specified, as follows:
Up to five goals can be specified, as follows:
Line 40: Line 40:
* <code><nowiki>{{goal|5||20||90+2|pen.}}</nowiki> → </code>{{goal|5||20||90+2|pen.}}
* <code><nowiki>{{goal|5||20||90+2|pen.}}</nowiki> → </code>{{goal|5||20||90+2|pen.}}
* <code><nowiki>{{goal|14||54|pen.|87}}</nowiki> → </code>{{goal|14||54|pen.|87}}
* <code><nowiki>{{goal|14||54|pen.|87}}</nowiki> → </code>{{goal|14||54|pen.|87}}
== See also ==
:{{goal}} {{tl|goal}}
:{{yel}} {{tl|yel}} {{sent off}} {{tl|sent off}}
:{{subon}} {{tl|subon}} {{suboff}} {{tl|suboff}}
:{{pengoal}} {{tl|pengoal}} {{penmiss}} {{tl|penmiss}}
[[Category:Templates]]
[[Category:Templates]]
[[Category:Match details templates]]
</noinclude>

Latest revision as of 14:33, 30 November 2013

Goal {{{1}}}'{{{3}}}'{{{5}}}'{{{7}}}'{{{9}}}'{{{11}}}'{{{13}}}'{{{15}}}'{{{17}}}'{{{19}}}'{{{21}}}'
This template can be used to mark up a goal when displayed in the {{football box}} template. It supports up to five goals.

It is not intended for use in article prose: only in tables and templates.

Usage

{{goal|min|note}}

min
An optional parameter, shows what time the goal was scored.
note
Another optional parameter, shows a note about the goal, such as "o.g.", "pen.", "corner", or other note.

Up to five goals can be specified, as follows:

{{goal|min1|note1|min2|note2|min3|note3|min4|note4|min5|note5}}


{{goal|min1|note1|min2|note2|min3|note3|min4|note4|min5|note5}}

If there is no note, just leave the parameter in question blank. The pipe character must still be entered if further goals are added afterwards. If another goal is added after a goal with a note, only a single pipe is needed. However, between goals without notes, double piping "||" is necessary for the template to display all of the goals.

Examples

  • {{goal}} → Goal
  • {{goal|67}} → Goal 67'
  • {{goal|44|o.g.}} → Goal 44' (o.g.)
  • {{goal|90+2|pen.}} → Goal 90+2' (pen.)
  • {{goal|5||20||90+2|pen.}} → Goal 5'20'90+2' (pen.)
  • {{goal|14||54|pen.|87}} → Goal 14'54' (pen.)87'

See also

Goal {{goal}}
Booked {{yel}} Red card {{sent off}}
Substituted in {{subon}} Substituted off {{suboff}}
Scored {{pengoal}} Missed {{penmiss}}