Template:Unicode: Difference between revisions
From FrathWiki
Jump to navigationJump to search
(fixed syntax) |
(→Usage: actual usage notes (sorta)) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ #ifeq: {{{1|head}}}|head|<table border="1" cellspacing="0" cellpadding="5" class="wikitable" style="border-collapse: collapse; background: #FFF; font-size: large; text-align: center;">{{ifeq: {{{2|}}}|||<tr><td colspan="17" style="background: #F8F8F8; font-size: small;">'''{{{2}}}</td></tr>}}<tr style="background: #F8F8F8; font-size: small;"><td style="width: 45pt;"> </td><td style="width: 20pt;">0</td><td style="width: 20pt;">1</td><td style="width: 20pt;">2</td><td style="width: 20pt;">3</td><td style="width: 20pt;">4</td><td style="width: 20pt;">5</td><td style="width: 20pt;">6</td><td style="width: 20pt;">7</td><td style="width: 20pt;">8</td><td style="width: 20pt;">9</td><td style="width: 20pt;">A</td><td style="width: 20pt;">B</td><td style="width: 20pt;">C</td><td style="width: 20pt;">D</td><td style="width: 20pt;">E</td><td style="width: 20pt;">F</td></tr>|{{ #ifeq: {{{1|head}}}|foot|</table>|<tr><td style="background: #F8F8F8; font-size: small;">U+{{ #ifeq: {{{ | <includeonly>{{ #ifeq: {{{1|head}}}|head|<table border="1" cellspacing="0" cellpadding="5" class="wikitable" style="border-collapse: collapse; background: #FFF; font-size: large; text-align: center;">{{ #ifeq: {{{2|}}}|||<tr><td colspan="17" style="background: #F8F8F8; font-size: small;">'''{{{2}}}</td></tr>}}<tr style="background: #F8F8F8; font-size: small;"><td style="width: 45pt;"> </td><td style="width: 20pt;">0</td><td style="width: 20pt;">1</td><td style="width: 20pt;">2</td><td style="width: 20pt;">3</td><td style="width: 20pt;">4</td><td style="width: 20pt;">5</td><td style="width: 20pt;">6</td><td style="width: 20pt;">7</td><td style="width: 20pt;">8</td><td style="width: 20pt;">9</td><td style="width: 20pt;">A</td><td style="width: 20pt;">B</td><td style="width: 20pt;">C</td><td style="width: 20pt;">D</td><td style="width: 20pt;">E</td><td style="width: 20pt;">F</td></tr>|{{ #ifeq: {{{1|head}}}|foot|</table>|<tr><td style="background: #F8F8F8; font-size: small;">U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}x</td><!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{2|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}0: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}0: {{{2}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}0;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{3|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}1: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}1: {{{3}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}1;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{4|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}2: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}2: {{{4}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}2;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{5|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}3: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}3: {{{5}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}3;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{6|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}4: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}4: {{{6}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}4;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{7|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}5: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}5: {{{7}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}5;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{8|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}6: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}6: {{{8}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}6;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{9|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}7: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}7: {{{9}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}7;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{10|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}8: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}8: {{{10}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}8;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{11|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}9: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}9: {{{11}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}9;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{12|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}A: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}A: {{{12}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}A;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{13|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}B: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}B: {{{13}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}B;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{14|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}C: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}C: {{{14}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}C;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{15|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}D: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}D: {{{15}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}D;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{16|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}E: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}E: {{{16}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}E;</td>}}<!-- | ||
-->{{ #ifeq: {{{ | -->{{ #ifeq: {{{17|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}F: (This position shall not be used)" style="background-color: #777;"> </td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}F: {{{17}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}F;</td>}}<!-- | ||
--></tr>}}}}</includeonly><noinclude> | --></tr>}}}}</includeonly><noinclude> | ||
Use this template to easily create Unicode character tables. You must start your table with <tt><nowiki>{{Unicode|head}}</nowiki></tt> and close it off with <tt><nowiki>{{Unicode|foot}}</nowiki></tt>. | Use this template to easily create Unicode character tables. You must start your table with <tt><nowiki>{{Unicode|head}}</nowiki></tt> and close it off with <tt><nowiki>{{Unicode|foot}}</nowiki></tt>. | ||
==Usage== | |||
The table may consist of any number of rows. Each row describes 16 adjacent Unicode code points, e.g. those from U+30 to U+3F. For each row, add one instance of {{tl|Unicode}} between <tt><nowiki>{{Unicode|head}}</nowiki></tt> and <tt><nowiki>{{Unicode|foot}}</nowiki></tt>. | |||
For an example, see [[Wanya/Orthography#Unicode]]. | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 10:40, 17 April 2013
Use this template to easily create Unicode character tables. You must start your table with {{Unicode|head}} and close it off with {{Unicode|foot}}.
Usage
The table may consist of any number of rows. Each row describes 16 adjacent Unicode code points, e.g. those from U+30 to U+3F. For each row, add one instance of {{Unicode}} between {{Unicode|head}} and {{Unicode|foot}}.
For an example, see Wanya/Orthography#Unicode.