If you edited on fallenlondon.fandom.com at least once prior to 22 March, 2021, you can log in here using the same username and password that you used to log into Fandom. We'll verify your account details and grant you access here.

Module:Access

From Fallen London Wiki

Documentation for this module may be created at Module:Access/doc

local p = {};

local argmap = {
    ["Fate"] = {title = "FontFate"},
    ["Retired"] = {title = "FontRetired"},
    ["Renown"] = {title = "IL", args = {":Category:Renown Items"}},
    ["Profession"] = {title = "IL", args = {"Profession"}},
    ["A:LF"] = {title = "IL", args = {"Ambition: Light Fingers!"}},
    ["A:HD"] = {title = "IL", args = {"Ambition: Heart's Desire!"}},
    ["A:BL"] = {title = "IL", args = {"Ambition: Bag a Legend!"}},
    ["A:N"] = {title = "IL", args = {"Ambition: Nemesis"}},
    ["F:FR"] = {title = "FontRose"},
    ["F:HM"] = {title = "FontHallowmas"},
    ["F:C"] = {title = "FontChristmas"},
    ["F:FZ"] = {title = "FontFruits"},
    ["F:WS"] = {title = "FontWhitsun"}
};

function p.displayAll(frame)
    local args = frame:getParent().args;
    local flags = "";
    for flag, display in pairs(argmap) do
        if args[flag] == "X" 
            then flags = flags .. " " .. frame:expandTemplate(display);
        end
    end
    flags = mw.text.trim(flags);
    if flags ~= "" and frame.args.bracket == "yes"
        then flags = "(" .. flags .. ")";
    end
    return flags;
end

return p;