模板:围棋棋谱/doc
此页面是Template:围棋棋谱的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
示例
[编辑]{{Goban <!-- A B C D E F G H J K L M N O P Q R S T--> <!-- 19 -->| | | | | | | | | | | | | | | | | | | <!-- 18 -->| | | | | | | | | | | | | | | | | | | <!-- 17 -->| | | | | | | | | | | | | | | | | | | <!-- 16 -->| | | |x| | | | | |x| | | | | |x| | | <!-- 15 -->| | | | | | | | | | | | | | | | | | | <!-- 14 -->| | | | | | | | | | | | | | | | | | | <!-- 13 -->| | | | | | | | | | | | | | | | | | | <!-- 12 -->| | | | | | | | | | | | | | | | | | | <!-- 11 -->| | | | | | | | | | | | | | | | | | | <!-- 10 -->| | | |x| | | | | |x| | | | | |x| | | <!-- 9 -->| | | | | | | | | | | | | | | | | | | <!-- 8 -->| | | | | | | | | | | | | | | | | | | <!-- 7 -->| | | | | | | | | | | | | | | | | | | <!-- 6 -->| | | | | | | | | | | | | | | | | | | <!-- 5 -->| | | | | | | | | | | | | | | | | | | <!-- 4 -->| | | |x| | | | | |x| | | | | |x| | | <!-- 3 -->| | | | | | | | | | | | | | | | | | | <!-- 2 -->| | | | | | | | | | | | | | | | | | | <!-- 1 -->| | | | | | | | | | | | | | | | | | | <!-- A B C D E F G H J K L M N O P Q R S T-->|20}}
参数
[编辑]This template can be used to make go board, with stones and various other marks. For example,
{{Goban 5x5 | | | | | b | b|bT| A|-c| b | | c|w2| | | w| -| w| b| w | | | w| w| |24|u=u|d=d|l=l|r=r}} |
produces |
|
- The first parameters are one or two letters codes (sometimes three), that specify which tile is used. Though a preceding space is OK, be sure not to leave a space after that code.
- On the last line, the "24" parameter is the size of each tile (in pixels), it should preferably be even for correct centering of cells.
- The last four parameters |u=u|d=d|l=l|r=r specify which borders should be drawn (up, down, left and right). For instance, to draw an upper right corner, the final code is simply |u=u|r=r (and remember to place the hoshi point accordingly).
NB: The last four parameters are not used in the 19×19 Goban template.
Static stones and Joseki series
[编辑]b |
bT |
b1 |
... | b9 |
w |
wT |
w1 |
... | w9 |
These stone series are available as black (b) and white (w). They can be marked by a triangle (T) or a number from 1 to 9 (allowing short sequences).
Fuseki series
[编辑]00 |
02 |
04 |
... | 96 |
98 |
01 |
03 |
05 |
... | 97 |
99 |
These 100 tiles are used for game transcription, where the numbering goes beyond 10. Even numbers are always white, and odd numbers are always black (since black gets to make the first move of the game). The numbering is limited to the 00-99 range for practical reasons, it is assumed that there will be a figure change at least every 100 play.
Note the difference between 02 (with a leading zero) and b2.
Board and board marks
[编辑]The useful marks are:
- Capital letters from A to I, create the corresponding marks;
- An hyphen or a small x creates the hoshi point.
- A Capital X creates an X-mark.
- A lowercase c creates a small red circle.
The available tiles are:
|
|
|
|||||||||||||||||||||||||||||||||||||
Mark letters (and X) are capital. | Empty board tiles | Circled board positions (just add a "c" to the end) |
Note: the appropriate cell codes for the borders are generated automatically by default, so you can leave these parameters blank, and fill only the position of stones, or circled empty positions.