DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:alertbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:alertbox [2015-03-19 19:51] – [Installation] 18.111.110.133plugin:alertbox [2024-01-09 03:43] (current) Aleksandr
Line 5: Line 5:
 author     : Steve Levine author     : Steve Levine
 email      : sjlevine29@gmail.com email      : sjlevine29@gmail.com
-type       : +type       : syntax
 lastupdate : 2015-03-15 lastupdate : 2015-03-15
-compatible : +compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor Of Tsort, Frusterick Manners, Greebo, !Hogfather, !Igor, !Jack Jackrum
 depends    :   depends    :  
-conflicts  :  +conflicts bootswrapper 
-similar    :  +similar    : tip, wrap, note, box, bootnote 
-tags       : +tags       : alert, alerts, alertbox, alert box, box, boxes, bootstrap
  
 downloadurl: https://github.com/sjlevine/dokuwiki-alertbox/archive/master.zip downloadurl: https://github.com/sjlevine/dokuwiki-alertbox/archive/master.zip
Line 18: Line 18:
 donationurl:  donationurl: 
  
-screenshot_img : +screenshot_img : https://raw.githubusercontent.com/sjlevine/dokuwiki-alertbox/master/img/alertbox_screenshot.png
 ---- ----
  
 ===== Installation ===== ===== Installation =====
  
-First, make sure you have a template that provides Bootstrap (such as dokubootstrapsimplified or dokutwitterbootstrap)+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.
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 31: Line 31:
 Simply use this syntax to add differently colored alert boxes: Simply use this syntax to add differently colored alert boxes:
  
-    <alert info>Here is an informational message.</alert> +  <alert info>Here is an informational message.</alert> 
-    <alert warning>Here is a warning message.</alert> +  <alert warning>Here is a warning message.</alert> 
-    <alert danger>Something dangerous is happening!</alert> +  <alert danger>Something dangerous is happening!</alert> 
-    <alert success>Something good 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.1426791090.txt.gz · Last modified: 2015-03-19 19:51 by 18.111.110.133

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