Template:StartBlock

From Wikicarpedia
Revision as of 09:07, 18 October 2024 by Petul (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

BeginBlockList | StartBlock | EndBlock | Block | EndBlockList

Description

Open/Close block.
To close the block, use: {{EndBlock}}.
To place multiple blocks side by side, place them in {{BeginBlockList}} (before StartBlock) and {{EndBlockList}} (behind EndBlock).

As an alternative, you can also use a regular block: Template:Block.

Params

Parameter Type Default Value Description
align Optional left left
right
center
justify
Align of text in multiple line text
width Optional 250px CSS Set width of block
padding-right Optional 15px CSS Set right padding of block
padding-bottom Optional 15px CSS Set bottom padding of block

Examples

Wiki Description
{{StartBlock|width=250px|padding-right=15px|padding-bottom=15px}} Set block with default parameters

Text written in
a block

{{StartBlock|width=100%|align=center}} Set block with content align to the center

Text written in
a block

{{BeginBlockList}}
{{StartBlock}}

Text written in a first block

{{EndBlock}}
{{StartBlock}}

Text written in a second block

{{EndBlock}}
{{EndBlockList}}

Complete assembly with multiple blocks

Text written in
a first block

Text written in
a second block