iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://en.wikibooks.org/wiki/Template:Arimaa/board_part
Template:Arimaa/board part - Wikibooks, open books for an open world Jump to content

Template:Arimaa/board part

From Wikibooks, open books for an open world

Template for partial board diagrams. Usage:

  • Argument 1 specifies the part of the board to show. Values are nw, n, ne, w, e, sw, s, se or leave empty to show the whole board.
  • Arguments 2 and 3 give the number of ranks and files to include. Valid values are 4, 5 and 8.
  • The class argument gives the class attribute of the outermost <div> element; tleft and tright are usual values.
  • The title argument is argument above the diagram.
  • The caption argument is shown beneath the diagram.

Subsequent arguments give the contents of each square, from north-west to south-east. Piece codes are:

Gold Elephant eg
Gold Camel mg
Gold Horse hg
Gold Dog dg
Gold Cat cg
Gold Rabbit rg
Silver Elephant es
Silver Camel ms
Silver Horse hs
Silver Dog ds
Silver Cat cs
Silver Rabbit rs
Empty square [empty]

Example:

{{Arimaa/board part|nw|5|4|=
|rs|  |  |cs|cs|=
|  |rs|rs|  |  |=
|  |ds|  |  |  |=
|  |  |hg|  |  |=
|caption=A caption
}}

expands to:

A caption