Template:Ambox: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Mbox
<includeonly>{{Mbox
| namespace = main
| namespace = main
| type = {{{type|}}}
| type = {{{type|}}}
Line 17: Line 17:
| doc = {{{doc|}}}
| doc = {{{doc|}}}
| cat = {{{cat|}}}
| cat = {{{cat|}}}
}}<noinclude>
}}</includeonly><noinclude>
'''Ambox''', short for Article Message Box is a pre styled version of {{tl|Mbox}}. It is a base for creating reusable messages such as {{tl|stub}} and {{tl|outdated}}.
 
==== Usage: ====
<pre>
{{Ambox
| namespace = main
| text = '''This page is a candidate for deletion.'''
| style = border: 1px solid #c23446; border-left-width: 0.5em; background-color: #fee;margin: 0 3em; padding: 0.3em 1em 0.3em 1em
| info = '''The given reason is:''' {{#if:{{{1|}}}|{{{1|}}}|''No reason supplied!''}}
| image = [[File:Ambox_delete.png|50px|Deletion candidate]]
| cat = Deleteme
}}
</pre>
 
==== Result: ====
{{Ambox
| namespace = main
| text = '''This page is a candidate for deletion.'''
| style = border: 1px solid #c23446; border-left-width: 0.5em; background-color: #fee;margin: 0 3em; padding: 0.3em 1em 0.3em 1em
| info = '''The given reason is:''' {{#if:{{{1|}}}|{{{1|}}}|''No reason supplied!''}}
| image = [[File:Ambox_delete.png|50px|Deletion candidate]]
| cat = Deleteme
}}
[[Category:Mbox and messagebox templates]]
[[Category:Mbox and messagebox templates]]
[[Category:Article message templates]]
[[Category:Article message templates]]
</noinclude>
</noinclude>

Revision as of 19:06, 30 July 2021

Ambox, short for Article Message Box is a pre styled version of {{Mbox}}. It is a base for creating reusable messages such as {{stub}} and {{outdated}}.

Usage:

{{Ambox
| namespace = main
| text = '''This page is a candidate for deletion.'''
| style = border: 1px solid #c23446; border-left-width: 0.5em; background-color: #fee;margin: 0 3em; padding: 0.3em 1em 0.3em 1em
| info = '''The given reason is:''' {{#if:{{{1|}}}|{{{1|}}}|''No reason supplied!''}}
| image = [[File:Ambox_delete.png|50px|Deletion candidate]]
| cat = Deleteme
}}

Result:

Deletion candidate
This page is a candidate for deletion.
The given reason is: No reason supplied!