সাঁচ:Notice2

অসমীয়া ৱিকিপিডিয়াৰ পৰা

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 Wikipedia: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:

{{Notice2|heading=Heading text|1=Include text here.}}

Which renders like this:

Custom image option[সম্পাদনা কৰক]

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

{{Notice2|image=Stop hand nuvola.svg|1=Include text here.}}

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 alt text defaults to Notice  , 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:

{{Notice2|1=Include text here.}}

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:

{{Notice2|small=yes|heading=Heading text|1=Include text here.}}


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

{{Notice2|small=yes|smallimage|Stop hand nuvola.sfg|heading=Heading text|1=Include text here.}}


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:", "Wikipedia:", "Help:" and so on.

The equals sign limitation[সম্পাদনা কৰক]

The parameter |1= is usually optional:

{{Notice2|Include text here.}}

is usually the same as

{{Notice2|1=Include text here.}}

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:

{{Notice2|1=Following this parameter, an equal sign ("=") will be read properly.}}

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

{{Notice2|An entity-encoded equal sign ("=") will also be read properly.}}

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.

See also[সম্পাদনা কৰক]

There are other message templates, which serve similar purposes:

  • {{Notice}} – same as this one, but with a centered heading (when present)
  • {{Caution}} – for messages indicating serious problems
  • {{Warning}} – for important warnings
  • {{Consensus}} – for topics the goal of which is reaching consensus
  • {{Ambox}} – Article message boxes of any type. There is comprehensive information in its documentation about the different options for article message boxes.