| This is a documentation subpage for Template:Smiley. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| This template is used on approximately 54,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 <syntaxhighlight lang="wikitext" inline style="display: none;" />|size= parameter. For example, {{Smiley|size=15px}} produces
, which is a little smaller than the default. If <syntaxhighlight lang="wikitext" inline style="display: none;" />|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 <syntaxhighlight lang="wikitext" inline style="display: none;" />|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
<templatedata> { "params": { "1": { "label": "Face", "description": "The face you want to put. See Template:Smiley/doc for acceptable input values.", "type": "string", "default": "smile" }, "size": { "label": "Size", "description": "Size of the smiley.", "type": "string", "default": "18px" }, "title": { "label": "Title", "description": "Optional user-defined tooltip description, to replace the default title (Warning: this parameter is over-written if an invalid size parameter is specified).", "type": "string", "default": "Smiling Face, Sad Face, etc...", "aliases": [ "desc" ] } }, "description": "Add an emoticon." } </templatedata>
See also
- {{Smiley2}}
- {{Oldsmiley}}
- {{Sert}}
- {{Emoji}}
- Wikipedia:Emoticons
- {{Icon link}}
- {{Class/icon}}
- {{Done/See also}} - inline icon templates by shape and color
- {{Table cell templates/doc}}