Jump to content

Template:PUA/doc

From Wikipedia, the free encyclopedia

This is a null formatting template. It has no effect but to indicate that a character lies in the Private Use Area (PUA) of Unicode, and to place the article using the character in Category:Articles with wanted Private Use Area characters.

Useful PUA characters

PUA characters are not normally appropriate for Wikipedia. However, if the text is formatted for a font that supports it, there are cases where a PUA character may be desired, such as when the font or the character itself is being discussed. (See Tengwar, for example.) In such cases an image of the character should also be displayed, or an article with an image linked to.

Formatting PUA characters

Browsers will generally not know how to handle PUA characters. It is therefore necessary to force the browser to display the character in an appropriate font. An existing template such as {{IPA}} may be sufficient. If not, fonts X, Y, Z can be individually specified with html markup such as:

<span style="font-family:X, Y, Z">[PUA]</span>
Substituting PUA characters

As of 2024, AutoWikiBrowser (AWB) is not capable of editing pages that contain unsubstituted PUA characters. If they are to be kept, it is therefore best to replace them with their four-digit Unicode numbers, using the code &#...; (decimal) or &#x...; (hexadecimal). In the Wikipedia edit window, PUA characters will display as a box containing the hexadecimal Unicode number, which can be manually converted to &#x...; format.

Both formatting and substitution are required if PUA characters are to be useful, and this PUA template is required as well if we are to keep track of them.

See also
See Wikipedia:CHECKWIKI/016 dump for the results of the latest CHECKWIKI run (includes both invisible formatting characters and PUA characters. Daily scan results of most articles edited that day are posted here; unlike the full list, the context of the errors are specified (look for "{PUA}").

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:PUA in articles based on its TemplateData.

TemplateData for PUA

No description.

Template parameters

ParameterDescriptionTypeStatus
11

no description

Unknownoptional