Jump to content

Module:Emoji

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Qzekrom (talk | contribs) at 20:45, 23 March 2019 (Create module with help from User:RexxS). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local emotbl = {
	grin   = "1f600",
	beam   = "1f601",
	joy    = "1f602",
	-- and so on ...
	smiley = "263A"
}

local p= {}

function p.emocode(frame)
	local emoname = mw.text.trim(frame.args[1] or "smiley")
	return emotbl[emoname] or emoname
end

return p