Toggle menu
15
248
116
28.1K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Domino Unicode/doc: Difference between revisions

From Kenshi Wiki
Prd (talk | contribs)
Created page with "{{doc sub}} This module is the helper module for Template:Domino Unicode to output Unicode characters of Domino tiles. '''Note:''' This module only outputs the '''HEX codepoint'''. To convert it to the Unicode character in HTML, write <code><nowiki>&#x<some_codepoint>;</nowiki></code>. * For example: to get the horizontal tile that has 1 followed by 2, write <code><nowiki>&#x{{#invoke:Domino Unicode|output|h|1|2}};</nowiki></code>, which gives you the outpu..."
 
Prd (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 23: Line 23:


==External links==
==External links==
* [https://unicode.org/charts/PDF/U1F030.pdf Unicode Code Chart of the "'''Domino Tiles'''" block (Range: 1F030&mdash;1F09F)]<noinclude>
* [https://unicode.org/charts/PDF/U1F030.pdf Unicode Code Chart of the "'''Domino Tiles'''" block (Range: 1F030&mdash;1F09F)]
[[Category:Module documentation pages]]
<includeonly>
[[Category:Modules]]
</includeonly>
<noinclude>
[[Category:Module documents]]
</noinclude>
</noinclude>

Latest revision as of 21:50, 11 March 2025

This module is the helper module for Template:Domino Unicode to output Unicode characters of Domino tiles.


Note: This module only outputs the HEX codepoint. To convert it to the Unicode character in HTML, write &#x<some_codepoint>;.

  • For example: to get the horizontal tile that has 1 followed by 2, write &#x{{#invoke:Domino Unicode|output|h|1|2}};, which gives you the output "🀺".

Usage

{{#invoke:Domino Unicode|output|<direction>|<num1>|<num2>}}

Parameters (letters are case-insensitive):

  1. direction: to indicate whether the tile should be horizontal or vertical.
    • H or horizontal for horizontal tiles.
    • V or vertical for vertical tiles.
  2. num1 (optional): the first number on the tile.
    • Valid numbers are: 06.
    • If omitted, then output the code point of the back of the tile.
      • {{#invoke:Domino Unicode|output|H}} or {{#invoke:Domino Unicode|output|horizontal}} gives "1F030".
      • {{#invoke:Domino Unicode|output|V}} or {{#invoke:Domino Unicode|output|vertical}} gives "1F062".
  3. num2 (optional): the second number on the tile.
    • Valid numbers are: 06.
    • If omitted, then num2 is treated as the same as num1.
      • For example: {{#invoke:Domino Unicode|output|H|6}} gives the same output as {{#invoke:Domino Unicode|output|H|6|6}}: "1F061".

External links