Module:Miramoji

-- This module is used by Template:Miramoji local p = {}

function p.runemoji( frame ) -- Uses if-elseif-else because lua doesn't have switch function like wikitext or java e = frame.args[1] -- frame.args = Parameter, frame.args[1] = first parameter size = frame.args[2] if e == "christmas" then -- begin emoji links r = "Christmas Tree.png" elseif e == "database" then r = "DatabaseBlackOutline.png" elseif e == "pumpkin" then r = "PumpkinNotCarved.jpg" elseif e == "party" then r = "Party_Popper_Emojipedia.png" elseif e == "brick" then r = "Bricks.png" elseif e == "honeycomb" then r = "MirahezeHoneycomb.png" elseif e == "document" then r = "Docsicon.png" elseif e == "blackpencil" then r = "20150202215729!OOjs_UI_icon_edit-ltr.svg" elseif e == "pencil" then r = "Pencil.svg" elseif e == "userinfo" then r = "User-info.svg" else -- end emoji links r = "RedWarn.png|20px" -- error emoji end -- end emoji links and error return ("") -- display emoji end -- end script

return p -- bring script to wikitext