Template:Ambox: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 4: Line 4:
| small = {{{small|}}}
| small = {{{small|}}}
| id = {{{id|}}}
| id = {{{id|}}}
| class = {{{class|}}}
| class = ambox {{{class|}}}
| style = display: flex; align-items: center; font-size: 95%; background: #fbfbfb; {{{style|}}}
| style = {{{style|}}}
| textstyle = flex-basis: 100%; text-align: left; padding: 0.25em 0.9em; {{{textstyle|}}}
| textstyle = {{{textstyle|}}}
| plainlinks = {{{plainlinks|}}}
| plainlinks = {{{plainlinks|}}}
| text = {{{text|}}}
| text = {{{text|}}}
Line 17: Line 17:
| doc = {{{doc|}}}
| doc = {{{doc|}}}
| cat = {{{cat|}}}
| cat = {{{cat|}}}
}}</includeonly><noinclude>
}}<templatestyles src="Template:Ambox/styles.css"/></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}}.
'''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}}.
Styles can be edited at [[Template:Ambox/styles.css]]


==== Usage: ====
==== Usage: ====
Line 25: Line 27:
| namespace = main
| namespace = main
| text = '''This page is a candidate for deletion.'''
| 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
| style = background: #d33;
| textstyle = color: white;
| 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
}}
}}
Line 36: Line 39:
| namespace = main
| namespace = main
| text = '''This page is a candidate for deletion.'''
| 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
| style = background: #d33;
| textstyle = color: white;
| 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
}}
}}

Latest revision as of 21:58, 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}}.

Styles can be edited at Template:Ambox/styles.css

Usage:

{{Ambox
| namespace = main
| text = '''This page is a candidate for deletion.'''
| style = background: #d33;
| textstyle = color: white;
| info = '''The given reason is:''' {{#if:{{{1|}}}|{{{1|}}}|''No reason supplied!''}}
| image = [[File:Ambox_delete.svg|24px|Deletion candidate]]
| cat = Deleteme
}}

Result:

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