Template:Domino Unicode/doc: Difference between revisions

Content deleted Content added
m see also
reformat
 
Line 2:
 
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 12 ⟶ 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==