Template:Emoji: Difference between revisions

From KDE UserBase Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{Construction}}
{{Construction}}
Insert an Emoji icon image in the text flow. Usage: <nowiki>{{Emoji|name-of-icon}}</nowiki>.
Insert an Emoji icon image in the text flow. Usage: <nowiki>{{Emoji|1=name-of-icon|2=size-modifier}}</nowiki>.


The icon should be named from the following list:   
1 The name-of-icon should be one from the following list(*):   
smile
smile
yawn
yawn
This set can be extended with corresponding unicode values according to the needs.
(*) can be extended with corresponding unicode values according to the needs.


Example: <nowiki>{{Emoji|smile}}</nowiki> yields {{Emoji|1F642}}.
2. The size-modifier when present changes the relative size of the Emoji. These are the same rules as for HTML text.
Default value is 0 meaning character size is the same as the size of the text it is included in.
Absolute or positive values increase the size of the Emoji.
Negative values reduce the size of the Emoji.
Limits vary from [-4 to +4]


[[Category:Template]]
3. Examples
</noinclude><font size="+1"> &#x0{{{1}}};</font>
 
<nowiki>{{Emoji|smile}}</nowiki> yields {{Emoji|1F642}}.


<nowiki>
{{PLURAL:$1|Un nouveau sujet|$1 nouveaux sujets|100=plus de 100 nouveaux sujets}}
{{PLURAL:$1|Un nouveau sujet|$1 nouveaux sujets|100=plus de 100 nouveaux sujets}}
</ noinclude><span style="vertical-align:middle;">[[Image:Icon-{{{1}}}.png|14px|link=]]</span>
[[Category:TemplateDraft]]
</nowiki>
</noinclude><font size="+1"> &#x0{{{1}}};</font>

Revision as of 08:42, 10 June 2018

Under Construction

This is a new page, currently under construction!

Insert an Emoji icon image in the text flow. 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 relative size of the Emoji. These are the same rules as for HTML text. Default value is 0 meaning character size is the same as the size of the text it is included in. Absolute or positive values increase the size of the Emoji. Negative values reduce the size of the Emoji. Limits vary from [-4 to +4]

3. Examples

{{Emoji|smile}} yields  🙂.

{{PLURAL:$1|Un nouveau sujet|$1 nouveaux sujets|100=plus de 100 nouveaux sujets}} </ noinclude><span style="vertical-align:middle;">[[Image:Icon-{{{1}}}.png|14px|link=]]</span> [[Category:TemplateDraft]] &#x0{{{1}}};