Template:Twemoji

From Irony Wiki
Revision as of 08:16, 2 December 2020 by Saucy (talk | contribs)
Jump to navigation Jump to search

[[File:Twemoji12 {{{1}}}.svg|20px|alt=]]

Documentation

smiling imp

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)}}

Simple example

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 File:Twemoji12 ๐Ÿ˜ˆ.svg

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 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 File:Twemoji12 ๐Ÿฅถ.svg

Limitations

Do not put multiple emojis into the same template. If you wanted to render "File:Twemoji12 ๐Ÿ˜‚.svgFile:Twemoji12 ๐Ÿ˜‚.svgFile:Twemoji12 ๐Ÿ˜‚.svg", {{Twemoji|๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚}} would not work, you would have to do {{Twemoji|๐Ÿ˜‚}}{{Twemoji|๐Ÿ˜‚}}{{Twemoji|๐Ÿ˜‚}}.

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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Emoji1

The emoji you would like to render. Only use 1 emoji.

Example
๐Ÿ˜ˆ
Stringrequired
Title2

What will show up when you hover over the emote

Example
:smiling_imp:
Stringsuggested
Size3

The size of the emote

Default
20px
Stringoptional