Template:Emoji: Difference between revisions
ChristianW (talk | contribs) No edit summary |
ChristianW (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<span style="font- | <span style="font-size:{{{2}}};">�{{{1}}};</span> | ||
<noinclude> | <noinclude> | ||
Line 14: | Line 14: | ||
(*) can be extended with corresponding unicode values according to the needs. | (*) can be extended with corresponding unicode values according to the needs. | ||
2. The size-modifier when present changes the | 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 | 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 | 3. Examples | ||
Line 29: | Line 27: | ||
<nowiki>{{Emoji|yawn|150%}}</nowiki> yields {{Emoji|1F62A|150%}} | <nowiki>{{Emoji|yawn|150%}}</nowiki> yields {{Emoji|1F62A|150%}} | ||
4. Check other possibilities | |||
Size has been fixed to 150%. | |||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> |
Revision as of 09:59, 10 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 (*) can be extended with corresponding unicode values according to the needs.
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 🙂
{{Emoji|smile|200%}} yields 🙂
{{Emoji|yawn|150%}} yields 😪
4. Check other possibilities
Size has been fixed to 150%.