update
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Lua|Twemoji}}
[[File:Twemoji12 1f608.svg|thumb|right|150px|smiling imp]]
[[File:Twemoji12 1f608.svg|thumb|right|150px|smiling imp]]


Line 6: Line 7:
<code>&#123;{Twemoji|''emoji''|''title (optional)''|''size (optional, default 20px)''}}</code>
<code>&#123;{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.
To specify what emoji to render, simply enter the emoji in the first parameter.


Line 12: Line 14:
<code>&#123;{Twemoji|😈}}</code> which outputs {{Twemoji|😈}}
<code>&#123;{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>&#123;{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>&#123;{Twemoji|😂😂😂}}</code> would not work, you would have to do <code>&#123;{Twemoji|😂}}&#123;{Twemoji|😂}}&#123;{Twemoji|😂}}</code>.
Do not put multiple emojis into the same template. If you wanted to render "{{Twemoji|😂}}{{Twemoji|😂}}{{Twemoji|😂}}", <code>&#123;{Twemoji|😂😂😂}}</code> would not work, you would have to do <code>&#123;{Twemoji|😂}}&#123;{Twemoji|😂}}&#123;{Twemoji|😂}}</code>.


Note that Unicode 13 emojis are currently not supported.
Unicode 13 emojis are currently not supported.


== Legacy usage ==
== Legacy usage ==
Line 32: Line 46:
"label": "Emoji",
"label": "Emoji",
"description": "The emoji you would like to render. Only use 1 emoji.",
"description": "The emoji you would like to render. Only use 1 emoji.",
"example": "👿",
"example": "😈",
"type": "string",
"type": "string",
"required": true
"required": true