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 r = "PresentChristmasTree.png" elseif e == "earth" then r = "SSDEarth.png" else r = "RedXIcon.png|20px" end -- end emoji links and error return ("") -- display emoji end

return p -- bring script to wikitext