Template documentationedit source

This template is a meta template used to build standardized and mobile-friendly notices.

Usage

Basic

The following wikitext:

{{Notice|This text will be visible on mobile and desktop devices alike.}}

will produce:

While the following:

{{Notice|This text will be visible on mobile and desktop devices alike.|This text will be visible on mobile devices only after the user taps the notices.}}

will produce:

Full

The following wikitext:

{{Notice
| id = some-id
| type = serious
| class = custom-class
| border = red
| background = #faa
| style = border-radius: 10px;
| image = Appropedia.png
| image-size = 80px
| image-link = Welcome to Appropedia
| image-alt = Appropedia logo
| title = This text will be visible on mobile and desktop devices alike.
| text = This text will be visible on mobile devices only after the user taps the notice.
| foot = This text will also be visible on mobile devices only after the user taps the notice.
| category = Example pages
}}

will produce:

See also

Template data

Use this meta template to build notices.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle head 1

Title or headline of the notice.

Example
This page needs additional references.
Stringsuggested
Texttext body 2

Text or body of the notice

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

Small text to the bottom of the notice

Example
Remove this notice after references have been added.
Stringoptional
Typetype

Type of notice (content, growth, info, merge, protection, serious or style)

Default
info
Example
serious
Stringoptional
Categorycategory

Category where to include pages with this notice (only works on pages in the main namespace)

Example
Pages needing references
Stringoptional
Imageimage

Main image of the notice

Default
Commons-emblem-notice.svg
Example
Appropedia.png
Fileoptional
Backgroundbackground background-color

Background color of the notice

Example
#faa
Stringoptional
Borderborder border-color

Border color of the notice

Example
red
Stringoptional
IDid

ID of the notice (used for CSS or JavaScript targeting)

Example
some-id
Stringoptional
Classclass

Extra CSS class of the notice

Example
custom-class
Stringoptional
Stylestyle

Extra CSS of the notice

Example
border-radius: 10px;
Stringoptional
Image sizeimage-size

Size of the image, in pixels

Default
40px
Example
80px
Stringoptional
Image linkimage-link

Page to link from the image

Example
Welcome to Appropedia
Pageoptional
Image alternative textimage-alt

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

Example
Appropedia logo
Stringoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.