Template:Capsule
(Redirected from Template:Documentation/PreviewBlock)
This template is designed to add a block with rounded corners with text inside.
Parameters and Examples
Parameter | Description | Example | Preview |
---|---|---|---|
No parameters | Reverts to default styling | ||
{{{1}}} or {{{text}}}
|
For text input | Hello, world!
| |
Styling parameters | |||
{{{align}}}
|
For specifying text alignment | Hello, world! Hello, world! Hello, world!
| |
{{{bg}}}
|
Background value | ||
{{{radius}}}
|
For setting the border radius | ||
{{{padding}}}
|
Padding value | ||
{{{margin}}}
|
Margin value | ||
{{{height}}}
|
For specifying capsule height | ||
{{{style}}}
|
Used to change preset styling of the capsule. |
The above documentation is transcluded from Template:Capsule/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.