Template:Emoji/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Serves for formatted display of icons (smilies), either SVG files or Unicode characters.

The template automatically sets the following categories: Unicode emoji (when from Unicode)

Usage

{{Template:Emoji |2= }}

Onmouseover, it also renders a tooltip showing file names (the link name) and characters (their Unicode codepoint). This template displays a horizontal table of some emoji buttons; their hexadecimal Unicode codepoint has to be passed by the parameter u1=;

Other parameters: cthe corresponding category, a Chinese character; nthe meaning as an English text; ua second part of the codepoint sthe display size ("spx") ptext (if other than "Emojis:")

When the parameter tb is "0", just the Unicode character with the hexadecimal codepoint u will be displayed in font-size dpx with border b and padding p.

Template parameters

ParameterDescriptionDefaultStatus
1
tb
for decision whether SVG icons: tb is empty
or Unicode characters are to display: tb is a numeric value
niloptional
2
u
the codepoint for either the SVG smilies, or
the codepoint for the characters
emptyrequired
3
c, b
c: a category name for the SVG smilies, e.g. PAGENAME
b: a border definition for the character emojies
emptyoptional
4
p
p: any text when another than "Emoji"
p: specification of padding for the characters
emptyoptional
5
s, d
s: the size (in px) for the SVG icons
d: the size (in px) for the characters
emptyoptional
6
n, y
n: an explaining text for the SVG icons
y: additional style options for the characters (line-size=150%)
emptyoptional
7
v
v: "-" to suppress character display
v: set to 16 for a line break at each 16th character
"+"
empty
optional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

See also

Module:Iteration/parlst, Iteration/emodis, Iteration/emotab

Localization

This template is not intended to be localized.

Examples

  1. A line of SVG icons (e.g. U+1F637); see also the talk page.
Emojis: Unicode U+1F637 “FACE WITH MEDICAL MASK” 😷 
  1. A single Unicode caracter (e.g. U+1F367) 🍧 {{Emoji|0|u=1F367|b=blue solid 1px|d=64}}
  2. A series of 80 Unicode characters (e.g. U+1F600 to U+1F64F); see also the /doc talk page.
This usage needs the Module:Iteration: {{#invoke:Iteration|parlst|temp=Emoji|80|1F600|||||16}}

😀😁😂😃😄😅😆😇😈😉😊😋😌😍😎😏
😐😑😒😓😔😕😖😗😘😙😚😛😜😝😞😟
😠😡😢😣😤😥😦😧😨😩😪😫😬😭😮😯
😰😱😲😳😴😵😶😷😸😹😺😻😼😽😾😿
🙀🙁🙂🙃🙄🙅🙆🙇🙈🙉🙊🙋🙌🙍🙎🙏