Template:Emoji presentation/sandbox
| This is the template sandbox page for Template:Emoji presentation (diff). See also the companion subpage for test cases. |
This template uses Unicode variation selectors to request emoji or text presentation of a character.
The effects of this template will depend on the reader's software. To see what it looks like in your browser, visit the test cases.
Without this template, some users report that Google Chrome running on Windows 10 selects emoji versions, while most other browsers select text versions. Selection may also depend on what fonts are installed.
Usage
The following examples use Template:Unichar.
Default (requests emoji presentation):
{{Emoji presentation|ℹ}}
Explicitly request emoji presentation:
{{Emoji presentation|ℹ|emoji}}
Request text presentation:
{{Emoji presentation|ℹ|text}}
When using this template to request emoji presentation, you should also add {{Contains special characters|emoticon}} at the top of the article, or {{Contains special characters|emoticon|section}} at the top of the section.
Template data
TemplateData for Emoji presentation
Apply a Unicode variation selector to request emoji or text presentation of a character.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Character | 1 | The Unicode character to be presented as emoji or text. Enter this as text or an XML entity, not as a Unicode codepoint.
| Unknown | optional |
| Presentation style | 2 | The presentation style to be used, either "emoji" or "text".
| Unknown | optional |
| The above documentation is transcluded from Template:Emoji presentation/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |