Module:Standard icons
Jump to navigation
Jump to search
| File:Greek lc beta icon.svg | 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. |
Usage
[edit source]{{#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
[edit source]- File:Font Awesome 5 solid comments.svg
discuss - File:Font Awesome 5 solid ban.svg
prohibited-domain - File:Font Awesome 5 solid info-circle.svg
info - File:Font Awesome 5 solid chart-line.svg
frequent-domain - File:Font Awesome 5 solid exclamation-circle.svg
flagged-domain - File:Font Awesome 5 solid robot.svg
bot - File:Font Awesome 5 solid exclamation-circle.svg
alert - File:Font Awesome 5 solid asterisk.svg
new-domain
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",
bot = "Font Awesome 5 solid robot.svg",
discuss = "Font Awesome 5 solid comments.svg",
info = "Font Awesome 5 solid info-circle.svg",
}
function p.getIconTable()
return iconTable
end
function p.doc()
local output = {}
for key, value in pairs(iconTable) do
local line = "* [[File:" .. value .. "|x18px|link=]] <code>" .. key .. "</code>"
table.insert(output, line)
end
return table.concat(output, "\n")
end
return p