Template talk:Xiangqi-position

From Wikipedia, the free encyclopedia


10
9
8
7
6
5
4
3
2
1
a b c d e f g h i


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)

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|=

 10 |  |  |  |  |  |  |  |  |  |=
  9 |  |  |  |  |  |  |  |  |  |=
  8 |  |  |  |  |  |  |  |  |  |=
  7 |  |  |  |  |  |  |  |  |  |=
  6 |  |  |  |  |  |  |  |  |  |=
  5 |  |  |  |  |  |  |  |  |  |=
  4 |  |  |  |  |  |  |  |  |  |=
  3 |  |  |  |  |  |  |  |  |  |=
  2 |  |  |  |  |  |  |  |  |  |=
  1 |  |  |  |  |  |  |  |  |  |=
     a  b  c  d  e  f  g  h  i

|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|=

 10 |rd|hd|ed|ad|gd|ad|ed|hd|rd|=
  9 |  |  |  |  |  |  |  |  |  |=
  8 |  |cd|  |  |  |  |  |cd|  |=
  7 |sd|  |sd|  |sd|  |sd|  |sd|=
  6 |  |  |  |  |  |  |  |  |  |=
  5 |  |  |  |  |  |  |  |  |  |=
  4 |sl|  |sl|  |sl|  |sl|  |sl|=
  3 |  |cl|  |  |  |  |  |cl|  |=
  2 |  |  |  |  |  |  |  |  |  |=
  1 |rl|hl|el|al|gl|al|el|hl|rl|=
     a  b  c  d  e  f  g  h  i

|30}}
|-
|}