Template:Notice2/doc

This is the Notice2 message box.

This message box is primarily intended for the top of talk and project pages and sections within them.

This template should not be used on articles themselves. If there is a major problem with an article, see WikiQueer:Template messages for lists of dispute and cleanup templates that can be used to identify the issue.

This box automatically changes style depending on what kind of page it is shown on. That is, it uses the standardised message box styles for the different types of pages.

This template is essentially the same as Notice except that it left-justifies the heading (if present) instead of centering it, and has some additional usability and accessibility improvements, such as support for alt text on custom images, and use of proper English in is parameter names.

Heading option
An optional heading can be added, like this:

Which renders like this:

Custom image option
The box can also take an image parameter. Like this:

Which renders like this:

The heading and image parameters can of course be used at the same time.

If the box will be used on a talk page, it should also include smallimage with the same filename, in case some editor adds the small parameter (see below),

The  text defaults to , but the alt value can be changed to something else that matches the "alarmishness" of the image, e.g. "Note", "Warning", etc.

Talk pages
This is how this box looks on any talk page. That is, pages that start with "Talk:", "User talk:", "Image talk:" and so on. Here's the basic box:

Which renders like this:

Small option
The small parameter only works on talk pages, and changes the template to a floating box on the right-hand side of the page, with smaller image (if specified) and smaller text. Like this:



If a custom image is used (see above), the a custom smallimage must also be used.



Image and category pages
This is how this box looks on image pages:

This is how this box looks on category pages:

Other pages
This is how this box looks on most other pages, such as pages that start with "User:", "WikiQueer:", "Help:" and so on.

The equals sign limitation
The parameter 1 is usually optional:

is usually the same as

But the 1 part must be used before the content in the main text if that content contains an equals sign ("="). This is a limitation of the MediaWiki software's ParserFunction syntax. Example:

Another solution is to leave off the 1 but escape any "=" characters with an character entity reference:

It is safest to use 1, since it "future-proofs" the tag from later editor's changes which could include a "=" not expected by the original editor.