FANDOM


local p = {}
local lang = mw.getContentLanguage()
 
local function writeLetter(letter, cipher)
    letter = lang:ucfirst(letter)
    local filename = ""
    if cipher == "ASC" or letter == "Space" then 
        filename = "Symbol cipher"
    elseif cipher == "BSC" then
        filename = "Bill's cipher"
    else
        filename = "CSC"
    end
    return "[[File:" .. filename.. " - " .. letter .. ".png|17px|link=]]"
end
 
function p.main(frame)
    local text = ""
    local args = frame:getParent().args
    local cipher = frame.args[1]
    for _, v in ipairs(args) do
        text = text .. writeLetter(v:lower(), cipher)
    end
    return text
end
 
return p
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+