Template:smiley

From Wiktionary, the free dictionary
Jump to navigation Jump to search


Usage[edit]

Different smilies can be made using parameters. For instance, {{smiley|sad}} produces . The default (no parameter) is a simple smile.

The size of the smiley can be changed using the |size= parameter. For example, {{smiley|size=15px}} produces , which is a little smaller than the default. If |size= is not specified, the default size is 18px.

The default title text, shown as a tooltop when hovering over the smiley, can be changed using |title=. For example {{smiley|title=I'm happy}} produces . This parameter will be over-written if an invalid size parameter is specified.

The full list of smilies is as follows. Some are duplicates – for instance, the value 10 or any of the words cry, crying, or tears will produce .

Smiley Code
1 smile :) :-)
2 frown sad :( :-(
3 wink ;) ;-)
4 blush :$ :-$
5 grin :D :-D
6 surprise :O :-O
7 tongue :P :-P
8 confused %) %-)
9 shades shade 8) 8-)
10 crying tears cry :'( :'-(
11 lightbulb idea
12 wink2
13 wink3
14 big-grin biggrin
15 devil-grin devil evil
16 kiss
17 smirk
18 big-cry bigcry sob
19 glasses nerd
20 angel 0:) 0:-)
21 ttth
22 awesome
23 vsmile
24 dontpanic dp
25 teeth
26 angry
27 raspberry
28 very-confused
29 sarcastic
30 kitty
31 plain
32 eye-roll eyes rolling rolling eyes
33 like thumbs up thumbsup
34 expressionless face no expression

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for smiley

Add an emoticon.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Face1

The face you want to put. See [[Template:smiley/documentation]] for acceptable input values.

Default
smile
Stringoptional
Sizesize

Size of the smiley.

Default
18px
Stringoptional
Titletitle desc

Optional user-defined tooltip description, to replace the default title (Warning: this parameter is over-written if an invalid size parameter is specified).

Default
Smiling Face, Sad Face, etc...
Stringoptional

See also