Difference between revisions of "Template:Goal/sandbox"
imported>Jts1882 (disable noicon demo) |
imported>Jonesey95 (test for ' character at end of goal string) |
||
| Line 1: | Line 1: | ||
| − | < | + | [[File:Soccerball shade.svg|13px|Goal|link=]]<!-- |
| − | :{{ | + | -->{{#if: {{#if:{{{1|}}}|{{{1|}}}|{{{2|}}}}}| <small style="vertical-align: middle;">{{#if: {{{1|}}}|{{{1}}}{{`}}{{#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: {{{3<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{3}}}{{`}}{{#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: {{{5<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{5}}}{{`}}{{#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: {{{7<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{7}}}{{`}}{{#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: {{{9<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{9}}}{{`}}{{#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: {{{11<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{11}}}{{`}}{{#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: {{{13<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{13}}}{{`}}{{#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: {{{15<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{15}}}{{`}}{{#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: {{{17<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{17}}}{{`}}{{#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: {{{19<includeonly>|</includeonly>}}}|, <small style="vertical-align: middle;">{{{19}}}{{`}}{{#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> | ||
| + | |||
| + | {{documentation}} | ||
| + | |||
| + | <!-- Categories and interwikis go on /doc --> | ||
| + | |||
| + | </noinclude> | ||
Latest revision as of 14:20, 16 December 2018
, {{{3}}}Template:`, {{{5}}}Template:`, {{{7}}}Template:`, {{{9}}}Template:`, {{{11}}}Template:`, {{{13}}}Template:`, {{{15}}}Template:`, {{{17}}}Template:`, {{{19}}}Template:`
| This is the template sandbox page for Template:Goal (diff). See also the companion subpage for test cases. |
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
{{goal}} →
{{goal|67}} →
67Template:`{{goal||o.g.}} →
(o.g.){{goal|44|o.g.}} →
44Template:` (o.g.){{goal|5||20||90+2|pen.}} →
5Template:`, 20Template:`, 90+2Template:` (pen.){{goal|14||54|p|72||87}} →
14Template:`, 54Template:` (p), 72Template:`, 87Template:`
Note
Displaying only a note, without the time, is only supported for the first goal.
See also
{{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}} 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
TemplateData for Goal
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| minutes 1 | 1 | Time the first goal was scored
| String | suggested |
| note 1 | 2 | Note for first goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | suggested |
| minutes 2 | 3 | Time the second goal was scored
| String | optional |
| note 2 | 4 | Note for second goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 3 | 5 | Time the third goal was scored
| String | optional |
| note 3 | 6 | Note for third goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 4 | 7 | Time the fourth goal was scored
| String | optional |
| note 4 | 8 | Note for fourth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 5 | 9 | Time the fifth goal was scored
| String | optional |
| note 5 | 10 | Note for fifth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 6 | 11 | Time the sixth goal was scored
| String | optional |
| note 6 | 12 | Note for sixth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 7 | 13 | Time the seventh goal was scored
| String | optional |
| note 7 | 14 | Note for seventh goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 8 | 15 | Time the eighth goal was scored
| String | optional |
| note 8 | 16 | Note for eighth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 9 | 17 | Time the ninth goal was scored
| String | optional |
| note 9 | 18 | Note for ninth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 10 | 19 | Time the tenth goal was scored
| String | optional |
| note 10 | 20 | Note for tenth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
Format: inline
Signifies that a goal has been scored by showing picture of a small football
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| minutes 1 | 1 | Time the first goal was scored
| String | suggested |
| note 1 | 2 | Note for first goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | suggested |
| minutes 2 | 3 | Time the second goal was scored
| String | optional |
| note 2 | 4 | Note for second goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 3 | 5 | Time the third goal was scored
| String | optional |
| note 3 | 6 | Note for third goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 4 | 7 | Time the fourth goal was scored
| String | optional |
| note 4 | 8 | Note for fourth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 5 | 9 | Time the fifth goal was scored
| String | optional |
| note 5 | 10 | Note for fifth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 6 | 11 | Time the sixth goal was scored
| String | optional |
| note 6 | 12 | Note for sixth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 7 | 13 | Time the seventh goal was scored
| String | optional |
| note 7 | 14 | Note for seventh goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 8 | 15 | Time the eighth goal was scored
| String | optional |
| note 8 | 16 | Note for eighth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 9 | 17 | Time the ninth goal was scored
| String | optional |
| note 9 | 18 | Note for ninth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| minutes 10 | 19 | Time the tenth goal was scored
| String | optional |
| note 10 | 20 | Note for tenth goal. The following notes will automatically be wikilinked: o.g., pen., p and corner
| String | optional |
| The above documentation is transcluded from Template:Goal/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |