Template:Domino Unicode/doc: Difference between revisions

Content deleted Content added
usage
 
reformat
 
(8 intermediate revisions by 2 users 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|<variantdirection>|[num1]|[num2]}}</pre>
Parameters (''letters are case-insensitive''):
# <code>variantdirection</code>: to indicate whether the tile should be horizontal or vertical.
#* <code>'''H'''</code> or <code>'''horizontal'''</code> for horizontal tiles.
#* <code>'''V'''</code> or <code>'''vertical'''</code> for vertical tiles.
Line 10 ⟶ 14:
#* Valid numbers are: '''0''' &ndash; '''6'''.
#* If omitted, then output the back of the tile.
#** <code><nowiki>{{Domino UnicodeDU|H}}</nowiki></code> or <code><nowiki>{{Domino UnicodeDU|horizontal}}</nowiki></code> gives "{{Domino UnicodeDU|H}}".
#** <code><nowiki>{{Domino UnicodeDU|V}}</nowiki></code> or <code><nowiki>{{Domino UnicodeDU|vertical}}</nowiki></code> gives "{{Domino UnicodeDU|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}}".
 
==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)]