Jump to content

Template:Notice/doc

From Meta, a Wikimedia project coordination wiki

Usage

[edit]

{{notice|1=Example text}}

creates:

Templatedata

[edit]

A simple box with an "i" icon, to be used for adding an informational notice. Based on [[Template:mbox]].

Template parameters

ParameterDescriptionTypeStatus
Notice content1 reason content text

The content that will be displayed within the notice box.

Stringrequired
headingheading header title

The heading that will be displayed within the notice box.

Stringoptional
centercenter

Whether to center the content.

Suggested values
yes
Stringoptional
alignalign

Direction of the content to be displayed. On pages that are to be translated, this should not be specified because some languages are written from right to left.

Suggested values
left center right
Stringoptional
smallsmall

Make the box small and to the right.

Suggested values
yes
Stringoptional
imagerightimageright

The content displayed on the opposite side of the image. This overrides the shortcut parameters.

Stringoptional
shortcut1shortcut1 shortcut

Shortcut to this page

Example
[[Example]]
Page nameoptional
shortcut2shortcut2

no description

Page nameoptional
shortcut3shortcut3

no description

Page nameoptional
shortcut4shortcut4

no description

Page nameoptional
shortcut5shortcut5

no description

Page nameoptional
imageimage

Image name to be used in notice box

Fileoptional
imagealtimagealt

no description

Stringoptional
stylestyle

CSS value to be applied to the whole notice box

Default
margin-top:1em; margin-bottom:1em
Stringoptional
headstyleheadstyle

CSS value to be applied to the heading

Stringoptional
textstyletextstyle

CSS value to be applied to the content

Stringoptional
demospacedemospace

no description

Stringoptional