Template:StdBox

From aroonn wiki
Jump to navigation Jump to search
You are viewing the documentation for Template:StdBox, which has been automatically transcluded from its documentation page. You may:
  • Edit the template; or:
  • Edit the documentation

This template creates a "standard box", which contains standard messages related to the main text, and which appears in the flow of the text but in its own division.

This template is derived from, and uses, the specific box templates. The exact one used depends upon the type argument. See, eg, Template:AlertBox for details.

What it does

This template creates a "standard box" containing important article-related messages. It chooses a specific box type (eg AlertBox, InfoBox etc), and selects an icon and "heading" based upon the type argument (though you can override the heading). All you have to supply is the text message content; this would normally state the reason for applying the tag.

Usage

{{StdBox
 |type=<box type>
 |heading=<heading>
 |message=<message>}}
 

Only the message argument is mandatory.

type

Specifies a box type. One of:

  • speedy - page marked for speedy deletion
  • delete - page being considered for deletion
  • content - problem with page content
  • style - problem with page style
  • sandbox - page is a user sandbox
  • notice - (generic)
  • good - page marked as "good article"
  • featured - page marked as "featured article"
  • trash - page marked as trash-related
  • sme - page needs help from subject matter expert
  • stub - page is a stub

heading

Specifies the box content heading. If this is missing, then a suitable default for the type of box will be chosen (except for type notice, when the heading will be omitted).

message

Specifies box content message, which may itself be plain text, wiki markup, HTML markup or other templates. This argument is mandatory.

Related templates

This template uses a specific box drawing template chosen based upon the type argument. See, eg, Template:AlertBox for details.

It uses Template:BoxContent to generate the content.

Examples

The code:

{{StdBox|type=speedy|message=Your article sucks!}}

Produces this result:

This page is marked for speedy deletion
Your article sucks!

The code:

{{StdBox|type=featured|message=Your article rules!}}

Produces this result:

This has been marked as a featured article
Your article rules!