Jump to content

Template:Unicon

From NixOS Wiki

Template Documentation [edit source| uses| help]

This template is used to display Wikipedia:Unicode icons through text, and bypass the usual render-as-emoji processing that most browsers and devices do. It is not guaranteed to work everywhere, but it does include some neat functionality to try to force the render-as-symbol behaviour.

🕐︎

Usage

Simply pass the character you want to display as the first argument. Note that only single characters work:

{{unicon|🕐}}

Technical details

There are four different techniques at play here. One of them is forcing the use of Noto Emoji font, if the user has it installed. The fallback font is a monospace font, which on most implementations will avoid using emojis. Furthermore, the font-variant-emoji CSS property is set, although the browser support is limited. Finally, a text presentation selector character is included after the input, telling the rendering engine to display the character as text.