Dokuwiki for science

Select plugin

This DokuWiki plugin creates a pull-down menu that navigates users to either internal or external links. You can check the functionality by selecting the 'Language' selection box above.

Demo

<select Goto> en:start|Top en:pubmed_plugin|Pubmed plugin en:select_plugin|Select plugin </select>

Syntax

At least two kinds of parameters for are necessary this plugin.

  1. Name of the box which is selected on loading the page first.
  2. Pairs of link and displaying name.

<float rightbox200> </float> The code of 'Language' menu at the top of this page is like this.

<select Language>
computer/select_plugin|Japanese
computer:en:select_plugin|English
</select>
  • Begin syntax with 'select XXXX'.
    'XXXX' is the name of selection box.(ex. Language)
  • List each menu item as 'LINK|NAME'. 'LINK' is dokuwiki internal link which should start with a root namespace.
  • You can also use external links.
  • InterWiki syntax '(WIKI)>(TITLE)|NAME' is supported in the latest version.
    (2007-06-26b or later required)
  • Change the splitters of namespaces to ':'(colon) according to your DokuWiki settings.

<float leftbox300> Example code

<select example>
computer:select_plugin
computer:select_plugin|Select plugin

http://www.google.com
http://www.google.com|Google

wp>Ghost_in_shell
wp>Ghost_in_shell|Ghost in the shell
</select>

</float> <float leftbox300> Example

<select example> computer:select_plugin computer:select_plugin|Select plugin

http://www.google.com http://www.google.com|Google

wp>Ghost_in_shell wp>Ghost_in_shell|Ghost in the shell </select>

</float>

<clear/>

Installation

Using plugin manager

  1. Use URL of select.zip

Manual installation

  1. Download 'select.zip' and extract it.
  2. Upload the 'select' directory into /lib/plugins/ directory of your DokuWiki

History

  • 2008.10.23
    • bug fixed on using InterWiki links
  • 2008.10.11
  • 2008.2.6 Creation of interwiki links enabled. (2007-06-26b or later required)
  • 2007.10.16 bug fix of an inappropriate linking depends of 'userewrite' parameter.