Template:Ambox/doc
"Ambox" is an abbreviation for Article message box. You can use amboxes in articles to indicate something important about the current page, often in the header.
Premade amboxes
[edit]Problem notice amboxes
[edit]These amboxes are used temporarily to notify other editors and visitors about a problem with an article. These amboxes support the following parameters:
|tiny=: If set toyes, the box will have less padding and the icon will be much smaller than default.|class=: Any additional CSS classes to add to the ambox container element.|date=: The date the ambox was added to the page.|nocat=: If set toyes, no category will be added to the page. Use this only when creating documentation.
Note: Premade amboxes need the base Script error: No such module "Template link". template to work.
| Code | Result |
|---|---|
| Script error: No such module "Template link". | This page does not meet Factory Town 2 Wiki's page quality standards. You can edit it to help fix grammar, formatting, or code issues. |
| Script error: No such module "Template link". | Candidate for Deletion This page lacks relevance for Factory Town 2 Wiki and is a candidate for deletion. |
| Script error: No such module "Template link". | It has been proposed that this page be merged with Other Page. |
| Script error: No such module "Template link". | It has been proposed that this page be moved to New Title. |
| Script error: No such module "Template link". Script error: No such module "Template link". |
a new page titled Split Title}} It has been proposed that this page be split into {{#var:pages}}. It has been proposed that this page be split into {{#var:pages}}. |
| Script error: No such module "Template link". | This page is a stub. You can help Factory Town 2 Wiki by expanding it. |
Informational amboxes
[edit]These amboxes are intended as permanent fixtures to a page, to notify visitors about some piece of information relevant to the page. These amboxes support the following parameters in addition to any listed:
|tiny=: If set toyes, the box will have less padding and the icon will be much smaller than default.|class=: Any additional CSS classes to add to the ambox container element.
| Code | Additional parameters | Result |
|---|---|---|
| Script error: No such module "Template link". | Spoiler Warning This page contains spoilers. View at your own discretion. | |
| Script error: No such module "Template link". | Don't call this template directly from any content page! This template is intended to be used inside of another template. Then that template in turn may be used on content pages. | |
| Script error: No such module "Template link". Script error: No such module "Template link". |
|1=, a comma-separated list of modules used |
This template uses one or more modules written in the Lua programming language. For more information, see Wikipedia:Lua or the Lua reference manual on mediawiki.org. Modules used include: None provided. This template uses one or more modules written in the Lua programming language. For more information, see Wikipedia:Lua or the Lua reference manual on mediawiki.org. Modules used include: Module 1, Module 2, Module 3. |
| Script error: No such module "Template link". Script error: No such module "Template link". |
|1=, the topic name (defaults to {{PAGENAME}}) |
This is a disambiguation page for "Ambox/doc". The following is a list of links related to Ambox/doc. This is a disambiguation page for "Topic Name". The following is a list of links related to Topic Name. |
| Script error: No such module "Template link". Script error: No such module "Template link". |
|1=, a comma-separated list of Wikipedia pages used |
This code is adapted from Wikipedia. For the original code, see the following pages: This code is adapted from Wikipedia. For the original code, see the following pages: Template:En-WP_attribution_notice, Wikipedia:Reusing Wikipedia content |
Optional parameters
[edit]You can use optional parameters to further customize a premade ambox. The example below is using tiny=yes and date=01/01/2021.
This page does not meet Factory Town 2 Wiki's page quality standards. You can edit it to help fix grammar, formatting, or code issues. (Message added: 01/01/2021)
Creating a custom ambox
[edit]You can create additional ambox templates as needed using the following parameters:
{{Ambox
| color = The left border color.
| icon = The icon image to be displayed.
| title = The optional title.
| message = The explanation text displayed.
| tiny = If you want the tiny version of the ambox, fill the parameter with "yes".
| date = An optional date of creation for the message.
| class = An optional CSS class for the ambox.
}}
Dependencies
[edit]For this template to work properly, you need the following:
.amboxand any related classes, found in MediaWiki:Common.css.