Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

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 cgcrcpcmcecscj
Piece
Parameter hghrhphmhehshj

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]
MarkupRenders as
{{janggi board
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |
|size=50  
}}
{{janggi board
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |co|  |co|  |  |  
|  |  |co|  |ho|  |co|  |  
|  |  |  |ho|cm|ho|  |  |  
|  |  |co|  |ho|  |co|  |  
|  |  |  |co|  |co|  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |
|size=50    
}}