Template talk:Xiangqi-position

Latest comment: 18 years ago by Natalinasmpf in topic Comments
WikiProject iconChess Template‑class
WikiProject iconThis template is within the scope of WikiProject Chess, a collaborative effort to improve the coverage of Chess on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject iconBoard and table games Template‑class
WikiProject iconThis template is part of WikiProject Board and table games, an attempt to better organize information in articles related to board games and tabletop games. If you would like to participate, you can edit the template attached to this page, or visit the project page, where you can join the project and/or contribute to the discussion.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject iconChina Template‑class
WikiProject iconThis template is within the scope of WikiProject China, a collaborative effort to improve the coverage of China related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Comments edit

Yes!! The board works! Hurrah!

Fully functional. Now I will work on developing a partial board, ie. for examples where only a few squares are needed. I might possibly use Template:if.

This template in, the invocation of parameters concept is inspired by Template:Chess position for pieces, and then for aligning the lines, Template:Game of Go Position. This template is the merger of both concepts, you might say. -- Natalinasmpf 17:24, 17 December 2005 (UTC)Reply

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;" |
{{Xianqi-position
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
|30}}
|-
|}

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

{| style="margin:1em;"
| style="border: solid thin; padding: 2px;" |
{{Xianqi-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
|30}}
|-
|}