Template:shogi diagram/documentation

A template used to create shogi diagrams.

Description of pieces
Empty strings for empty position.

For a position with a piece, the format is XXYZ.
 * XX
 * Type of piece
 * shogi_ks22.svg/shogi_aks22.svg k - ・ (king)
 * shogi_rs22.svg r - (rook)
 * shogi_bs22.svg b - (bishop)
 * shogi_gs22.svg g - (gold)
 * shogi_ss22.svg s - (silver)
 * shogi_ns22.svg n - (knight)
 * shogi_ls22.svg l - (lance)
 * shogi_ps22.svg p - (pawn)
 * shogi_ds22.svg d - (dragon)
 * shogi_dxs22.svg dx
 * shogi_hs22.svg h - (horse)
 * shogi_pss22.svg ps - (promoted silver)
 * shogi_pns22.svg pn - (promoted knight)
 * shogi_pnxs22.svg pnx
 * shogi_pls22.svg pl - (promoted lance)
 * shogi_plxs22.svg plx
 * shogi_ts22.svg t - (tokin)
 * shogi_txs22.svg tx
 * shogi_es22.svg e - (elephant)
 * shogi_as22.svg a -


 * By default, the side below has 玉, and the side above has 王. Use ak instead of k to reverse this.
 * 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).
 * shogi_rs22.svg rs
 * shogi_rg22.svg rg


 * Z
 * l for the previous move.
 * shogi_rs22.svg rs
 * shogi_rsl22.svg rsl

Usage examples


