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-09-02 19:40] 18.189.58.124plugin:alertbox [2024-01-09 03:43] (current) Aleksandr
Line 7: Line 7:
 type       : syntax type       : syntax
 lastupdate : 2015-03-15 lastupdate : 2015-03-15
-compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus+compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor Of Tsort, Frusterick Manners, Greebo, !Hogfather, !Igor, !Jack Jackrum
 depends    :   depends    :  
-conflicts  :  +conflicts bootswrapper 
-similar    : tip, wrap, note, box+similar    : tip, wrap, note, box, bootnote
 tags       : alert, alerts, alertbox, alert box, box, boxes, bootstrap tags       : alert, alerts, alertbox, alert box, box, boxes, bootstrap
  
Line 25: Line 25:
 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. 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.
  
-You can 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! 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.1441215614.txt.gz · Last modified: 2015-09-02 19:40 by 18.189.58.124

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