Template:Miramoji

From Miraheze Meta, Miraheze's central coordination wiki
Template documentation

This template lets you embed emojis.

Usage: {{Miramoji|emoji|emoji size|additional css optional}}
Example: {{Miramoji|christmas|22}}
Result of Example (generated right now):

The template was created on 17 November 2021 00:49 AM (UTC) to replace the old EmojiDisplay template that used wikitext instead of Lua.

Benefits of the template being lua:

  • Loads faster
  • Can be substituted
  • Easier animated emojis

If you didn't give the template a proper emoji to display, it will display a parser function like error message. For example, I put in {{Miramoji|ahahahhah}}, there's no emoji named "ahahahhah", so it returns Template:Miramoji error - No emoji found with name "ahahahhah".

Examples

Displaying a christmas tree[edit source]

{{Miramoji|christmas}}

Displaying a smaller christmas tree[edit source]

{{Miramoji|christmas|14px}}

Displaying a christmas tree with a blue rounded border[edit source]

{{Miramoji|christmas|20px|background-color:blue;padding:4px;padding-bottom:6px;border-radius:8px}}

Displaying a cartoon mars with a black circle around it[edit source]

<br />{{Miramoji|mars|20px|background-color:black;padding:13px;padding-bottom:16px;padding-top:14px;border-radius:100%}}<br /> -- The <br />s are recommended.


Using the template alone[edit source]

{{Miramoji}}
Template:Miramoji error - No emoji found with name ""

Subpages: Documentation | List | Lua | Lua Header | Sandbox | Pumpkin (Halloween) Highlight (outdated)