DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:alertbox

alertbox Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" no
  • 2022-07-31 "Igor" no
  • 2020-07-29 "Hogfather" no

plugin Add Bootstrap style alert boxes to your wiki!

Last updated on
2015-03-15
Provides
Syntax
Repository
Source
Conflicts with
bootswrapper

Similar to bootnote, box, note, tip, wrap

Tagged with alert, alertbox, alerts, bootstrap, box, boxes

Installation

First, make sure you have a template that provides Bootstrap (such as dokubootstrapsimplified or dokutwitterbootstrap)! These provide necessary CSS, and without them, the alert boxes won't show up.

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Examples/Usage

Simply use this syntax to add differently colored alert boxes:

<alert info>Here is an informational message.</alert>
<alert warning>Here is a warning message.</alert>
<alert danger>Something dangerous is happening!</alert>
<alert success>Something good is happening!</alert>

Good luck!

Compatibility notice

You can make this plugin compatible with Igor changing following lines in syntax.php:

function handle($match, $state, $pos, &$handler){

to

function handle($match, $state, $pos, Doku_Handler $handler){

and

function render($mode, &$renderer, $data) {

to

function render($mode, Doku_Renderer $renderer, $data) {
plugin/alertbox.txt · Last modified: 2024-01-09 03:43 by Aleksandr

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