The wiki has recently been updated. Please contact me by talk page or email if you encounter any issues.

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;">&nbsp;</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: {{{2|0}}}|0||{{{2}}}}}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;">&nbsp;</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: {{{3|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}0: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}0: {{{3}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}0;</td>}}<!--
-->{{ #ifeq: {{{2|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}0: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}0: {{{2}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}0;</td>}}<!--
-->{{ #ifeq: {{{4|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}1: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}1: {{{4}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}1;</td>}}<!--
-->{{ #ifeq: {{{3|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}1: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}1: {{{3}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}1;</td>}}<!--
-->{{ #ifeq: {{{5|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}2: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}2: {{{5}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}2;</td>}}<!--
-->{{ #ifeq: {{{4|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}2: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}2: {{{4}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}2;</td>}}<!--
-->{{ #ifeq: {{{6|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}3: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}3: {{{6}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}3;</td>}}<!--
-->{{ #ifeq: {{{5|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}3: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}3: {{{5}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}3;</td>}}<!--
-->{{ #ifeq: {{{7|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}4: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}4: {{{7}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}4;</td>}}<!--
-->{{ #ifeq: {{{6|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}4: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}4: {{{6}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}4;</td>}}<!--
-->{{ #ifeq: {{{8|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}5: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}5: {{{8}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}5;</td>}}<!--
-->{{ #ifeq: {{{7|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}5: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}5: {{{7}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}5;</td>}}<!--
-->{{ #ifeq: {{{9|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}6: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}6: {{{9}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}6;</td>}}<!--
-->{{ #ifeq: {{{8|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}6: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}6: {{{8}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}6;</td>}}<!--
-->{{ #ifeq: {{{10|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}7: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}7: {{{10}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}7;</td>}}<!--
-->{{ #ifeq: {{{9|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}7: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}7: {{{9}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}7;</td>}}<!--
-->{{ #ifeq: {{{11|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}8: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}8: {{{11}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}8;</td>}}<!--
-->{{ #ifeq: {{{10|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}8: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}8: {{{10}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}8;</td>}}<!--
-->{{ #ifeq: {{{12|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}9: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}9: {{{12}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}9;</td>}}<!--
-->{{ #ifeq: {{{11|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}9: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}9: {{{11}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}9;</td>}}<!--
-->{{ #ifeq: {{{13|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}A: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}A: {{{13}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}A;</td>}}<!--
-->{{ #ifeq: {{{12|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}A: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}A: {{{12}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}A;</td>}}<!--
-->{{ #ifeq: {{{14|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}B: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}B: {{{14}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}B;</td>}}<!--
-->{{ #ifeq: {{{13|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}B: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}B: {{{13}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}B;</td>}}<!--
-->{{ #ifeq: {{{15|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}C: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}C: {{{15}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}C;</td>}}<!--
-->{{ #ifeq: {{{14|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}C: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}C: {{{14}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}C;</td>}}<!--
-->{{ #ifeq: {{{16|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}D: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}D: {{{16}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}D;</td>}}<!--
-->{{ #ifeq: {{{15|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}D: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}D: {{{15}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}D;</td>}}<!--
-->{{ #ifeq: {{{17|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}E: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}E: {{{17}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}E;</td>}}<!--
-->{{ #ifeq: {{{16|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}E: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}E: {{{16}}}">&#x{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}E;</td>}}<!--
-->{{ #ifeq: {{{18|}}}||<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}F: (This position shall not be used)" style="background-color: #777;">&nbsp;</td>|<td title="U+{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}F: {{{18}}}">&#x{{ #ifeq: {{{2|0}}}|0||{{{2}}}}}F;</td>}}<!--
-->{{ #ifeq: {{{17|}}}||<td title="U+{{ #ifeq: {{{1|0}}}|0||{{{1}}}}}F: (This position shall not be used)" style="background-color: #777;">&nbsp;</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 11: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.