link = true,
},
wikipedia = {
image = "Wikipedia-logo.svg",
tooltip = "Wikipedia page",
link = true,
},
commons = {
image = "Commons-logo.svg",
tooltip = "Commons page",
link = false,
},
wikiquote = {
image = "Wikiquote-logo.svg",
tooltip = "Wikiquote page",
link = false,
},
wikiversity = {
image = "Wikiversity logo 2017.svg",
tooltip = "Wikiversity page",
link = true,
},
wikibooks = {
image = "Wikibooks-logo.svg",
tooltip = "Wikibooks page",
link = true,
},
wikisource = {
image = "Wikisource-logo.svg",
tooltip = "Wikisource page",
link = true,
},
wiktionary = {
image = "Wiktionary-logo.svg",
tooltip = "Wiktionary page",
link = true,
},
wikinews = {
image = "Wikinews-logo.svg",
tooltip = "Wikinews page",
link = true,
},
wikispecies = {
image = "Wikispecies-logo.svg",
tooltip = "Wikispecies page",
link = true,
},
wikidata = {
image = "Wikidata-logo.svg",
tooltip = "Wikidata page",
link = false,
},
wikivoyage = {
image = "Wikivoyage-logo.svg",
tooltip = "Wikivoyage page",
link = true,
},
mediawiki = {
image = "MediaWiki-2020-icon.svg",
tooltip = "MediaWiki",
link = true,
},
phabricator = {
aliases = {"phab"},
image = "Favicon-Phabricator-WM.svg",
tooltip = "Phabricator",
link = false,
},
wikitech = {
image = "Wikitech-2021-blue-icon.svg",
tooltip = "Wikitech",
link = true,
},
meta = {
image = "Wikimedia Community Logo.svg",
tooltip = "Meta-wiki page",
link = false,
},
four = {
aliases = {"4a"},
image = "Four Award.svg",
tooltip = "Four Award",
link = false,
},
million = {
image = "Million award logo.svg",
tooltip = "Million Award",
link = true,
},
module = {
image = "Lua-logo-nolabel.svg",
tooltip = "Module",
link = false,
},
vital = {
image = "Círculos_Concéntricos.svg",
tooltip = "Vital article",
link = false,
},
potd = {
image = "Wikipedia-logo.svg",
tooltip = "Picture of the Day",
link = true,
},
draft = {
image = "Symbol draft class.svg",
tooltip = "Draft-Class article",
link = true,
},
user = {
image = "Symbol user class.svg",
tooltip = "User-Class article",
link = false,
},
info = {
image = "Information icon.svg",
tooltip = "Information",
link = false,
},
discussionnotificaion = {
image = "Echo edit-user-talk icon.svg",
tooltip = "Discussion",
link = false,
},
alert = {
image = "OOjs UI icon alert.svg",
tooltip = "Black alert",
link = false,
},
['alert-imagewarning'] = {
image = "OOjs UI icon alert image warning.svg",
tooltip = "Alert",
link = false,
},
['alert-constructive'] = {
image = "OOjs UI icon alert-constructive.svg",
tooltip = "Green alert",
link = false,
},
['alert-blackred'] = {
image = "OOjs UI icon alert destructive black-darkred.svg",
tooltip = "Black, white, and red alert",
link = false,
},
barnstar2 = {
image = "Original Barnstar Hires.svg",
tooltip = "Original barnstar hires",
link = false,
},
barnstar = {
image = "Original Barnstar.png",
tooltip = "Original barnstar",
link = false,
},
_DEFAULT = {
image = "Symbol question.svg",
link = false,
}
}  
---
-- End icon data
---  
-- Make aliases work the same as normal keys, and remove the "aliases" subtables.
local ret= {}
for code, iconData in pairs(data) do
iconData.canonicalCode = code
if iconData.aliases then
for _, alias in ipairs(iconData.aliases) do
ret[alias] = iconData
end
iconData.aliases = nil
end
ret[code] = iconData
end  
return ret