DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:button

This is an old revision of the document!


button Plugin

Compatible with DokuWiki

Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun

plugin Create buttons for links

Last updated on
2015-08-05
Provides
Syntax
Conflicts with
siteexport

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 bootswrapper, mikioplugin, wrap

Tagged with button, link

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

See the plugin in action here. Below is a screenshot of this installation.

Syntax

The full syntax is :

        [[{namespace:image|extra css}wiki page|**Title** of the link]]

Where :

  • namespace:image is the location of the image to use in the media manager
  • extra css is some css code to add to the button, or the name of a style defined with conf.styles (see below)
  • wiki page is the targetted id page
  • Title of the link is the name that will be displayed on the button, with formatting support ('\\' will break the line in the button)

All fields are optional, so the minimal syntax is :

	[[{}Simple button without image]]

You may also configure the target of the link with the use of conf.target :

	[[{conf.target}style|target]]

Example :

	[[{conf.target}default|_blank]]

Please go here for full syntax reference, live examples and configuration notes.

Troubleshooting

  • If you experience display problems with Internet Explorer, please check the “Compatibility Mode” setting. (tip from Schümmer Hans-Jürgen)

Contributions

Feel free to contribute to this plugin : source on github : https://github.com/rpeyron/plugin-button

Changelog

  • 19/05/2013 : Initial release
  • 20/04/2014 : Added target support (feature request from Andrew St Hilaire)
  • 07/06/2014 : Added formatting support in description link text (but not in page link section) (feature request from Willi Lethert)
  • 30/08/2014 : Added toolbar button (contribution from Xavier Decuyper) and fixed local anchor (bug reported by Andreas Kuzma)
  • 06/09/2014 : Refactored to add backlinks support (feature request from Schümmer Hans-Jürgen) ; you will need to update cache
  • 28/04/2015 : Refactored global config handling, add internal media link support, add escaping of userinput (contribution from lisps https://github.com/lisps/plugin-button)
  • 05/08/2015 : Merged lisps default style option and added french translation
plugin/button.1438798949.txt.gz · Last modified: 2015-08-05 20:22 by 89.93.78.157

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki