Template:Mbox: Difference between revisions
Appearance
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div class="mbox-inside" style="margin: 4px 10%; border: 1px solid #a2a9b1; background-color: #f8f9fa; padding: 5px 10px; display: flex; align-items: center; clear: both;" role="presentation"> | <div class="mbox-inside" style="margin: 4px 10%; border: 1px solid #a2a9b1; background-color: #f8f9fa; padding: 5px 10px; display: flex; align-items: center; clear: both;" role="presentation">{{#if:{{{image|}}}|<div class="mbox-image" style="flex: 0 0 52px; padding: 2px 0.9em 2px 0; text-align: center;">{{{image}}}</div>|<div class="mbox-image" style="flex: 0 0 52px; padding: 2px 0.9em 2px 0; text-align: center;">[[File:Padlock-bronze-light.png|40px|link=|alt=]]</div>}}<div class="mbox-text" style="flex: 1 1 auto; padding: 0.25em 0.9em;">{{{text}}}</div></div><includeonly>{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
</div><includeonly>{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}</includeonly> | |||
<noinclude>{{Documentation}}</noinclude> | |||
Latest revision as of 13:59, 13 April 2026
{{{text}}}
Description
The Mbox (Message Box) is the foundational meta-template for all notices, warnings, and licenses on CreatorPedia. It ensures a consistent, mobile-responsive layout across the site.
Usage
{{Mbox
| image = [[File:YourIcon.svg|40px]]
| text = Your message goes here.
| category = Optional category name
}}
Parameters
- image: The icon displayed on the left. Defaults to a bronze padlock if empty.
- text: The main message body. Supports WikiText formatting.
- category: (Optional) Adds the page using the template to a specific category.