Jump to content

Module talk:Emoji

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trappist the monk (talk | contribs) at 15:32, 10 March 2024 (โ†’Where do these names come from?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

I feel like we can make this better

Hi everyone:

I have worked on Lua modules before, and after stumbling upon this one, I feel we can make it better and easier for Wikipedians to get emoji codes in user and talk pages. I am calling for users who have worked on this module before, specifically @RexxS, @Qzekrom and @Izno, but really anyone who wants to help. To anyone who wants to help, please reply and we can begin working on a plan!

Additionally, I started another module, Module:WEmoji, and may be able to use this module for WEmoji.

More technical details: We could make it require less typing, e.g. by adding it to a template (See Template:Wikipedia ads for an example), so you wouldn't have to type in as much text. For example, {{Emoji Smiley}}. Or, to use mappings, {{Emoji 1f603}}.
I will wait 2 months, and if I do not receive a reply, I will begin working on this by myself.
Urban Versis 32 (talk) 13:32, 22 May 2022 (UTC)[reply]

Where do these names come from?

If you look at U+1F507 ๐Ÿ”‡ SPEAKER WITH CANCELLATION STROKE (linked here:๐Ÿ”‡), you will see it is called Muted Speaker. That name comes from Unicode's CLDR short name. However,

{{#invoke:emoji|emoname|1f507}} โ†’ mute

So where are do these names from? Please document. Dpleibovitz (talk) 04:20, 9 March 2024 (UTC)[reply]

Ok, I did some hunting around. The latest charts can be found at
And it shows *muted speaker | mute | quiet | silent | speaker
So there can be many aliases for a name. Note sure that the module works with all of these. Will it always return the first alias (and never the full name)? Dpleibovitz (talk) 04:49, 9 March 2024 (UTC)[reply]
I don't know where that (rather limited) list came from. The editor who added it is no longer with us so we can't ask.
The annotations chart you link doesn't seem to me to be the definitive list of emoji. Perhaps a better list is https://unicode.org/Public/emoji/latest/emoji-test.txt (version 15.1 at this writing). This appears to list all current emoji with their proper names.
I have hacked a lua module in my sandbox that reads a local copy of the emoji-test.txt file to create a replacement for Module:Emoji/data. Some items in Module:Emoji/data are not in the sandbox list by the same name (wink, grin, 8ball from the examples in the module doc are some).
Module:Emoji/data is only used in one mainspace article (Irony punctuation ยงย Emoji and Emoticons) so replacing the data table with the new one from my sandbox requires only that article to be fixed (because the abbreviated names rolling_eyes, stuck_out_tongue, and upside_down should be face_with_rolling_eyes, face_with_tongue, and upside-down_face).
So, what to do? Nothing? Replace the data in Module:Emoji/data with data derived from emoji-test.txt? with data derived from some other source?
โ€”Trappist the monk (talk) 15:32, 10 March 2024 (UTC)[reply]