Module:Standard icons
Appearance
![]() | 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. |
Usage
{{#invoke:Standard icons|getIconTable}}
returns a table with the key as alert types and value as the icon filename.
{{#invoke:Standard icons|doc}}
produces the icon list below
Icons
Script error: The function "doc" does not exist.
-- Module:Standard icons
local p = {}
local iconTable = {
["frequent-domain"] = "Font Awesome 5 solid chart-line.svg",
["prohibited-domain"] = "Font Awesome 5 solid ban.svg",
["new-domain"] = "Font Awesome 5 solid asterisk.svg",
["flagged-domain"] = "Font Awesome 5 solid exclamation-circle.svg",
alert = "Font Awesome 5 solid exclamation-circle.svg",
discuss = "Font Awesome 5 solid comments.svg",
info = "Font Awesome 5 solid info-circle.svg",
}
local labelTable = {
["frequent-domain"] = "Domain appears frequently in articles",
["prohibited-domain"] = "Prohibited domain appears in article",
["new-domain"] = "Unrecognized domain appears in article",
["flagged-domain"] = "Flagged domain appears in article",
alert = "Alert",
discuss = "New talk page thread",
info = "Information",
}
function p.getIconTable()
return iconTable
end
function p.getLabelTable()
return labelTable
end
return p