Template:Smiley: Difference between revisions
Richardpruen (talk | contribs) m 1 revision imported |
imported>MJL add 2 options for smiley; add descriptions for 4 |
||
| Line 1: | Line 1: | ||
<abbr title="{{SAFESUBST:<noinclude/>#ifeq:{{{title|{{{desc|}}}}}}||{{SAFESUBST:<noinclude/>#switch:{{SAFESUBST:<noinclude/>lc:{{{1|}}}}} | <abbr title="{{SAFESUBST:<noinclude />#ifeq:{{{title|{{{desc|}}}}}}||{{SAFESUBST:<noinclude />#switch:{{SAFESUBST:<noinclude />lc:{{{1|}}}}} | ||
|1|:)|:-)|smile|23|{{SAFESUBST:<noinclude/>=}}v{{SAFESUBST:<noinclude/>=}}|vsmile|#default = Smiling face | |1|:)|:-)|smile|23|{{SAFESUBST:<noinclude />=}}v{{SAFESUBST:<noinclude />=}}|vsmile|#default = Smiling face | ||
|2|(|:(|:-(|sad|sadface|sad face|frown = Sad face | |2|(|:(|:-(|sad|sadface|sad face|frown = Sad face | ||
|3|;|;)|;-)|wink|12|wink2|13|wink3 = Winking face | |3|;|;)|;-)|wink|12|wink2|13|wink3 = Winking face | ||
| Line 26: | Line 26: | ||
|28|very-confused = Very confused face | |28|very-confused = Very confused face | ||
|29|sarcastic = Sarcastic | |29|sarcastic = Sarcastic | ||
|30|kitty = Kitty}}|{{{title|{{{desc|}}}}}}}}" style="border-bottom: none;">[[File:{{SAFESUBST:<noinclude/>#switch:{{SAFESUBST:<noinclude/>lc:{{{1|}}}}} | |30|kitty = Kitty | ||
|31|plain = Plain face | |||
|32|christmas|holidays = Holiday season | |||
|33|upsidedown = Upside down face | |||
|34|smh|troubled = Troubled face}}|{{{title|{{{desc|}}}}}}}}" style="border-bottom: none;">[[File:{{SAFESUBST:<noinclude />#switch:{{SAFESUBST:<noinclude />lc:{{{1|}}}}} | |||
|1|:)|:-)|smile|#default = Face-smile.svg | |1|:)|:-)|smile|#default = Face-smile.svg | ||
|2|(|:(|:-(|sad|sadface|sad face|frown = Face-sad.svg | |2|(|:(|:-(|sad|sadface|sad face|frown = Face-sad.svg | ||
| Line 49: | Line 53: | ||
|21|ttth = Face-hand.svg | |21|ttth = Face-hand.svg | ||
|22|awesome = 718smiley.svg | |22|awesome = 718smiley.svg | ||
|23|{{SAFESUBST:<noinclude/>=}}v{{SAFESUBST:<noinclude/>=}}|vsmile = Emoticon_{{SAFESUBST:<noinclude/>=}}v{{SAFESUBST:<noinclude/>=}}.svg | |23|{{SAFESUBST:<noinclude />=}}v{{SAFESUBST:<noinclude />=}}|vsmile = Emoticon_{{SAFESUBST:<noinclude />=}}v{{SAFESUBST:<noinclude />=}}.svg | ||
|24|dp|dontpanic = | |24|dp|dontpanic = | ||
|25|teeth = Teeth.png | |25|teeth = Teeth.png | ||
| Line 58: | Line 62: | ||
|30|kitty = Kitty emoji.png | |30|kitty = Kitty emoji.png | ||
|31|plain = Face-plain.svg | |31|plain = Face-plain.svg | ||
|32|christmas|holidays=Face-smile-christmas.svg}}|{{SAFESUBST:<noinclude/>#if:{{{size|}}}|{{{size}}}|18px}}|link=]]</abbr><noinclude> | |32|christmas|holidays=Face-smile-christmas.svg | ||
|33|upsidedown = Face-upsidedown.svg | |||
|34|smh|troubled=Face-troubled.svg}}|{{SAFESUBST:<noinclude />#if:{{{size|}}}|{{{size}}}|18px}}|link=]]</abbr><noinclude> | |||
<!-- Please add this template's categories to the /doc subpage - thanks! --> | <!-- Please add this template's categories to the /doc subpage - thanks! --> | ||
{{ | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:41, 10 September 2022
| This template is used on approximately 43,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
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
.
Redirects
- Template:P
- Template:Face
- Template:SMiley
- Template:Smilie (Not be confused with {{Smile}})
TemplateData
TemplateData for Smiley
Add an emoticon.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Face | 1 | The face you want to put. See [[Template:Smiley/doc]] for acceptable input values.
| String | optional |
| Size | size | Size of the smiley.
| String | optional |
| Title | title desc | Optional user-defined tooltip description, to replace the default title (Warning: this parameter is over-written if an invalid size parameter is specified).
| String | optional |
See also
- {{Smiley2}}
- {{Oldsmiley}}
- {{Sert}}
- {{Emoji}}
- Wikipedia:Emoticons