Template:shogi diagram

From Wiktionary, the free dictionary
Jump to navigation Jump to search
{{{2}}}
91 81 71 61 51 41 31 21 11
92 82 72 62 52 42 32 22 12
93 83 73 63 53 43 33 23 13
94 84 74 64 54 44 34 24 14
95 85 75 65 55 45 35 25 15
96 86 76 66 56 46 36 26 16
97 87 77 67 57 47 37 27 17
98 88 78 68 58 48 38 28 18
99 89 79 69 59 49 39 29 19
{{{84}}}

 A template used to create shogi diagrams.

Usage

[edit]
{{shogi diagram|tright
|
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|
}}
Parameters
name value default note
1 "tright" / "tleft" / "" "" Alignment
2 (string) "" Information above
3, 4, 5...83 (see below) "" Description of pieces
84 (string) "" Information below

Description of pieces

[edit]

Empty strings for empty position.

For a position with a piece, the format is XXYZ.

XX
Type of piece
  • dx
  • pnx
  • plx
  • tx
By default, the side below has , and the side above has . Use ak instead of k to reverse this.
Y
The pieces of the side below is s (sente). The pieces of the side above is g (gote)。
  • rs
  • rg
Z
l for the previous move.
  • rs
  • rsl

Usage examples

[edit]
☖ pieces in hand: -
91 81 71 61 51 41 31 21 11
92 82 72 62 52 42 32 22 12
93 83 73 63 53 43 33 23 13
94 84 74 64 54 44 34 24 14
95 85 75 65 55 45 35 25 15
96 86 76 66 56 46 36 26 16
97 87 77 67 57 47 37 27 17
98 88 78 68 58 48 38 28 18
99 89 79 69 59 49 39 29 19
☗ pieces in hand: 歩
1.Rx24 P*23
{{shogi diagram|tright
|☖ pieces in hand: -
|lg|ng|sg|gg|kg|  |sg|ng|lg
|  |rg|  |  |  |  |gg|bg|
|pg|  |pg|pg|pg|pg|pg|pgl|pg
|  |  |  |  |  |  |  |rs|
|  |pg|  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|ps|ps|ps|ps|ps|ps|ps|  |ps
|  |bs|gs|  |  |  |  |  |
|ls|ns|ss|  |ks|gs|ss|ns|ls
|☗ pieces in hand: 歩<br/>1.Rx24 P*23
}}
☖ pieces in hand: all the rest
91 81 71 61 51 41 31 21 11
92 82 72 62 52 42 32 22 12
93 83 73 63 53 43 33 23 13
94 84 74 64 54 44 34 24 14
95 85 75 65 55 45 35 25 15
96 86 76 66 56 46 36 26 16
97 87 77 67 57 47 37 27 17
98 88 78 68 58 48 38 28 18
99 89 79 69 59 49 39 29 19
☗ pieces in hand: 飛 金2
{{shogi diagram|tright
|☖ pieces in hand: ''all the rest''
|  |  |  |  |  |  |  |  |kg
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|☗ pieces in hand: 飛 金<sub>2</sub> 銀
}}