Template:Unicode chart/sandbox/doc
| File:Lua-Logo.svg | This template uses Lua: |
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
- "Normal" Unicode character: Displays character
- Abbreviation: Displays an abbreviation of the character's name in a dashed box.
- Unassigned
- Reserved: Empty grey cell
- 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).
Links
[edit source]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:
- Anything that has an abbreviation listed at Module:Unicode data/aliases
- 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]TemplateData for Unicode chart/sandbox
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| blockname | blockname | String | required | |
| link | link | Should the characters in the table be links? To Wikipedia pages, or Wiktionary pages?
| String | optional |
| wrapper | wrapper | A template (such as Script/Arabic) to wrap each Unicode character in | String | optional |
| abbreviation substitutes | abbr_sub | A list of abbreviations to substitute | String | optional |
| link substitutes | link_sub | A list of links to substitute | String | optional |
| note | note | Additional note for footer | String | optional |