Module:Goalscorers
Appearance
This template shows football (soccer) goalscorers, and is used on many soccer pages.
| This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
| This module is currently under extended confirmed protection. Extended confirmed protection prevents edits from all unregistered editors and registered users with fewer than 30 days tenure and 500 edits. The policy on community use specifies that extended confirmed protection can be applied to combat disruption, if semi-protection has proven to be ineffective. Extended confirmed protection may also be applied to enforce arbitration sanctions. Please discuss any changes on the talk page; you may submit an edit request to ask for uncontroversial changes supported by consensus. |
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 FIFA Arab Cup
- 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/2027 FIFA Women's World Cup qualification (UEFA)
- 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