Template:Miramoji/doc

From Meta Wiki
Revision as of 19:30, 4 April 2024 by mh>MirahezeGDPR 15580c55bd817f46faacf4137d07274e
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lua error: bad argument #1 to "get" (not a valid title).

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

{{Miramoji|christmas}}

Displaying a smaller christmas tree

{{Miramoji|christmas|14px}}

Displaying a christmas tree with a blue rounded border

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

Displaying a cartoon mars with a black circle around it

<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

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

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