DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:weiqi

Weiqi Plugin

Compatible with DokuWiki

2007-06-26

plugin Displays Weiqi (also named Go game or Baduk) diagrams.

Last updated on
2008-06-19
Provides
Syntax

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to chessdiagram

Tagged with diagram, game, images, media

Weiqi (say weitsi) is the Chinese name for Go, which is a quite simple but very interesting and ancient game.

You can see a demo here.

Downloads

All the pretty image files come from the Dragon Go Server. Many thanks.

Two sizes of the necessary set of images are bundled in the plugin zip. If you want to use other sizes than 17px or 25px, you'll have to download the rest of the images.

The only changes made to the original files at http://www.dragongoserver.net/snapshot.php (at the end of April 2008) are:

  • remove useless ones,
  • crop to squares the numbers used for the co-ordinates.

Change Log

date comment download
June 19 2008 Fixed a bug (if no attributes were given, errors were displayed). plugin
May 29 2008 The parser is now separated for external use. Stones can now be numbered. plugin other images
April 26 2008 Initial release plugin other images

Installation

Download and install the plugin through the Plugin Manager or install it by hand as usual if you prefer. Maybe you'll have to empty the cache if the new css doesn't load properly.

Configuration

The smart config page in the admin section is not implemented yet. Please see the syntax.php file.

Usage

Please refer to the demo.

Known issues

XHTML validation

<p> HTML tags are generated around the <div class=“weiqi”>…</div>. I don't know how to solve this (yet).

Set the PType to “block”, e.g. see box plugin. For more info see the syntax plugin tutorial. — Christopher Smith 2008/05/02 11:28
Great. Thanks Chris — Christophe Gragnic 2008/05/02 20:02

plugin functions

I'm not sure about the usual plugin functions, but it works. Knowing more about this could solve the previous issue…

What I did:

    function getType() { return 'protected'; }
    function getAllowedTypes() { return array('formatting', 'disabled'); }
    function getSort() { return 999; }
plugin/weiqi.txt · Last modified: 2012-04-22 06:59 by 2001:4dd0:ff00:e05::2