Template:Emoji: Difference between revisions
ChristianW (talk | contribs) No edit summary |
ChristianW (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="font-size:{{#switch: {{{2}}}| none=inherit| {{{2}}}}};">�{{#switch: {{{1}}}|smile=1F642|yawn=1F62A| | <span style="font-size:{{#switch: {{{2}}}| none=inherit| {{{2}}}}};">�{{#switch: {{{1}}}|smile=1F642|yawn=1F62A|{{{1}}}}};</span><noinclude> | ||
<noinclude> | [[Category:Template]] | ||
Inserts an Emoji icon image in the text flow. | Inserts an Emoji icon image in the text flow. | ||
Emoji are ready-to-use unicode characters hosted in the display font. | Emoji are ready-to-use unicode characters hosted in the display font. | ||
Line 8: | Line 8: | ||
Usage: <nowiki>{{Emoji|1=name-of-icon|2=size-modifier}}</nowiki>. | Usage: <nowiki>{{Emoji|1=name-of-icon|2=size-modifier}}</nowiki>. | ||
1 The name-of-icon should be one from the following list | 1 The name-of-icon should be one from the following list: | ||
smile | smile | ||
yawn | yawn | ||
Immediate hexadecimal value can also be used instead of the friendly name (see Unicode table below). | |||
2. The size-modifier when present changes the size of the Emoji. These are the same rules as for css font-size attribute. | 2. The size-modifier when present changes the size of the Emoji. These are the same rules as for css font-size attribute. | ||
Line 26: | Line 27: | ||
<nowiki>{{Emoji|yawn|200%}}</nowiki> yields {{Emoji|yawn|200%}} | <nowiki>{{Emoji|yawn|200%}}</nowiki> yields {{Emoji|yawn|200%}} | ||
<nowiki>{{Emoji|1F621|200%}}</nowiki> yields {{Emoji|1F621|200%}} | |||
4. Check other possibilities | 4. Check other possibilities | ||
{|border="1" cellspacing="0" cellpadding="5" class="wikitable nounderlines" style="border-collapse:collapse;background:#FFFFFF;font-size:inherit;text-align:center" | |||
|+style="font-size:inherit" | Unicode characters/U1f600 | |||
{|border="1" cellspacing="0" cellpadding="5" class="wikitable nounderlines" style="border-collapse:collapse;background:#FFFFFF;font-size: | |-style="background:#F8F8F8;font-size:large" | ||
|+style="font-size: | |- | ||
|-style="background:#F8F8F8;font-size: | |||
| style="text-align:right" | U+ || 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || A || B || C || D || E || F | | style="text-align:right" | U+ || 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || A || B || C || D || E || F | ||
|- | |- | ||
| style="background:#F8F8F8;font-size: | | style="background:#F8F8F8;font-size:inherit;text-align:left" | 1f60 || 😀 || 😁 || 😂 || 😃 || 😄 || 😅 || 😆 || 😇 || 😈 || 😉 || 😊 || 😋 || 😌|| 😍 || 😎 || 😏 | ||
|- | |- | ||
| style="background:#F8F8F8;font-size: | | style="background:#F8F8F8;font-size:inherit;text-align:left" | 1f61 || 😐 || 😑 || 😒 || 😓 || 😔 || 😕 || 😖 || 😗 || 😘 || 😙 || 😚 || 😛 || 😜 || 😝 || 😞 || 😟 | ||
|- | |- | ||
| style="background:#F8F8F8;font-size: | | style="background:#F8F8F8;font-size:inherit;text-align:left" | 1f62 || 😠 || 😡 || 😢 || 😣 || 😤 || 😥 || 😦 || 😧|| 😨 || 😩 || 😪 || 😫 || 😬 || 😭 || 😮 || 😯 | ||
|- | |- | ||
| style="background:#F8F8F8;font-size: | | style="background:#F8F8F8;font-size:inherit;text-align:left" | 1f63 || 😰 || 😱 || 😲 || 😳 || 😴 || 😵 || 😶 || 😷 || 😸 || 😹 || 😺 || 😻 || 😼 || 😽 || 😾 || 😿 | ||
|- | |- | ||
| style="background:#F8F8F8;font-size: | | style="background:#F8F8F8;font-size:inherit;text-align:left" | 1f64 || 🙀 || 🙁 || 🙂 || 🙃 || 🙄 || 🙅 || 🙆 || 🙇 || 🙈 || 🙉 || 🙊 || 🙋 || 🙌 || 🙍 || 🙎 || 🙏 | ||
|} | |} | ||
</noinclude> | </noinclude> |
Latest revision as of 13:23, 18 June 2018
�{{{1}}};
Inserts an Emoji icon image in the text flow. Emoji are ready-to-use unicode characters hosted in the display font. So they do not need to be imported as additional file images.
Usage: {{Emoji|1=name-of-icon|2=size-modifier}}.
1 The name-of-icon should be one from the following list: smile yawn
Immediate hexadecimal value can also be used instead of the friendly name (see Unicode table below).
2. The size-modifier when present changes the size of the Emoji. These are the same rules as for css font-size attribute. Default value is 'inherit' meaning character size is the same as the size of the text it is included in. Using percentage values gives a good idea of relative sizes.
3. Examples
Using generic {{Smiley}} yields . Instead:
{{Emoji|smile}} yields 🙂 with the same size
{{Emoji|smile|150%}} yields 🙂
{{Emoji|yawn|200%}} yields 😪
{{Emoji|1F621|200%}} yields 😡
4. Check other possibilities
U+ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
1f60 | 😀 | 😁 | 😂 | 😃 | 😄 | 😅 | 😆 | 😇 | 😈 | 😉 | 😊 | 😋 | 😌 | 😍 | 😎 | 😏 |
1f61 | 😐 | 😑 | 😒 | 😓 | 😔 | 😕 | 😖 | 😗 | 😘 | 😙 | 😚 | 😛 | 😜 | 😝 | 😞 | 😟 |
1f62 | 😠 | 😡 | 😢 | 😣 | 😤 | 😥 | 😦 | 😧 | 😨 | 😩 | 😪 | 😫 | 😬 | 😭 | 😮 | 😯 |
1f63 | 😰 | 😱 | 😲 | 😳 | 😴 | 😵 | 😶 | 😷 | 😸 | 😹 | 😺 | 😻 | 😼 | 😽 | 😾 | 😿 |
1f64 | 🙀 | 🙁 | 🙂 | 🙃 | 🙄 | 🙅 | 🙆 | 🙇 | 🙈 | 🙉 | 🙊 | 🙋 | 🙌 | 🙍 | 🙎 | 🙏 |