Template:Unicode: Difference between revisions
From FrathWiki
Jump to navigationJump to search
(fixed more syntax) |
(→Usage: actual usage notes (sorta)) |
||
(2 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: {{{1|0}}}|0||{{{1}}}}}x</td><!-- | <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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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: {{{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}}}}} | -->{{ #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.