Module:Goalscorers
Appearance
This template shows football (soccer) goalscorers, and is used on many soccer pages.
![]() | This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
Data subpages
- Goalscorers/data/1960 European Nations' Cup qualifying
- Goalscorers/data/1964 European Nations' Cup qualifying
- Goalscorers/data/1998 FIFA World Cup qualification (CONCACAF)
- Goalscorers/data/2002 FIFA World Cup qualification (CONCACAF)
- Goalscorers/data/2006 FIFA World Cup qualification (AFC)
- Goalscorers/data/2006 FIFA World Cup qualification (CONCACAF)
- Goalscorers/data/2020–21 UEFA Nations League
- Goalscorers/data/2022 FIFA World Cup qualification (AFC)
- Goalscorers/data/2022 FIFA World Cup qualification (CAF)
- Goalscorers/data/2022 FIFA World Cup qualification (CONCACAF)
- Goalscorers/data/2022 FIFA World Cup qualification (UEFA)
- Goalscorers/data/2022–23 UEFA Nations League
- Goalscorers/data/2022–23 UEFA Nations League/sandbox
- Goalscorers/data/2023 AFC Asian Cup qualification
- Goalscorers/data/2024–25 UEFA Nations League
- Goalscorers/data/2025 UEFA Women's Nations League
- Goalscorers/data/2026 AFC Women's Asian Cup
- Goalscorers/data/2026 CONCACAF W Championship
- Goalscorers/data/2026 FIFA World Cup qualification (AFC)
- Goalscorers/data/2026 FIFA World Cup qualification (CAF)
- Goalscorers/data/2026 FIFA World Cup qualification (CONCACAF)
- Goalscorers/data/2026 FIFA World Cup qualification (OFC)
- Goalscorers/data/2026 FIFA World Cup qualification (UEFA)
- Goalscorers/data/2026 Women's Africa Cup of Nations
- Goalscorers/data/2027 AFC Asian Cup qualification
- Goalscorers/data/Country codes
- Goalscorers/data/UEFA Euro 1968 qualifying
- Goalscorers/data/UEFA Euro 1972 qualifying
- Goalscorers/data/UEFA Euro 1976 qualifying
- Goalscorers/data/UEFA Euro 1980 qualifying
- Goalscorers/data/UEFA Euro 1984 qualifying
- Goalscorers/data/UEFA Euro 1988 qualifying
- Goalscorers/data/UEFA Euro 1992 qualifying
- Goalscorers/data/UEFA Euro 1996 qualifying
- Goalscorers/data/UEFA Euro 2000 qualifying
- Goalscorers/data/UEFA Euro 2004 qualifying
- Goalscorers/data/UEFA Euro 2008 qualifying
- Goalscorers/data/UEFA Euro 2012 qualifying
- Goalscorers/data/UEFA Euro 2016 qualifying
- Goalscorers/data/UEFA Euro 2020 qualifying
- Goalscorers/data/UEFA Euro 2024 qualifying
- Goalscorers/data/doc
- Goalscorers/data/test competition
Usage
{{#invoke:Goalscorers|main}}
Used by template {{goalscorers}}.
require('Module:No globals');
local p = {}
local error_msg = '<span style=\"font-size:100%\" class=\"error\"><code style=\"color:inherit; border:inherit; padding:inherit;\">|_template=</code> missing or empty</span>';
-- data for goals scored held in module subpages, e.g. "Module:Goalscorers/data/UEFA Euro 2016 qualifying"
local data = {} --[[ parameters containing data help in three tables
data.rounds = {} -- group, play-off
data.goalscorers = {} -- player, country, goals in each round)
data.owngoalscorers = {} -- player, country, goals in each round)
data.updated = {} -- date of latest update (month, day, year)
--]]
local templateArgs = {} -- contains arguments from template invoking module
local function getArgs(frame)
local parents = mw.getCurrentFrame():getParent()
for k,v in pairs(parents.args) do
--check content
if v and v ~= "" then
templateArgs[k]=v --parents.args[k]
end
end
for k,v in pairs(frame.args) do
--check content
if v and v ~= "" then
templateArgs[k]=v --parents.args[k]
end
end
-- allow empty caption to blank default
--if parents.args['caption'] then templateArgs['caption'] = parents.args['caption'] end
end
function p.main(frame)
return ("no goals to report")
end
return p