Template:Ambox: Difference between revisions
Jump to navigation
Jump to search
Added some default styles, will expand on this later maybe. |
No edit summary |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Mbox | <includeonly>{{Mbox | ||
| namespace = main | | namespace = main | ||
| type = {{{type|}}} | | type = {{{type|}}} | ||
| small = {{{small|}}} | | small = {{{small|}}} | ||
| id = {{{id|}}} | | id = {{{id|}}} | ||
| class = {{{class|}}} | | class = ambox {{{class|}}} | ||
| style = | | style = {{{style|}}} | ||
| textstyle = | | textstyle = {{{textstyle|}}} | ||
| plainlinks = {{{plainlinks|}}} | | plainlinks = {{{plainlinks|}}} | ||
| text = {{{text|}}} | | text = {{{text|}}} | ||
Line 17: | Line 17: | ||
| doc = {{{doc|}}} | | doc = {{{doc|}}} | ||
| cat = {{{cat|}}} | | cat = {{{cat|}}} | ||
}}<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}}. | |||
Styles can be edited at [[Template:Ambox/styles.css]] | |||
==== Usage: ==== | |||
<pre> | |||
{{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 | |||
}} | |||
</pre> | |||
==== Result: ==== | |||
{{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 | |||
}} | }} | ||
[[Category:Mbox and messagebox templates]] | |||
[[Category:Article message templates]] | |||
</noinclude> |
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 }}