Wrapper

Also available in Deutsch, Français, Русский, 简体中文.


Additionally it is possible to assign a specific wrapper for each formatter %%(formatter) text%% with the parameter wrapper=.


%%(formatter
[wrapper="box | shade | page | text"]
[wrapper_align= "left | center | right | justify"]
[wrapper_title="Titel"]
[wrapper_type="default | error | example | important | note | question | quote | success | warning"]
[wrapper_width="pixel"]
[col=1 | 2 | 3 | 4 | 5]
[clear])
Text
%%

box shade page text
type + + -
title + + -
alignment + 1 2 +
clear + +
width + 1 + 3
column + +
frame + +
automatic line feed + + +

1 This option does not make sense, because the width of the block is always equal to the width of the page.
2 Only to the left.
3 If you don't put the line feeds yourself, the block width is fixed by the engine at approximately 90% of the page width.


Grammar = [FORMATTER | FORMAT WRAPPER | FORMAT WRAPPER OPTION | Text]


FORMATTER = [ cl | comment | css | email | hl * | html | info | ini | java | pascal | php | sql | wacko ]


FORMAT WRAPPER = box, shade, page und text


TEXT = alles, frei.

box



%%(css wrapper=box wrapper_align=left wrapper_width=270)
.d { font-size: 70% }
%%


As we see, wrapper box makes it possible to form the convenient "menu", streamlined with text. By the way, there is special formatter (Box), which does not make anything except as it turns around text into this wrapper.

shade


%%(css wrapper=shade)
.d2 { font-size: 70% }
%%

.d2 { font-size: 70% } 	

shade — this box without the tuning.

text


%%(wacko wrapper=text wrapper_align=center)
text on to center
%%

text on to center

text is derived the "floating" (float) block of text.

page

%%(wacko wrapper=page wrapper_width=200)
this text cannot be wider than two hundred pixel
%%

this text cannot be wider than two hundred pixel

page it makes it possible to regulate the width of the usual block of text.

Example


%%(wacko wrapper=box wrapper_type="quote" wrapper_width=300 wrapper_title="Box")
«A hundred times every day I remind myself that my inner and outer life depend upon the labors of other men, living and dead, and that I must exert myself in order to give in the measure as I have received and am still receiving.» – Albert Einstein
%%