Box Plugin
Informazioni generali
Questo plugin consente di evidenziare porzioni di testo racchiudendole in un riquadro di cui è possibile specificare molteplici parametri, tra cui le dimanesioni, l'allineamente, il colore, ecc …
Sito: http://wiki.jalakai.co.uk/dokuwiki/doku.php/tutorial/boxes
Sintassi
A simple box:
<box> the box contents </box>
A more complex box:
<box 80% round red|a title> the box contents </box>
The full syntax:
<box width classes | title text> contents text </box| caption text>
- classes
- any number of classes which use the styles in your template or the plugin's own stylesheet to determine the look of the box. The box plugins comes with the following classes already defined:
- round — box will have rounded corners
- blue — blue colour scheme
- red — red colour scheme
- green — green colour scheme
- orange — orange colour scheme
- left — box is floated left on the page
- right — box is floated right on the page
- width
- any legal CSS length value.
- title text
- text (including dokuwiki markup) displayed as a title above box contents.
- caption text
- text (without dokuwiki markup) displayed as a caption below box contents.
width & classes can be specified in any order.
if no classes are specified the default styles will be used, that is square corners in a colour scheme based on the default Dokuwiki colour scheme.
The opening <box ... > including the title must all appear on one line. The box contents can appear over as many lines as are needed.
See the plugin in action here. The sample page shows all the styles available with the plugin.
Esempi
a title
'let us start a quote and not finish it.
Boxed & titled
using hex colours
using rgb colours
boxed & captioned
title with formatting, a link and rounded corners
- a list
- of several
- items
<div class='box'> <b class='xtop'><b class='xb1'></b><b class='xb2'></b><b class='xb3'></b><b class='xb4'></b></b> <div class='xbox'> <p class='box_title'>Title text would go here</p> <div class='box_content'> <p>Including this html snippet of a box</p> <p>All those <b> tags handle the rounded corners</p> </div> </div> <b class='xbottom'><b class='xb4'></b><b class='xb3'></b><b class='xb2'></b><b class='xb1'></b></b> </div>
=== headings aren't allowed in boxes ===
| but | tables | are |
and plugins … ; definition : list : list : list
and a link
Wow, a lot of stuff
title
Example box
- make Lists
- other markup
- set the color of the box
- …
looks good?
title
title
title
title teste
title test
title teste
title test
Is the colour wrong?
title test
Simple box with rounded edges and title
- I will have to check this out
- tomorrow
- on my wiki
Yes! there can!
* I will have to check this out * tomorrow * on my wiki
* I will have to check this out * tomorrow * on my wiki
using hex colours

