Инструменты пользователя

Инструменты сайта


wiki:help:plugin:box

Это старая версия документа!


plugin:box

ToDo: Нужен перевод

Описание

This plugin brings boxes to DokuWiki allowing you to highlight particularly important parts of your wiki in boxes that standout. The plugin comes with the ability to make ordinary square boxes, snazzyTM boxes with rounded corners, boxes with titles and boxes of varying widths. DokuWiki markup is allowed inside the box - where pretty well anything goes - and inside the title where only text markup, links, smileys and the like should be used.

It is probably sensible to set the style of the box you will most commonly use to be the default box. For details refer to the style.css

для админа

Синтаксис

A simple box

<box> the box contents </box>
the box contents

Some more complex boxes

<box 80% round orange|a title> the box contents</box>
<box 50% left blue>the box contents</box|a caption>
<box 60% round #f99 #fc9 #fcc #f60|title>the box contents</box|caption>

a title

the box contents
the box contents

a caption

title

the box contents

caption

Блок с картинкой справа

<box 430px right round>
{{:wiki:dokuwiki-128.png}}
</box | This is a right-hand side box with a picture and caption.>

This is a right-hand side box with a picture and caption.

егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест егэ гиа обучение текст тест

Вложенные блоки

Boxes in boxes works but will create another line per box, an inline option would be nice.

<box 250px left blue|This is the parent>
<box 100px left red | this is a child>Child Box</box>
<box 100px right orange | this is another child>Another child that i would like inlined with one before</box>
</box>

This is the parent

this is a child

Child Box

this is another child

Another child that i would like inlined with one before

The full syntax

<box width classes colours | title text> contents text </box>

  • 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:
    • round — box will have rounded corners
    • blue — blue colour scheme
    • red — red colour scheme
    • green — green colour scheme
    • orange — orange colour scheme
    • left — float the box left within the wiki page
    • 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/help/plugin/box.1333639172.txt.gz · Последние изменения: 2012/04/05 18:19 (внешнее изменение)

На главную страницу Обучение Wikipedia Тестирование Контакты Нашли ошибку? Справка

Записаться на занятия

Ошибка Записаться на занятия к репетитору

Телефоны:

  • +7 (910) 874 73 73
  • +7 (905) 194 91 19
  • +7 (831) 247 47 55

Skype: eduVdom.com

закрыть[X]
Наши контакты