Template:Chess diagram

维基百科,自由的百科全书
跳转到: 导航, 搜索
[編輯] Template-info.svg 模板文档

目录

[编辑] 模板介紹

國際象棋棋盤

[编辑] 使用方法

使用方法如下說明:

第一個變數用來定義模版CSS格式,例如設為「tleft」會泊向左方,而「tright」會泊向右方。

第二個變數則是標題。

第三至第六十六個變數定為棋子種類和顏色,以下表為示:

棋種
kd Chess kdl45.svg kl Chess kll45.svg
qd Chess qdl45.svg ql Chess qll45.svg
(城堡) rd Chess rdl45.svg rl Chess rll45.svg
(主教) bd Chess bdl45.svg bl Chess bll45.svg
(騎士) nd Chess ndl45.svg nl Chess nll45.svg
pd Chess pdl45.svg pl Chess pll45.svg
其他
xo Chess xol45.svg oo Chess ool45.svg xx Chess xxl45.svg (空) Chess l45.svg
x1 Chess x1l45.svg x2 Chess x2l45.svg x3 Chess x3l45.svg x4 Chess x4l45.svg x5 Chess x5l45.svg x6 Chess x6l45.svg x7 Chess x7l45.svg x8 Chess x8l45.svg x9 Chess x9l45.svg

第六十七個變數則是說明文字。

[编辑] 範例

{{Chess diagram
| tleft
| 標題
|=
 8 |rd|nd|bd|qd|kd|bd|nd|rd|=
 7 |pd|pd|pd|pd|pd|pd|pd|pd|=
 6 |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |  |  |  |  |=
 4 |  |  |  |  |  |  |  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |pl|pl|pl|pl|pl|pl|pl|pl|=
 1 |rl|nl|bl|ql|kl|bl|nl|rl|=
    a  b  c  d  e  f  g  h

| 說明。
}}
標題
Chess zhor 26.svg
Chess zver 26.svg
a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Chess zver 26.svg
Chess zhor 26.svg
說明。

[编辑] 注意事项

[编辑] 參見

[编辑] 给模板编辑者的说明

[编辑] 模板结构

[编辑] 实现方法

[编辑] 编辑注意

个人工具
名字空间
操作
导航
帮助
工具
其他语言