Jump to content

Template:Notice

(Redirected from Template:Cmbox)
Template documentationedit documentation

Use this meta template to build standardized and mobile-friendly notices.

Usage

Basic

The following wikitext:

{{Notice
| title = Title of the notice.
| text = Text of the notice.
}}

will produce:

Full

The following wikitext:

{{Notice
| class = my-custom-notice
| image = Closed Book Icon.svg
| image-size = 80px
| image-link = Appropedia:Books
| image-alt = Appropedia book
| title = Title of the notice.
| text = Text of the notice. The text will be visible by default in desktop devices, but in mobile devices, the user needs to tap the notice to read the text.
}}

will produce:

See also

Template data

Use this meta template to build notices.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

Title of the notice.

Example
This page needs additional references.
Stringsuggested
Texttext

Text of the notice

Example
You can help Appropedia by editing this page and adding some references.
Contentsuggested
Imageimage

Main image of the notice

Default
Commons-emblem-notice.svg
Example
Appropedia.png
Fileoptional
Image sizeimage-size

Size of the image

Default
x40px
Example
80px
Stringoptional
Image linkimage-link

Page to link from the image

Example
Welcome to Appropedia
Page nameoptional
Image alternative textimage-alt

Alternative text of the image, for screen readers and vision-impaired people

Example
Appropedia logo
Stringoptional
Classclass

Extra CSS class of the notice

Suggested values
float
Example
my-custom-notice
Stringoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.