Template:Ambox2

From Helldivers Wiki
Jump to navigation Jump to search

"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

Problem notice amboxes

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 to yes, 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 to yes, no category will be added to the page. Use this only when creating documentation.

Note: Premade amboxes need the base {{Ambox2}} template to work.

Code Result
{{Cleanup}}
Prospecting Drill Stratagem Icon.png
This template needs cleanup to comply with the style guide. [discuss]
Please help improve this page. The talk page may contain suggestions.
{{Delete}}
Hellbomb Stratagem Icon.png
This page is pending deletion. [delete] [discuss, links]
This is due to a violation of the rules or by the author's request.
{{Merge|Example}} Template:Merge
{{Move|Example}}
Eagle Rearm Stratagem Icon.svg
It is suggested that this page be moved to [{{fullurl:Template:Ambox|Example|redirect=no}} Template:Ambox|Example]. [discuss]
{{Split|Example}}

{{Split|Example 1|Example 2|Example 3}}
Orbital Illumination Flare Stratagem Icon.png
It has been suggested that this page be split into [{{fullurl:Template:Ambox|Example|redirect=no}} Template:Ambox|Example]. [discuss]
If this split may potentially be controversial, do not split until a consensus has been reached.
Orbital Illumination Flare Stratagem Icon.png
It has been suggested that this page be split into [{{fullurl:Template:Ambox|Example 1|redirect=no}} Template:Ambox|Example 1], [{{fullurl:Template:Ambox|Example 2|redirect=no}} Template:Ambox|Example 2], and [{{fullurl:Template:Ambox|Example 3|redirect=no}} Template:Ambox|Example 3]. [discuss]
If this split may potentially be controversial, do not split until a consensus has been reached.
{{Stub}}
Reinforce Stratagem Icon.png
This article is a stub. 
You can help by expanding it.
{{Draft}} Template:Draft

Informational amboxes

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 to yes, 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
{{Spoiler warning}} Template:Spoiler warning
{{No direct use}}
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.
{{UsesLua}}

{{UsesLua|Example 1, Example 2}}
|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: Example 1, Example 2.

{{Disambig}}

{{Disambig|Example}}
|1=, the topic name (defaults to {{PAGENAME}}) ----
Disambig.svg This disambiguation page lists articles associated with the same title. If an internal link referred you here, you may wish to change the link to point directly to the intended article.


Disambig.svg This disambiguation page lists articles associated with the same title. If an internal link referred you here, you may wish to change the link to point directly to the intended article.

Optional parameters

You can use optional parameters to further customize a premade ambox. The example below is using tiny=yes and date=01/01/2021.

Prospecting Drill Stratagem Icon.png
This template needs cleanup to comply with the style guide. [discuss]
Please help improve this page. The talk page may contain suggestions.

Creating a custom ambox

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

For this template to work properly, you need the following: