Help:MahjongTile: Difference between revisions

added the arrows
(finished now, I think)
(added the arrows)
Line 1: Line 1:
'''MahjongTile''' is a [http://www.mediawiki.org/wiki/MediaWiki MediaWiki] extension that makes it easy to output sequences of mahjong tile images, for example:
'''MahjongTile''' is a [http://www.mediawiki.org/wiki/MediaWiki MediaWiki] extension that makes it easy to output sequences of mahjong tile images, for example:


{{#mjt: 19m19p19s1234z}} {{#mjt: 999z}}
{{#mjt: 19m19p19s1234z}} {{#mjt: 000z}}


by use of the parser function <code>#mjt</code>. Specifically, it converts tile strings into their corresponding sequence of wiki markup image insertions, e.g.:
by use of the parser function <code>#mjt</code>. Specifically, it converts tile strings into their corresponding sequence of wiki markup image insertions, e.g.:
Line 140: Line 140:


If you can think of a reason why upside down tiles should also be implemented, let me know and I will add that too. I really can't think of a (not incredibly contrived) situation that warrants upside down tile images.
If you can think of a reason why upside down tiles should also be implemented, let me know and I will add that too. I really can't think of a (not incredibly contrived) situation that warrants upside down tile images.
==== Arrows ====
<code>8z</code> and <code>9z</code> correspond to down and up arrows respectively. This can be useful for [[paifu]].


=== Size option ===
=== Size option ===
67

edits