New board diagrams

This page is about the new diagram facility that was added in August 2015. For information on the old diagram facility, see Help:Hex. Both ways of making diagrams will work, but the new way is recommended.

To display a board diagram, include a &lt;hexboard&gt; tag, specifying the board size in the size attribute (e.g. 5x7) and the board position in the contents attribute.

Board sizes from 0 to 26 are supported.

The following values can be used in contents:


 * R (to place red pieces)
 * B (to place blue pieces)
 * E (to mark a cell as empty)

When a cell name is encountered, that cell will be marked with the most recently mentioned color (R/B/E). To include an annotation on a cell (a number, star, or plus sign), include it before the cell name, with a colon between the annotation and the cell.

By default, coordinates will be shown above and to the left of the board. If you do not wish to show these, specify coords="hide".

Remember to close the tag!

There is now a graphical tool to create these tags: http://hexwiki.amecy.com/board_gui.html It lets you set up a board, then generates a tag that you can copy and paste.  Click on a piece type to choose it, then click on a board cell to place that piece on the cell.

Example 1




Example 2




Example 3


