Toggle menu
15
236
76
27.7K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Emoji/data/doc: Difference between revisions

From Kenshi Wiki
Prd (talk | contribs)
Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> Module:Emoji implements two functions: ; emocode : Takes one unnamed parameter, the name of the emoji, and returns the hex code for the corresponding emoji. If no name is supplied it uses "smiley" as the default (and returns <code>1f603</code>). ; emoname : Takes one unnamed parameter, the hex code of the emoji,..."
 
Prd (talk | contribs)
No edit summary
Line 17: Line 17:
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Module data]]
}}</includeonly>
}}</includeonly>
<noinclude>
[[Category:Module data documents]]
</noinclude>

Revision as of 03:24, 4 March 2025

Module:Emoji implements two functions:

emocode
Takes one unnamed parameter, the name of the emoji, and returns the hex code for the corresponding emoji. If no name is supplied it uses "smiley" as the default (and returns 1f603).
emoname
Takes one unnamed parameter, the hex code of the emoji, and returns the name for the corresponding emoji. If no name is supplied it uses "1f603" as the default (and returns smiley).

It stores the mapping from name to code in Module:Emoji/data, which internally generates the reverse lookup table from code to name.

Examples

  • {{#invoke:Emoji | emocode | wink}}1f609
  • {{#invoke:Emoji | emocode | grin}}1f601
  • {{#invoke:Emoji | emocode | 8ball}}1f3b1
  • {{#invoke:Emoji | emocode }}1f603
  • {{#invoke:Emoji | emoname | 1f62b}}tired_face
  • {{#invoke:Emoji | emoname }}smiley
Contents