Template:Twemoji/doc: Difference between revisions
No edit summary |
update |
||
Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
<code>{{Twemoji|'' | <code>{{Twemoji|''emoji''|''title (optional)''|''size (optional, default 20px)''}}</code> | ||
To specify what emoji to render, | To specify what emoji to render, simply enter the emoji in the first parameter. | ||
So, to | So, to render <nowiki>:smiling_imp:</nowiki> (😈) with this template, you would do: | ||
<code>{{Twemoji|😈}}</code> which outputs {{Twemoji|😈}} | |||
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>. | |||
Note that 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 == | == Template data == | ||
Line 25: | Line 30: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "Emoji | "label": "Emoji", | ||
"description": "The | "description": "The emoji you would like to render. Only use 1 emoji.", | ||
"example": " | "example": "👿", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true |
Revision as of 08:00, 8 February 2021
This template will render an emoji from the Twemoji project, which is what Discord uses to render its emojis.
Usage
{{Twemoji|emoji|title (optional)|size (optional, default 20px)}}
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
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|😂}}
.
Note that 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 :exploding_head: (🤯), you had to do:
{{Twemoji|1f92f}}
which outputs
This is no longer required, but is still supported.
Template data
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 |