Template:Twemoji: Difference between revisions
No edit summary |
use Lua module |
||
Line 1: | Line 1: | ||
{{ | {{#invoke:Twemoji|main|{{{1}}}|{{{2|}}}|{{{3|}}}}}<noinclude>{{documentation}}[[Category:Wiki emotes]]</noinclude> |
Latest revision as of 07:47, 8 February 2021
[[File:Twemoji12 {{{1}}}.svg|20px|link=|alt=]]
This template uses the following Lua module: Changes to this template will need to be made there. |
This template will render an emoji from the Twemoji project, which is what Discord uses to render its emojis.
Usage[edit source]
{{Twemoji|emoji|title (optional)|size (optional, default 20px)}}
Simple example[edit source]
To specify what emoji to render, simply enter the emoji in the first parameter.
So, to render :smiling_imp: (😈) with this template, you would do:
{{Twemoji|😈}}
which outputs
Full example[edit source]
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 any other image options.
So, to render :cold_face: (🥶) with a tooltip of "NIGAR BOOTY CHEEKS" at a size of 30px, you would do:
{{Twemoji|🥶|NIGAR BOOTY CHEEKS|30px}}
which outputs
Limitations[edit source]
Do not put multiple emojis into the same template. If you wanted to render "", {{Twemoji|😂😂😂}}
would not work, you would have to do {{Twemoji|😂}}{{Twemoji|😂}}{{Twemoji|😂}}
.
Unicode 13 emojis are currently not supported.
Legacy usage[edit source]
Previously, you had to specify the Unicode codepoint for the emoji you wanted to render.
For example, to render :exploding_head: (🤯), you had to do:
{{Twemoji|1f92f}}
which outputs
This is no longer required, but is still supported.
Template data[edit source]
This template will render an emoji from the Twemoji project, which is what Discord uses to render its emojis.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Emoji | 1 | The emoji you would like to render. Only use 1 emoji.
| String | required |
Title | 2 | What will show up when you hover over the emote
| String | suggested |
Size | 3 | The size of the emote
| String | optional |