Template:Ambox/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

This is the Article message box meta-template.

It is used to build article message box templates such as {{Stub}}. It offers several different colors, uses default images if no image parameter is given, and has some other features.

You can find the full documentation on its Wikipedia page, however, this page will describe its usage on Uncyclopedia, pilferer of innocent templates.

Usage

{{ambox
|image = [[File:Heinz Beanz.jpg|50px|link=]]
|text = '''You ate way too many beans!'''<br />You must take a dump now or face the consequences later...
}}

The above code will produce this message:

{{ambox
|style = border:1px solid green; background-color:#fff; text-align:center;
|image = [[File:Halal logo.svg|60px]]
|imageright = [[File:Prince Mohammad bin Salman, Oct. 2023.jpg|45px]]
|text = '''Alhamdulillah! This page is certified halal!'''<br>The following article adheres to all known rules of Islamic jurisprudence, and is thus pleasing to [[Allah]].<br><small>''Follow the example of the [[Muhammad|Prophet]] (PBUH) and read only [[:Category:Halal|certified halal]] articles, lest you be declared un-Islamic and banished to [[Hell|Jahannam]]!''</small>
}}

You can also customize this template. The above code will produce this message:

Parameters

name – adds an HTML class attribute to the messagebox, for example, if you set name to bugs, it will add the class box-bugs.
type – changes the look of the messagebox, see type section below
image – specifies an image using full wiki syntax (i.e. [[File:Example.png|40px|link=]])
imageright – specifies an image which will show on the right, can be used together with image
style – adds inline styling for the template, heavily abused on Uncyclopedia, much to the chagrin of Wikipedia DORKS!
text – creates text.
issue – also makes text, but isn't automatically bolded or put in a newline; this parameter is only used in the few "actual" messagebox templates which have a function.
fix – more text, this parameter is only used in the few "actual" messagebox templates which have a function.

type

The type parameter defines the colour of the left bar, and the image that is used by default. The type is chosen based primarily on aesthetics, and Wikipedia's guidelines on how type is used are completely ignored here.

If no type parameter is given the template defaults to |type=notice.

See also

There are seven metatemplates in the Module:Message box family:

  • {{Ambox}}, for messageboxes on article pages.
  • {{Cmbox}}, for messageboxes on category pages.
  • {{Imbox}}, for messageboxes on file (image) pages.
  • {{Tmbox}}, for messageboxes on talk pages.
  • {{Fmbox}}, for header and footer messageboxes.
  • {{Ombox}}, for messageboxes on other types of page.
  • {{Mbox}}, for messageboxes that are used in different namespaces and change their presentation accordingly.