Template:Xiangqi-position/doc

From Wikipedia, the free encyclopedia

See: Xiangqi

Usage[edit]

Currently you can invoke a blank board of the size above by copying and pasting this piece of invocation code:

{| style="margin:1em;"
| style="border: solid thin; padding: 2px;" |
{{Xiangqi-position
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |
|25}}
|-
|}

To get pieces...use this, they correspond square to square, similar to Go and Chess:

{| style="margin:1em;"
| style="border: solid thin; padding: 2px;" |
{{Xiangqi-position
|rd|hd|ed|ad|gd|ad|ed|hd|rd
|  |  |  |  |  |  |  |  |  
|  |cd|  |  |  |  |  |cd|  
|sd|  |sd|  |sd|  |sd|  |sd
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|sl|  |sl|  |sl|  |sl|  |sl
|  |cl|  |  |  |  |  |cl|  
|  |  |  |  |  |  |  |  |  
|rl|hl|el|al|gl|al|el|hl|rl
|25}}
|-
|}

You can also use Chinese:

{| style="margin:1em;"
| style="border: solid thin; padding: 2px;" |
{{Xiangqi-position
||||||||||  |  |  |  |  |  |  |  |  
|  ||  |  |  |  |  ||  
||  ||  ||  ||  ||  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
||  ||  ||  ||  ||  ||  |  |  |  |  ||  
|  |  |  |  |  |  |  |  |  
||||||||||25}}
|-
|}

Construction[edit]

There are two basics of the images: one being the type of piece, one being the type of position. Their naming convention is as follows: depending on the type of image, they together will form the entire image name, but start with xiangqi- and end with a unique four or five letter code. Color will either be light (red) or dark (black), and will be denoted by either a "l" or "d" respectively, in the second character placename in the code. The type of piece, such as general or chariot (rook) is denoted in the first character of the code. The type of position occupies the last two or three character places.

Pieces - naming abbreviation

black pieces - d
red pieces - l

general - g
advisor - a
elephant - e
rook - r
horse - h
cannon - c
soldier - s

no piece (vacant) - [whitespace]
dark - rs

black general:
black advisor:
black elephant:
black rook:
black horse:
black cannon:
black soldier:
red general:
red advisor:
red elephant:
red rook:
red horse:
red cannon:
red soldier:
dark:

board:

See also[edit]