Jump to content

Template:Janggi board/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

For displaying custom Janggi boards.


How to use parameters

[edit]

A piece consists of two letters: the first is for its color; the second is for its type

c
blue
h
red
g
general
r
chariot
p
cannon
m
horse
e
elephant
s
guard
j
soldier
Piece
Parameter cg cr cp cm ce cs cj
Piece
Parameter hg hr hp hm he hs hj

co and ho are for blue circles and red circles respectively.

Each cell of the board is 40px wide by default. It can be defined by adding |size=

Examples

[edit]
Markup Renders as
{{janggi board
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |
|size=50  
}}
{{janggi board
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |co|  |co|  |  |  
|  |  |co|  |ho|  |co|  |  
|  |  |  |ho|cm|ho|  |  |  
|  |  |co|  |ho|  |co|  |  
|  |  |  |co|  |co|  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |
|size=50    
}}