Template:Domino Unicode/doc: Difference between revisions

Content deleted Content added
comment nonworking examples that produce script errors. Feel free to restore them once the examples are working (use Preview to check).
Tag: Reverted
reformat
 
(4 intermediate revisions by the same user not shown)
Line 1:
{{Main|Domino Tiles}}
 
This template allows you to insert [[Unicode]] characters of [[Domino]] tiles.
 
''You can either use the full name "'''<nowiki>{{Domino Unicode}}</nowiki>'''" or its abbreviation "'''{{tl|DU}}'''".''
 
== Usage ==
<pre>{{Domino UnicodeDU|<direction>|[num1]|[num2]}}</pre>
Parameters (''letters are case-insensitive''):
# <code>direction</code>: to indicate whether the tile should be horizontal or vertical.
#* <code>'''H'''</code> or <code>'''horizontal'''</code> for horizontal tiles.
Line 10 ⟶ 14:
#* Valid numbers are: '''0''' &ndash; '''6'''.
#* If omitted, then output the back of the tile.
#** <code><nowiki>{{Domino UnicodeDU|VH}}</nowiki></code> or <code><nowiki>{{Domino UnicodeDU|verticalhorizontal}}</nowiki></code> gives "{{Domino UnicodeDU|VH}}".
<!--
#** <code><nowiki>{{Domino UnicodeDU|HV}}</nowiki></code> or <code><nowiki>{{Domino UnicodeDU|horizontalvertical}}</nowiki></code> gives "{{Domino UnicodeDU|HV}}".
#** <code><nowiki>{{Domino Unicode|V}}</nowiki></code> or <code><nowiki>{{Domino Unicode|vertical}}</nowiki></code> gives "{{Domino Unicode|V}}".
-->
# <code>num2</code> ''(optional)'': the second number on the tile.
#* Valid numbers are: '''0''' &ndash; '''6'''.
#* If omitted, then <code>num2</code> is treated as the same as <code>num1</code>.
#** For example: <code><nowiki>{{Domino UnicodeDU|H|6}}</nowiki></code> gives the same output as <code><nowiki>{{Domino UnicodeDU|H|6|6}}</nowiki></code>: "{{Domino UnicodeDU|H|6}}".
<!--
 
#** For example: <code><nowiki>{{Domino Unicode|H|6}}</nowiki></code> gives the same output as <code><nowiki>{{Domino Unicode|H|6|6}}</nowiki></code>: "{{Domino Unicode|H|6}}".
-->
==All valid output==
 
===Horizontal===
<!--
{{Domino Unicode/doc/output-table|H}}
 
===Vertical===
{{Domino Unicode/doc/output-table|V}}
 
-->
==See also==
* {{tl|Domino Tiles}}: the template to display the entire "Domino Tiles" [[Unicode]] block.
 
==External links==
* [https://unicode.org/charts/PDF/U1F030.pdf Unicode Code Chart of the "'''Domino Tiles'''" block (Range: 1F030&mdash;1F09F)]