DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:clearer

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:clearer [2013-04-03 05:40] – [clearer Plugin] Fix downloadurl 122.212.225.106plugin:clearer [2020-11-15 19:23] (current) zaher
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: +description: Clear floats
 author     : Zaher Dirkey  author     : Zaher Dirkey 
 email      : zaherdirkey@yahoo.com  email      : zaherdirkey@yahoo.com 
 type       : syntax type       : syntax
-lastupdate : 2012-06-09 +lastupdate : 2020-11-15 
-compatible : >2009-02-142008-05-05+compatible : >HrunHogfather
 depends    :  depends    : 
 conflicts  conflicts 
Line 17: Line 17:
 sourcerepo : https://github.com/parmaja/clearer sourcerepo : https://github.com/parmaja/clearer
 ---- ----
- 
  
 ===== Installation ===== ===== Installation =====
  
-Download the archive and unpack it into ''<dokuwiki>/lib/plugins''.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL abovewhich points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+===== Syntax ===== 
 + 
 +Basic syntax: 
 +<code>text \\\</code> 
 +Noteno space characters to the right of the three backslashes.
  
 ===== Usage ===== ===== Usage =====
-If you need to start the next line from the beginning, (leaving the long height of an image for example) just add three of \ the end of the line 
  
-  o----------o text line 1 +Add three consequtive backslash ("\") at the end of a line. This will add to your html code after the current paragraph 
-           | text line 2 +<code>...</p><div class="clearer" ></div></code> 
-    Image +The HTML will output all floats currently in buffer. The next line of regular text will start below.
-  |          | +
-  o----------o +
-  text line +
-   +
-If you don't add it at the end of line it will not work.+
  
-===== Syntax =====+===== Example =====
  
-Add three of \ at the end of line to break it and start the new line+A large image floating to the right should be accompanied by two sections of bulk text on the left. A third section of text should start after the the image. Like so: 
 +  bulk text1 o----------o 
 +  bulk text2 |          | 
 +              image1 
 +                      | 
 +             o----------o 
 +  bulk text3 
 +This can be achieved by: 
 +<code> 
 +  {{ image1}}  
 +  bulk text1 \
 +  bulk text2 \\\ 
 +  bulk text3 
 +</code> 
 +The space after the curly brackets makes the image float to the right. The two backslashes after bulk text1 indicates a regular manual line break. The three backslashes at the end of bulk text2 forces bulk text3 to start below the bottom of the image.
  
-Basic syntax: +===== Bugs and issues =====
-<code>text line \\\</code>+
  
-Example:+==== Problems with PHP 7.0 ====
  
-<code> +This plugin failed on our Dokuwiki instances after we migrated the servers to PHP 7.0 . We ended up using the plugin [[plugin:wrap]] to achieve the same effect.  --- [[user>KaiMartin|KaiMartin]] //2019-06-14 14:21//
-  {{image1}}text line 1\\ +
-   text line 2\\\ +
-   text line 3 +
-</code>+
  
-This will add to your html code after the current paragraph 
-<code>...</p><div class="clearer" ></div></code> 
plugin/clearer.1364960444.txt.gz · Last modified: 2013-04-03 05:40 by 122.212.225.106

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