Template:Capsule: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Doc}}Category:Templates<includeonly><onlyinclude><div align="{{{align|inherit}}}" style="background:{{{bg|{{#switch:{{{style|}}}|1=#4A6821|3=rgba(0,0,0,.3)|#262626}}}}}; {{#switch:{{{style|}}}|2=box-shadow:0 5px 10px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2);}} border-radius:{{{radius|{{#switch:{{{style|}}}|1=6px|3px}}}}}; display:flow-root; padding:{{{padding|{{#switch:{{{style|}}}|1=12px 18px|10px}}}}}; margin:{{{margin|.4em 0}}}; width:{{{width|auto..." |
(No difference)
|
Latest revision as of 05:48, 21 July 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
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. | ||