====== alertbox Plugin ====== ---- plugin ---- description: Add Bootstrap style alert boxes to your wiki! author : Steve Levine email : sjlevine29@gmail.com type : syntax lastupdate : 2015-03-15 compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor Of Tsort, Frusterick Manners, Greebo, !Hogfather, !Igor, !Jack Jackrum depends : conflicts : bootswrapper similar : tip, wrap, note, box, bootnote tags : alert, alerts, alertbox, alert box, box, boxes, bootstrap downloadurl: https://github.com/sjlevine/dokuwiki-alertbox/archive/master.zip bugtracker : https://github.com/sjlevine/dokuwiki-alertbox/issues sourcerepo : https://github.com/sjlevine/dokuwiki-alertbox donationurl: screenshot_img : https://raw.githubusercontent.com/sjlevine/dokuwiki-alertbox/master/img/alertbox_screenshot.png ---- ===== Installation ===== First, make sure you have a template that provides Bootstrap (such as [[template:dokubootstrapsimplified]] or [[template:dokutwitterbootstrap]])! These provide necessary CSS, and without them, the alert boxes won't show up. Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. ===== Examples/Usage ===== Simply use this syntax to add differently colored alert boxes: Here is an informational message. Here is a warning message. Something dangerous is happening! Something good is happening! 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) {