Template:Ambox: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
| id = {{{id|}}}
| id = {{{id|}}}
| class = {{{class|}}}
| class = {{{class|}}}
| style = display: flex; align-items: center; font-size: 95%; background: #fbfbfb; {{{style|}}}
| style = display: font-size: 95%; background: #fbfbfb; border-radius: 5px; {{{style|}}}
| textstyle = {{{textstyle|}}}
| textstyle = {{{textstyle|}}}
| plainlinks = {{{plainlinks|}}}
| plainlinks = {{{plainlinks|}}}
Line 35: Line 35:
{{Ambox
{{Ambox
| namespace = main
| namespace = main
| style = background-color: #fee;
| text = '''This page is a candidate for deletion.'''
| text = '''This page is a candidate for deletion.'''
| style = background-color: #fee;
| info = '''The given reason is:''' {{#if:{{{1|}}}|{{{1|}}}|''No reason supplied!''}}
| info = '''The given reason is:''' {{#if:{{{1|}}}|{{{1|}}}|''No reason supplied!''}}
| image = [[File:Ambox_delete.png|50px|Deletion candidate]]
| image = [[File:Ambox_delete.svg|24px|Deletion candidate]]
| cat = Deleteme
| cat = Deleteme
}}
}}

Revision as of 18:34, 31 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 = background-color: #fee;
| 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!