Template:Unicode chart/sandbox/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.

{{Unicode chart/sandbox
 |blockname = 
 |link = 
 |wrapper = 
 |abbr_sub = 
 |link_sub = 
 |note = 
}}

Types of cells

[edit source]
  • Assigned
    1. "Normal" Unicode character: Displays character
    2. Abbreviation: Displays an abbreviation of the character's name in a dashed box.
      1. Control character
      2. Format character
  • Unassigned
    1. Reserved: Empty grey cell
    2. Noncharacter: Empty black cell

Lua error in Module:Unicode_data/category at line 11: attempt to index field 'data' (a nil value).

Optional parameters

[edit source]

Foreign-script fonts

[edit source]

Many Unicode blocks deal with foreign-language scripts, which look best with font support. The parameter |wrapper= can be used to designate another template to wrap each character cell of the table in, such as {{Script/Arabic}} or {{Bo-textonly}}

{{Unicode chart/sandbox
 |blockname = Ogham
 |wrapper = Script/Ogam
}}

Lua error in Module:Unicode_data/category at line 11: attempt to index field 'data' (a nil value).

If there's no template for the language in question, you can use |font=

{{Unicode chart/sandbox
 |blockname = Mayan Numerals
 |font = Noto Sans Mayan Numerals
}}

Lua error in Module:Unicode_data/category at line 11: attempt to index field 'data' (a nil value).

To create links from Unicode characters to their Wikipedia pages, use |link=wiki

{{Unicode chart/sandbox
 |blockname = Latin Extended-C
 |link = wiki
}}

Lua error in Module:Unicode_data/category at line 11: attempt to index field 'data' (a nil value).

To link to Wiktionary pages, use |link=wikt

{{Unicode chart/sandbox
 |blockname = CJK Radicals Supplement
 |link = wikt
}}

Lua error in Module:Unicode_data/category at line 11: attempt to index field 'data' (a nil value).

You can use |link_sub= to:

  • manually set links for only certain cells
  • override the target of links if |link= is being used
{{Unicode chart/sandbox
 |blockname = Devanagari
 |link_sub = 0901:Chandrabindu; 0902:Anusvara; 0903:Visarga; 093D:Avagraha; 0950:Om; 0964:Danda; 0965:Danda; 0970:Laghava
}}

Lua error in Module:Unicode_data/category at line 11: attempt to index field 'data' (a nil value).

Abbreviations

[edit source]

By default, the following cells are abbreviated:

  1. Anything that has an abbreviation listed at Module:Unicode data/aliases
  2. If it's a "control" or "display" character, but it does not have an abbreviation listed, an abbreviation is created by taking the first letter of each word of the character's name.

You can manually set a cell as abbreviated with |abbr_sub=

{{Unicode chart/sandbox
 |blockname = Hangul Jamo
 |abbr_sub = 115F:HC<br>F; 1160:HJ<br>F
}}

Lua error in Module:Unicode_data/category at line 11: attempt to index field 'data' (a nil value).

TemplateData

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

TemplateData for Unicode chart/sandbox

This template creates a table of the Unicode characters within a Unicode block.
blocknameblockname
Name of Unicode block, as listed here or here
wrapperwrapper
A template (such as Script/Arabic) to wrap each Unicode character in
abbreviation substitutesabbr_sub
A list of abbreviations to substitute
notenote
Additional note for footer