Editing
Template:Twemoji/doc
Jump to navigation
Jump to search
β οΈ
Warning:
You are not logged in.
Your IP address will be publicly visible
if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username instead of your IP, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Lua|Twemoji}} [[File:Twemoji12 1f608.svg|thumb|right|150px|smiling imp]] This template will render an emoji from the [https://github.com/twitter/twemoji Twemoji] project, which is what Discord uses to render its emojis. == Usage == <code>{{Twemoji|''emoji''|''title (optional)''|''size (optional, default 20px)''}}</code> === Simple example === To specify what emoji to render, simply enter the emoji in the first parameter. So, to render <nowiki>:smiling_imp:</nowiki> (π) with this template, you would do: <code>{{Twemoji|π}}</code> which outputs {{Twemoji|π}} === Full example === The second and third parameters are completely optional. The second parameter can be used to specify a tooltip that will show up when you hover over the emoji. The third parameter is meant to allow you to override the size of the emoji. Default is "20px". It can also be used to provide [[mediawikiwiki:Help:Images#Rendering a single image|any other image options]]. So, to render <nowiki>:cold_face:</nowiki> (π₯Ά) with a tooltip of "NIGAR BOOTY CHEEKS" at a size of 30px, you would do: <code>{{Twemoji|π₯Ά|NIGAR BOOTY CHEEKS|30px}}</code> which outputs {{Twemoji|π₯Ά|NIGAR BOOTY CHEEKS|30px}} === Limitations === Do not put multiple emojis into the same template. If you wanted to render "{{Twemoji|π}}{{Twemoji|π}}{{Twemoji|π}}", <code>{{Twemoji|πππ}}</code> would not work, you would have to do <code>{{Twemoji|π}}{{Twemoji|π}}{{Twemoji|π}}</code>. Unicode 13 emojis are currently not supported. == Legacy usage == Previously, you had to specify the Unicode codepoint for the emoji you wanted to render. For example, to render <nowiki>:exploding_head:</nowiki> (π€―), you had to do: <code>{{Twemoji|1f92f}}</code> which outputs {{Twemoji|1f92f}} This is no longer required, but is still supported. == Template data == <templatedata> { "params": { "1": { "label": "Emoji", "description": "The emoji you would like to render. Only use 1 emoji.", "example": "π", "type": "string", "required": true }, "2": { "label": "Title", "description": "What will show up when you hover over the emote", "example": ":smiling_imp:", "type": "string", "suggested": true }, "3": { "label": "Size", "description": "The size of the emote", "type": "string", "default": "20px" } }, "description": "This template will render an emoji from the Twemoji project, which is what Discord uses to render its emojis.", "format": "inline" } </templatedata>
Summary:
Please note that all contributions to Irony Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Irony Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Lua
(
edit
)
Template:Ombox
(
view source
) (protected)
Template:Twemoji
(
edit
)
Module:Arguments
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:No globals
(
edit
)
Module:Twemoji
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Purge cache
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
Page values