Template:shogi diagram
Jump to navigation
Jump to search
- The following documentation is located at Template:shogi diagram/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
A template used to create shogi diagrams.
Usage
[edit]{{shogi diagram|tright | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | }}
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
/
k - 玉将・王将 (king)
r - 飛車 (rook)
b - 角行 (bishop)
g - 金将 (gold)
s - 銀将 (silver)
n - 桂馬 (knight)
l - 香車 (lance)
p - 歩兵 (pawn)
d - 龍王 (dragon)
pl - 成香 (promoted lance)
t - と金 (tokin)
- 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)。
Usage examples
[edit]{{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 }}
{{shogi diagram|tright |☖ pieces in hand: ''all the rest'' | | | | | | | | |kg | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |☗ pieces in hand: 飛 金<sub>2</sub> 銀 }}