Toggle menu
3
389
1
853
Seul En Groupe
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 10:14, 7 October 2025 by pzwiki>Vaileasys (Add css template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
File:Notebook.pngDocumentation

Template:Protection

This template relies heavily on CSS for its layout and styling.
Any edits may affect layout or appearance across multiple pages.

This template is used to create a collapsible mbox.

This is a collapsible element. You can toggle it by clicking the "◥" sign in 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

<syntaxhighlight lang="wikitext">

</syntaxhighlight>

Parameters

background
Background color. Default based on skin/theme.
border
Border style. Default based on skin/theme. E.g., 1px solid blue
color
Left bar color. Default to #eaecf0.
sign
Mbox image. Default to [[File:Question_On.png|link=]]. Assigning a width will have a max-width of 32px when collapsed and 64px when expanded.
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 when id is specified.

Example

<syntaxhighlight lang="wikitext">

This is an Mbox.
This is content of the Mbox.
This is a note of the Mbox.

</syntaxhighlight>

This is an Mbox.
This is content of the Mbox.
This is a note of the Mbox.

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:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. 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.
  3. Translate the page according to the translation requirements of normal pages.

See also

Attribution

Editors can experiment in this template's sandbox.