Box sintàxi

Si escribim <box 30% round orange|a title> the box contents</box>.

a title

the box contents

The full syntax:

Si escribim <box width classes colours | title text> contents text </box>.

title text

contents text
  • width — any legal CSS width value
  • 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:

o round — box will have rounded corners

        o blue — blue colour scheme
        o red — red colour scheme
        o green — green colour scheme
        o orange — orange colour scheme
        o left — float the box left within the wiki page
        o right — float the box right within the wiki page

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.

  • colours — 1-4 colours in CSS hex or rgb notation, e.g. #F00 #fcab94 rgb(255,255,0). The colours are applied in order to:

1. content background

       2. title background
       3. outer box background
       4. borders

if less than four colours are specified, the first colour is used for the missing colours.

  • title text — text (including dokuwiki markup) displayed above the box contents, with distinct style.
  • caption text — text (no markup allowed) displayed below the box contents, with distinct style.

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.

wiki/box_sintaxi.txt · Darrera modificació: 2008/05/12 19:06 per jbasela
Torna dalt
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0