Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Examples  





1.2  Parameters  





1.3  Presentation effects  







2 Possible errors  





3 Tracking  





4 Technical notes  



4.1  Issues  







5 Code charts  





6 TemplateData  





7 See also  



7.1  External research links  
















Template:Unichar






Аԥсшәа
تۆرکجه
Basa Bali

 / Bân-lâm-gú

Bosanski
Català
Čeština
Cymraeg
Dansk
الدارجة
Español
Esperanto
فارسی
Føroyskt
Français

Հայերեն
Ilokano
Bahasa Indonesia
Italiano
Kurdî
Ladin
Latviešu
Bahasa Melayu

Nederlands

Oʻzbekcha / ўзбекча


Português
Română
Русский
Scots

Simple English
Slovenščina
کوردی
Српски / srpski
Tagalog
ி
 


Türkçe
Українська
اردو
Tiếng Vit


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Printable version
 




In other projects  



Wikibooks
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


This is an old revision of this page, as edited by DePiep (talk | contribs)at09:36, 8 September 2010 (Moving a hex2dec calculation here from subtemplate to reduce depth). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff)  Previous revision | Latest revision (diff) | Newer revision  (diff)

Error using {{unichar}}: Parameter #1 missing, no code point value.

This template produces a formatted description of a Unicode character, to be used inline or otherwise with regular text.

Usage

The {{unichar}} template takes the Unicode hexadecimal code point value as input. Thus, for example, {{unichar|00A9}}Error using {{unichar}}: Parameter #2 missing, no character name..

This template produces a formatted description of a Unicode character, to be used in-line with regular text. It follows the standard Unicode presentation of a character, using the "U+" prefix for displaying the hex code point, followed by its glyph, then optionally by the character name, using Unicode's inline formatting recommendation. In running text such as the Unicode Standard, Wikipedia, or other rich-text environments, the character name is preferredly displayed in SMALL-CAPS STYLE. (The all-caps presentation is mainly designed for plain-text environments.)

The hexadecimal value is required (e.g. A9), other input is optional. The actual glyph is rendered using a font that contains the character. This can be set to something more specific, e.g. to language- or IPA-specific fonts. To show the glyph, the font character can be overridden with an image. A wikilink to an article on the character or set of characters, and another to the article Unicode can be created. It is also possible to add (bracketed like this), the calculated decimal value, HTML character codes, and a custom note.

Some special code points are given extra care, like control and space characters. These are automatically detected by the unichar/gc sub-template.

Examples

Parameters

The blank template, with all parameters, is as follows:

{{unichar
| ulink = 
| image = 
| cwith = 
| size  = 
| use   = 
| use2  = 
| nlink = 
| html  = 
| note  = 
| name  =
| alias =
}}

Inline version:

{{unichar| <!--hex value (do not add "U+")-->|ulink= |image= |cwith= |size= |use= |use2= |nlink= |html= |note= }}
Notes:
  • The name of the page is case-sensitive as with all Wikipedia pages.
  • It is possible to give a Wiktionary page here, using the syntax nlink=wikt:<target article>, which may be appropriate if there is no suitable Wikipedia article. For example:
  • When used without a name (i.e., |nlink=, blank with no value), the link points to the character itself except when that causes a problem with WP:NCTR in which case the name of the character is used or an error is produced if no such name exists (see § Presentation effects).
    • {{unichar|00A9|nlink=}} → U+00A9 Template:Unichar/na is equivalent to {{unichar|00A9|nlink=&#xa9;}}.
{{unichar
| A9
| ulink = Universal Character Set characters
| image = 
| size  = 150%
| nlink = Copyright symbol
| note  = Example
}}
Produces:

Presentation effects

Since this template is aimed at presenting a formatted, inline description, some effects are introduced to sustain this target.

The second parameter (Unicode name) is not presented, since it cannot exist. It is possible to create a link to an article.

Possible errors

Tracking

Technical notes

The string "unichar" is used only in English Wikipedia, as a name for this template. It has no meaning outside this context.

The template uses these subtemplates:

Issues

Code charts

Key to the Unicode Code Charts (Ch 24)[1]
Symbol Meaning Examples
Character name alias ※ LATIN SMALL LETTER GHA
= Informative alias(es) = barred o, o bar
Informative note
  • • lowercase is 0275 ɵ
  • • Portuguese, Estonian
  • • this is a spacing character
  • Cross-reference → 0283 ʃ latin small letter esh
    Canonical decomposition mapping ≡ 0075 u 031B ◌̛
    Compatibility decomposition mapping ≈ 006E n 006A j
    ~ Standardized variation sequence ~ 2205 FE00 zero with long diagonal stroke overlay form

    TemplateData

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

    TemplateData for Unichar

    Template data

    Formats a Unicode character description inline.

    Template parameters[Edit template data]

    This template prefers inline formatting of parameters.

    ParameterDescriptionTypeStatus
    Hex value1

    Hexadecimal unicode codepoint

    Example
    031A
    Stringrequired
    Character name2

    The canonical name is fetched from Wikidata, there is no longer any need to specify it manually. If supplied, it is ignored.

    Example
    COMBINING LEFT ANGLE ABOVE
    Stringdeprecated
    ulinkulink

    Add link to the Unicode HEX code point

    Example
    Phonetic symbols in Unicode
    Lineoptional
    nlinknlink

    Add link to the Unicode character name

    Stringoptional
    cwithcwith

    (for combing characters only) add the following character before this combining character:

    Suggested values
    Example
    Stringoptional
    sizesize

    Relative size of rendered character

    Example
    200%
    Stringoptional
    imageimage

    no description

    Unknownoptional
    useuse

    no description

    Stringoptional
    use2use2

    no description

    Stringoptional
    HTML codehtml

    When present, shows HTML named entity

    Example
    html= shows "&copy;"
    Stringoptional
    notenote

    no description

    Lineoptional
    aliasalias

    no description

    Suggested values
    yes
    Unknownoptional
    namename

    Hide the name of the character

    Suggested values
    none
    Unknownoptional

    See also

    U+00A9169dec&copy; (as literal code, not the character)

    External research links

    Useful links for researching Unicode characters:


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Unichar&oldid=383612859"

    Categories: 
    Lua-based templates
    Unicode character templates
    Hidden categories: 
    Wikipedia semi-protected templates
    Templates needing substitution checking
    Templates using TemplateData
    Navboxes using background colours
     



    This page was last edited on 8 September 2010, at 09:36 (UTC).

    This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki