How to display gobans in our forums: [goban] ¶
By: climu on July 17, 2017, 4:56 p.m.
Here is a showcase of how we can display a goban in our forum posts.
The proper way to show a goban is with the [goban]
. Just replace [goboon]
with [goban]
to show a goban.
Basic usage
Basic usage is [goboon sgf=sgf_url][/goboon]
where sgf_url is the url of a sgf file.
For now one can only use a sgf file that is hosted on OSR server (url start with https://openstudyroom.org/).
Since one can attach a sgf file to a forum post, it's no big deal.
When the post only have one attachment and this attachment is a sgf file, it's no need to specidy the sgf
argument. [goban]
will work.
Move number
If you want to initialise your goban on a specific move, just enter move=move_number
.
Simple layout
One can choose to show only a goban and hide the comments and game-info boxes by adding the option simple=true
Choose width
One can choose the goban width (and hence height) with the option width=value
.
Where value is pure css width such as:
- 600px
- 50%
Hide coordinates
Coordinates are show by default but one can choose to hide them by using: coord=false
Static Diagram
One can choose to render a static diagram by using diagram=true
.
IWith static diagram, you can choose what section of the diagram will be render using limits=top, right, bottom, left
.
Each limit indicate the number of row/line to be skipped.
Note that the limits
option is NOT compatible with coordinates. Hence using it will automaticly deactivate the coordinate around the goban.
Text adaptation: float
Default behavior is the goban taking all the width of the page: no text adaptation.
If you want the goban to be on the left or right of the page and the text to addapt on the other side, one can use the float=left
Comments
You can write some comments between [goboon]
and [/goboon]
like that: [goboon]some coments here[/goboon]
.
In the comments, coordinates and move number will be interact with the goban with the folowing syntax:
move 13
for move numbera15
orA15
for coordinates
See the examples in next post.
Last edited by: climu on Jan. 23, 2018, 9:17 p.m., edited 18 times in total.