<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AEmoji</id>
	<title>Module:Emoji - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AEmoji"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Emoji&amp;action=history"/>
	<updated>2026-11-01T05:27:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Module:Emoji&amp;diff=127639&amp;oldid=prev</id>
		<title>Wikipedia&gt;Trappist the monk at 23:36, 10 March 2024</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Emoji&amp;diff=127639&amp;oldid=prev"/>
		<updated>2024-03-10T23:36:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require (&amp;#039;strict&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
local data = mw.loadData (&amp;#039;Module:Emoji/data&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E M O C O D E &amp;gt;----------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
return the hexadecimal code associated with an emoji&amp;#039;s name&lt;br /&gt;
&lt;br /&gt;
	{{#invoke:Emoji|emocode|smiley}} → 1f603&lt;br /&gt;
&lt;br /&gt;
When the specified name does not exist in the data table, returns the unrecognized name&lt;br /&gt;
&lt;br /&gt;
If a name is not provided, returns  &amp;#039;smiley&amp;#039; (1f603)&lt;br /&gt;
&lt;br /&gt;
TODO: return error messages; don&amp;#039;t camouflage the erroneous or missing input&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function emocode (frame)&lt;br /&gt;
	local emoji_name = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)						-- make sure empty and missing parameters both become the empty string&lt;br /&gt;
	emoji_name = emoji_name:lower();											-- down case because names in table are all lowercase&lt;br /&gt;
	emoji_name = emoji_name:gsub (&amp;#039;%s+&amp;#039;, &amp;#039;_&amp;#039;);									-- replace whitespace with underscore&lt;br /&gt;
	if &amp;#039;&amp;#039; == emoji_name then emoji_name = &amp;#039;smiley&amp;#039; end							-- use default value of &amp;#039;smiley&amp;#039; if parameter is empty or missing&lt;br /&gt;
	return data.emoji_hex_from_name_t[emoji_name] or emoji_name&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E M O N A M E &amp;gt;----------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
return the emoji&amp;#039;s name associated with a particular hexadecimal code&lt;br /&gt;
&lt;br /&gt;
	{{#invoke:Emoji|emoname|1f603}} → smiley&lt;br /&gt;
&lt;br /&gt;
When the specified hexadecimal code does not exist in the data table, returns the unrecognized code&lt;br /&gt;
&lt;br /&gt;
If a hexadecimal code is not provided, returns  &amp;#039;1f603&amp;#039; (smiley)&lt;br /&gt;
&lt;br /&gt;
TODO: return error messages; don&amp;#039;t camouflage the erroneous or missing input&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function emoname (frame)&lt;br /&gt;
	local emoji_code = mw.text.trim(frame.args[1] or &amp;quot;&amp;quot;)						-- make sure empty and missing parameters both become the empty string&lt;br /&gt;
	emoji_code = emoji_code:lower();											-- down case because codes in table are all lowercase&lt;br /&gt;
	if &amp;#039;&amp;#039; == emoji_code then emoji_code = &amp;#039;1f603&amp;#039; end							-- use default value of &amp;#039;1f603&amp;#039; if parameter is empty or missing&lt;br /&gt;
	return data.emoji_name_from_hex_t[emoji_code] or emoji_code&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X P O R T S &amp;gt;----------------------------------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	emocode = emocode,&lt;br /&gt;
	emoname = emoname,&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Trappist the monk</name></author>
	</entry>
</feed>