Template:Twemoji/doc: Difference between revisions
update |
No edit summary |
||
Line 6: | Line 6: | ||
<code>{{Twemoji|''emoji''|''title (optional)''|''size (optional, default 20px)''}}</code> | <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. | To specify what emoji to render, simply enter the emoji in the first parameter. | ||
Line 12: | Line 13: | ||
<code>{{Twemoji|😈}}</code> which outputs {{Twemoji|😈}} | <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>. | 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 == | == Legacy usage == |