Toggle menu
15
236
81
27.8K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 02:17, 20 February 2025 by Prd (talk | contribs) (Created page with "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 Awe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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

  •  discuss
  •  prohibited-domain
  •  info
  •  frequent-domain
  •  flagged-domain
  •  bot
  •  alert
  •  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=]]&nbsp;<code>" .. key .. "</code>"
        table.insert(output, line)
    end
    return table.concat(output, "\n")
end

return p