Blocks

The HTML <div> is [block] in wiki syntax. Blocks are key elements when formatting.

Wiki

Result

[block(center)]
Some text that will be centered%BR%within the container.
[/block]

Some text that will be centered
within the container.

[block(background-color:#eee,color:#333,padding:5px 10px)]
Some text.
[/block]

Some text.

Blocks do not directly accept characters, which has the effect of creating a paragraph surrounding the text inside. Also translates line feeds into <br/> and creates a new paragraph when an empty line is found.

If you need a block that accepts characters use instead [html].

Wiki

Result

[html(center)]
Some text that will be centered%BR%within the container.
[/html]
Some text that will be centered
within the container.
[html(background-color:#eee,color:#333,padding:5px 10px)]
Some text.
[/html]
Some text.

See more about passing attributes to wiki elements in CSS and attributes .

Printer version
English01/01/13 19:54Lluís Turró Cutiller
English01/09/18 15:07Lluís Turró Cutiller
English11/21/18 10:49Lluís Turró Cutiller
English12/11/18 10:36Lluís Turró Cutiller
English04/20/20 12:50Lluís Turró Cutiller