
Compatible with DokuWiki
Similar to bootswrapper, mikioplugin, wrap
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
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 managerextra 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;! prefix to force an external URI (for instance: !apt:package );Title of the link is the name that will be displayed on the button, with formatting support ('\\' will break the line in the button, '**' for bold, etc.)All fields are optional, so the minimal syntax is:
[[{}Simple button without image]]
You may configure some styles to use in your buttons without repeating all the css:
[[{conf.styles}style|css]]
Where:
conf.styles is the keyword to set the stylesstyle is the name of the style you want to set;css is the css code you will assign to that style
You may then use the style in your button, example:
Style declaration:
[[{conf.styles}default|font-family: "Times New Roman", Times, serif;]]
[[{conf.styles}mystyle|color:green; width:15em;]]
Style use:
[[{|mystyle}Button in times new roman]]
[[{}Button in green and in times new roman]]
You may also add styles that will be available for all pages in the plugin section of the configuration page. You will have to add one line per style:
default|font-family: "Times New Roman", Times, serif; mystyle|color:green; width:15em;
Note that the CSS part is a bit tricky due to the selectors used in the template CSS and the layout needed for the button. By default, the style of the links is not repeated (just external links icon). See comments in style.css file for more information.
You may also configure the target of the link with the use of conf.target:
[[{conf.target}style|target]]
Example:
[[{conf.target}default|_blank]]
A button is added to the toolbar to add the template button.
Compatible with move plugin.
[[{buttons:fbreader.png|width: 25em; display: table; margin: 0 auto; }tototp|Centered button]]
Feel free to contribute to this plugin source on GitHub: https://github.com/rpeyron/plugin-button
Thank you to:
If you have any request, please add an issue to https://github.com/rpeyron/plugin-button/issues
Older requests: