Template:Mbox: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{| class="ambox {{{class|}}}" style="background: {{{background|#f8f9fa}}}; border: {{{border|1px solid #F1F3F5}}}; {{#if:{{{color_bar|}}}|border-left: 10px solid {{{color_bar}}};|}} {{{style|}}}"
-->{| class="ambox {{{class|}}}" style="background: {{{background|#f8f9fa}}}; border: {{{border|1px solid #F1F3F5}}}; {{#if:{{{color_bar|}}}|border-left: 10px solid {{{color_bar}}};|}} {{{style|}}}"
! {{{title}}}
! class="title" {{{title}}}
|-
|-
| {{{text}}}
| {{{text}}}

Revision as of 14:55, 14 December 2024

Page Template:Ambox/styles.css has no content.

A simple message box for article pages. This template is meant to implement specific message boxes, not to be invoked directly.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

Header text to be used at the top of the box—this will be displayed in bold.

Stringsuggested
Texttext

The body text of the message box.

Stringrequired
Class (CSS)class

Custom class to add to the table.

Stringsuggested
Backgroundbackground

Background color for the box (neutral grey if not specified). Embedded in the "background" CSS property.

Stringoptional
Borderborder

Border style for the box. Embedded in the "border" CSS property.

Stringoptional
Color barcolor_bar

The color used for the left side bar of the box—no bar is displayed if left blank. Embedded in the "border-left" CSS property.

Stringoptional
Stylestyle

Additional CSS styles embedded at the end of the inline styles for the box

Stringoptional