Template:Capsule/doc

From Zombie Panic! Official Wiki
Revision as of 05:48, 21 July 2025 by Wuffesan (talk | contribs) (Created page with "This template is designed to add a block with rounded corners with text inside. == Parameters and Examples == {| class=standard-table | style="width:100%;" |- ! width=15% | Parameter ! Description ! Example ! width=30% | Preview |- | align="center" | ''No parameters'' | Reverts to default styling | {{CodeBlock|<nowiki>{{Capsule}}</nowiki>}} | {{Capsule}} |- | align="center" | {{code|{{param|1}}}} or {{code|{{param|text}}}} | For text input | {{CodeBlock|<nowiki>{{Capsul...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
{{Capsule}}
{{{1}}} or {{{text}}} For text input
{{Capsule|Hello, world!}}
{{Capsule|text=Hello, world!}}
Hello, world!
Styling parameters
{{{align}}} For specifying text alignment
{{Capsule|Hello, world!|align=left}}
{{Capsule|Hello, world!|align=center}}
{{Capsule|Hello, world!|align=right}}
Hello, world!
Hello, world!
Hello, world!
{{{bg}}} Background value
{{Capsule|bg=#294157}}
{{{radius}}} For setting the border radius
{{Capsule|radius=1em}}
{{{padding}}} Padding value
{{Capsule|padding=2em}}
{{{margin}}} Margin value
{{Capsule|margin=0 1em}}
{{{height}}} For specifying capsule height
{{Capsule|height=100px}}
{{{style}}} Used to change preset styling of the capsule.
{{Capsule|style=1}}
{{Capsule|style=2}}
{{Capsule|style=3}}