DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:clearer

This is an old revision of the document!


clearer Plugin

Compatible with DokuWiki

>2009-02-14, 2008-05-05, Hrun

plugin Clear floats

Last updated on
2012-06-09
Provides
Syntax
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to clearfloat, wrap

Tagged with typography

Installation

Download the archive and unpack it into <dokuwiki>/lib/plugins.

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Syntax

Basic syntax:

text \\\

Note, no space characters to the right of the three backslashes.

Usage

Add three consequtive backslash (“\”) at the end of a line. This will add to your html code after the current paragraph

...</p><div class="clearer" ></div>

The HTML will output all floats currently in buffer. The next line of regular text will start below.

Example

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:

  {{ image1}} 
  bulk text1 \\
  bulk text2 \\\
  bulk text3

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.

plugin/clearer.1424117967.txt.gz · Last modified: 2015-02-16 21:19 by KaiMartin

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