Template:Machi: Difference between revisions

From Japanese Mahjong Wiki
Jump to navigation Jump to search
(Add takame/yasume)
m (Shows as bold face in the Takame and yasume article, while Takame does not.)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
:{{#mjt:{{{pattern}}}}} {{#if:{{{tiles called|}}}|{{#mjt:{{{tiles called}}}}}}} {{{wait status|{{#if{{{yasume|}}}|Takame:|Waiting for}}}}}: {{#mjt:{{{tilewaits|}}}}}{{#if:{{{yasume|}}}|Yasume: {{#mjt:{{{pattern}}}}}|}}<noinclude>
<includeonly>:{{#mjt:{{{pattern}}}}} {{#if:{{{tiles called|}}}|{{#mjt:{{{tiles called}}}}}}} {{{wait status|Waiting for}}}: {{#mjt:{{{tilewaits|}}}}} {{#if:{{{yasume|}}}|Yasume: {{#mjt:{{{yasume}}}}}|}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 19:48, 30 March 2015

Documentation icon Template documentation[view] [edit] [history] [purge]
{{machi
|pattern      = 
|tiles called = 
|wait status  = 
|tilewaits    = 
|yasume       = 
}}

Usage

This template is used to display hand patterns throughout the Wiki.

Parameter Description
pattern Closed tiles "in hand"
tiles called Any tiles used for open calls, including kan.
wait status Default "Waiting for". Either the hand is waiting for tiles, or the hand patterns indicate winning status such as "Agari", "Ron" or "Tsumo".
tilewaits List of tiles necessary to win the hand.
yasume List of tiles which will be shown after the tilewaits as yasume tiles.

Examples

{{machi
|pattern   = 19m19p19s1235667z
|tilewaits = 4z
}}
Waiting for:
{{machi
|pattern      = 1114z
|tilewaits    = 4z
|called tiles = 22'23"330660z
}}
Waiting for:
{{machi
|pattern   = 1112345578999p
|tilewaits = 6p
|yasume    = 59p
}}
Waiting for: Yasume:
{{machi
|pattern     = 2223m678p345567s
|tilewaits   = 4m
|wait status = Takame
|yasume      = 13m
}}
Takame: Yasume: