Template:Box: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
--box-padding-impl: {{{padding|var(--box-padding, 1.2rem)}}}; | --box-padding-impl: {{{padding|var(--box-padding, 1.2rem)}}}; | ||
--box-wiki-content-padding-top: calc(var(--box-padding-impl) - | --box-wiki-content-padding-top: calc(var(--box-padding-impl) - 1em); | ||
--box-wiki-content-padding-bottom: calc(var(--box-padding-impl) - 0. | --box-wiki-content-padding-bottom: calc(var(--box-padding-impl) - 0.8em); | ||
--box-wiki-content-padding: var(--box-wiki-content-padding-top) var(--box-padding-impl) var(--box-wiki-content-padding-bottom) var(--box-padding-impl); | --box-wiki-content-padding: var(--box-wiki-content-padding-top) var(--box-padding-impl) var(--box-wiki-content-padding-bottom) var(--box-padding-impl); | ||
Revision as of 15:50, 6 June 2025
Template Documentation [edit source| uses| help]
This template is used to generate boxes that can hold content. In particular, boxes are used for notices. An example of a box holding content:
This is a box with some text content
Usage
Simply feed in your content as the first argument to the template:
{{Box|This is a box with some text content}}
If you need content that is styled via MediaWiki syntax, you might need to place your content on a new line. You can also set the wikiContent
argument in order to adjust the padding of the box to fit the content in a more visually appealing manner:
{{Box|wikiContent=yes|
== Heading ==
Some content
}}
Heading
Some content