Template:Mbox
This template is used to create a collapsible mbox.
This is a collapsible element. You can toggle it by clicking the "◥" sign on the top-right corner.
When collapsed, the image, content and note will be hidden, only the title will be displayed.
Usage
Do not use this template directly, use one of the types listed in PZwiki:Mboxes instead.
Syntax
{{Mbox | background = | color = | sign = | title = | content = | note = | cat = | id = | collapsed = }}
Parameters
background
- Background color. Default to
#f8f9fa
. color
- Left bar color. Default to
#eaecf0
. sign
- Mbox image. Default to
[[File:Imbox content.png|link=]]
. title
- Mbox title. Displayed in bold and large font.
content
- Normal text.
note
- Bottom text. Displayed in italic and small font.
cat
- Category name, omit
Category:
prefix. id
- Id for each Mbox to collapse the content. Should be unique. Recommended to use the template name. The mbox will not be collapsible if not specified.
collapsed
- Initial state of the content. Will be collapsed if set to
true
. Only works whenid
is specified.
Example
{{Mbox | title = This is an Mbox. | content = This is content of the Mbox. | note = This is a note of the Mbox. | id = example | collapsed = true }}
How to translate
This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:
- Create a subpage of this template with the language code of the language you want to translate to.
- Copy the code wrapped in the
<noinclude>
tag in this template into the page you created.{{Translation guide}}
template should be removed from the translated documentation.
- Translate the page according to the translation requirements of normal pages.
See also
- PZwiki:Mboxes
- Mbox on Chinese Oxygen Not Included Wiki - Template inspiration