)

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

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.

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.

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>

Example



Installation

Use extension manager in DokuWiki system.

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.
  • 2019.11.30 bug fix of syntax.php to work in Greebo