Template:Main page box
This template is used to create the boxes of the IMProved Main Page (IMP) framework. It should not be called directly, instead using {{Main page box/start}} and {{Main page box/end}}.
Use the box below to create a page with the required templates already in place, ready for you to add your content.
The box name can not contain spaces or start with a number. Those are probably the only restrictions you'll run into, but for a full list see <custom-ident> on MDN web docs.
Parameters
These are the parameters used by {{Main page box/start}}. id is required, all others are optional.
| Name | Data type | Description |
|---|---|---|
| id | string | The id of this box. This should be equivalent to the page's subpage name. It is used by Template:Main page to find the template. The box will also be given the HTML id mp-box-{{{id}}} for use in CSS.
|
| title | Wikitext | The title of the box. This can be empty, in which case the box will contain only the content. |
| class | CSS classes | A list of classes to be passed to the box, separated by spaces and without quotes. Standard options are centered-content to vertically center contents, and has-floating-image in case floating images are needed in the box (normally the flex layout disallows this).
|
| style | CSS properties | Inline CSS to be applied directly to the box, without quotes. A common usage is text-align:center; for cases where it's desired for individual boxes to have centered text.
|