Template:Goalscorers/doc: Difference between revisions
add description of intro parameter; update some other descriptions, reorder parameters →Usage |
there is no players parameter →Usage |
||
Line 15: | Line 15: | ||
*{{code|assists}}: Switches template to assists. |
*{{code|assists}}: Switches template to assists. |
||
**{{code|20 assists}}, {{code|19 assists}}, ... {{code|2 assists}}, {{code|1 assist}}: parameters for listing the assists |
**{{code|20 assists}}, {{code|19 assists}}, ... {{code|2 assists}}, {{code|1 assist}}: parameters for listing the assists |
||
**When enabled, the following parameters are ignored: {{code|goals}}, {{code|matches |
**When enabled, the following parameters are ignored: {{code|goals}}, {{code|matches}}, {{code|own goals}}, {{code|ongoing}} |
||
*{{code|intro}}: Allows additional text to be added to the opening sentence describing goals scored and average per game (a comma is inserted). |
*{{code|intro}}: Allows additional text to be added to the opening sentence describing goals scored and average per game (a comma is inserted). |
||
*{{code|lc}}: Makes the first letter of the introductory sentence lower case. Allows a qualifying phrase before the goals scored and average per game statement. Usually used with {{para|intro}}. |
*{{code|lc}}: Makes the first letter of the introductory sentence lower case. Allows a qualifying phrase before the goals scored and average per game statement. Usually used with {{para|intro}}. |
Revision as of 09:16, 6 October 2019
This is a documentation subpage for Template:Goalscorers. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template creates a list of goalscorers for association football or any other sports competitions. Assists are also supported.
Usage
goals
: 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
intro
: Allows additional text to be added to the opening sentence describing goals scored and average per game (a comma is inserted).lc
: Makes the first letter of the introductory sentence lower case. Allows a qualifying phrase before the goals scored and average per game statement. Usually used with|intro=
.further
: Allows an additional sentence to be added to the first line. Can be used to add a golden boot winner.extra
: Allows text to be added in a new paragraph.bottom_text
: Heading for the optional bottom information.bottom
: Optional information added below the goalscorers.source
Allows source to be included as footer.
Formatting
Goalscorers should be separated by line and should be preceded by *
(asterisk), along with a flag. One of the following football flag icon templates should be used:
- {{Fbicon}}: men (senior)
- {{Fboicon}}: men (Olympics)
- {{Fbuicon}}: men (youth)
- {{Fblicon}}: men (local)
- {{Fbwicon}}: women (senior)
- {{Fbwuicon}}: women (youth)
Goalscorers should first be sorted alphabetically by national team, then by 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
An 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)