Template:Goalscorers/sandbox
This is the template sandbox page for Template:Goalscorers (diff). See also the companion subpage for test cases. |
This template uses Lua: |
This template creates a list of goalscorers for association football or any other sports competitions. Assists are also supported.
Usage
editgoals
: Number of goals scored in the competitionmatches
: Number of matches played in the competitionongoing
: Any value will change the wording to present tense (remove once competition is complete)bold
: Any value will add a note that active players are in bold (remove once competition is complete)updated
: Allows a date of last update to be displayedgoalscorers
: Number of unique goalscorers (not including own goals)own goals
: Number of own goals
20 goals
,19 goals
, ...2 goals
,1 goal
,1 own goal
,2 own goals
, ...5 own goals
: parameters for listing the goalscorersassists
: Switches template to assists.20 assists
,19 assists
, ...2 assists
,1 assist
: parameters for listing the assists- When enabled, the following parameters are ignored:
goals
,matches
,own goals
,ongoing
lc
: Makes the first letter of the introductory sentence lower case. Allows a qualifying phrase before the goals scored and average per game statement.further
: Allows additional text to be added to the introductory paragraph. Can be used to add a golden boot winner.sep
: Punctuation to use before the text added by|further=
(default is fullstop).extra
: Allows text to be added in a new paragraph.source
Allows source to be included as footer.
Formatting
editGoalscorers should be separated by line and should be preceded by {{code|*}} (asterisk), along with a flag. One of the following football flag icon templates should be used:
*{{tl|Fbicon}}: men (senior)
*{{tl|Fboicon}}: men (Olympics)
*{{tl|Fbuicon}}: men (youth)
*{{tl|Fbwicon}}: women (senior)
*{{tl|Fbwuicon}}: women (youth)
Goalscorers should first be sorted alphabetically by national team, then by last name. Scorers of own goals should be followed by "(against OPPONENT)", where 'OPPONENT' is the team for which they scored. The opponent should not be linked, nor should the text be changed to a smaller size.
Example
editAn example of correct usage:
{{Goalscorers
|goals=19 |matches=4
|source=UEFA
|4 goals=
*{{fbicon|FRG}} [[Dieter Müller]]
|2 goals=
*{{fbicon|NED}} [[Ruud Geels]]
*{{fbicon|YUG}} [[Dragan Džajić]]
|1 goal=
*{{fbicon|TCH}} [[Karol Dobiaš]]
*{{fbicon|TCH}} [[Zdeněk Nehoda]]
*{{fbicon|TCH}} [[Anton Ondruš]]
*{{fbicon|TCH}} [[Ján Švehlík]]
*{{fbicon|TCH}} [[František Veselý]]
*{{fbicon|NED}} [[Willy van de Kerkhof]]
*{{fbicon|FRG}} [[Heinz Flohe]]
*{{fbicon|FRG}} [[Bernd Hölzenbein]]
*{{fbicon|YUG}} [[Josip Katalinski]]
*{{fbicon|YUG}} [[Danilo Popivoda]]
|1 own goal=
*{{fbicon|TCH}} [[Anton Ondruš]] (against Netherlands)
}}
This code produces the following (shown inside a green border):
There were 19 goals scored in 4 matches, for an average of 4.75 goals per match.
4 goals
2 goals
1 goal
1 own goal
- Anton Ondruš (against Netherlands)
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
matches | matches | no description | Unknown | required |
goals | goals | no description | Unknown | required |
ongoing | ongoing | no description | Unknown | optional |
bold | bold | no description | Unknown | optional |
assists | assists | no description | Unknown | optional |
players | players | no description | Unknown | optional |
own goals | own goals | no description | Unknown | optional |
further | further | no description | Unknown | optional |
extra | extra | no description | Unknown | optional |
30 goals | 30 goals | no description | Unknown | optional |
30 assists | 30 assists | no description | Unknown | optional |
29 goals | 29 goals | no description | Unknown | optional |
29 assists | 29 assists | no description | Unknown | optional |
28 goals | 28 goals | no description | Unknown | optional |
28 assists | 28 assists | no description | Unknown | optional |
27 goals | 27 goals | no description | Unknown | optional |
27 assists | 27 assists | no description | Unknown | optional |
26 goals | 26 goals | no description | Unknown | optional |
26 assists | 26 assists | no description | Unknown | optional |
25 goals | 25 goals | no description | Unknown | optional |
25 assists | 25 assists | no description | Unknown | optional |
24 goals | 24 goals | no description | Unknown | optional |
24 assists | 24 assists | no description | Unknown | optional |
23 goals | 23 goals | no description | Unknown | optional |
23 assists | 23 assists | no description | Unknown | optional |
22 goals | 22 goals | no description | Unknown | optional |
22 assists | 22 assists | no description | Unknown | optional |
21 goals | 21 goals | no description | Unknown | optional |
21 assists | 21 assists | no description | Unknown | optional |
20 goals | 20 goals | no description | Unknown | optional |
20 assists | 20 assists | no description | Unknown | optional |
19 goals | 19 goals | no description | Unknown | optional |
19 assists | 19 assists | no description | Unknown | optional |
18 goals | 18 goals | no description | Unknown | optional |
18 assists | 18 assists | no description | Unknown | optional |
17 goals | 17 goals | no description | Unknown | optional |
17 assists | 17 assists | no description | Unknown | optional |
16 goals | 16 goals | no description | Unknown | optional |
16 assists | 16 assists | no description | Unknown | optional |
15 goals | 15 goals | no description | Unknown | optional |
15 assists | 15 assists | no description | Unknown | optional |
14 goals | 14 goals | no description | Unknown | optional |
14 assists | 14 assists | no description | Unknown | optional |
13 goals | 13 goals | no description | Unknown | optional |
13 assists | 13 assists | no description | Unknown | optional |
12 goals | 12 goals | no description | Unknown | optional |
12 assists | 12 assists | no description | Unknown | optional |
11 goals | 11 goals | no description | Unknown | optional |
11 assists | 11 assists | no description | Unknown | optional |
10 goals | 10 goals | no description | Unknown | optional |
10 assists | 10 assists | no description | Unknown | optional |
9 goals | 9 goals | no description | Unknown | optional |
9 assists | 9 assists | no description | Unknown | optional |
8 goals | 8 goals | no description | Unknown | optional |
8 assists | 8 assists | no description | Unknown | optional |
7 goals | 7 goals | no description | Unknown | optional |
7 assists | 7 assists | no description | Unknown | optional |
6 goals | 6 goals | no description | Unknown | optional |
6 assists | 6 assists | no description | Unknown | optional |
5 goals | 5 goals | no description | Unknown | optional |
5 assists | 5 assists | no description | Unknown | optional |
4 goals | 4 goals | no description | Unknown | optional |
4 assists | 4 assists | no description | Unknown | optional |
3 goals | 3 goals | no description | Unknown | optional |
3 assists | 3 assists | no description | Unknown | optional |
2 goals | 2 goals | no description | Unknown | optional |
2 assists | 2 assists | no description | Unknown | optional |
1 goal | 1 goal | no description | Unknown | optional |
1 assist | 1 assist | no description | Unknown | optional |
1 own goal | 1 own goal | no description | Unknown | optional |
2 own goals | 2 own goals | no description | Unknown | optional |
3 own goals | 3 own goals | no description | Unknown | optional |
bottom | bottom | no description | Unknown | optional |
bottom_text | bottom_text | no description | Unknown | optional |
updated | updated | no description | Unknown | optional |
source | source | no description | Unknown | optional |