Template:Imbox: Difference between revisions
From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
Chalochatu (talk | contribs) Created page with "{{#invoke:Message box|imbox}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" |
Chalochatu (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{#invoke:Message box|imbox}}<noinclude> | <includeonly>{{#invoke:Message box|imbox}}</includeonly> | ||
{{ | <noinclude> | ||
< | == Usage == | ||
The '''Imbox''' template is used to display information or warning boxes in articles and templates. | |||
=== Basic syntax === | |||
<pre> | |||
{{imbox | text = This is an informational box. }} | |||
</pre> | |||
=== Parameters === | |||
; <code>text</code> : The message to display inside the box. | |||
; <code>type</code> : (optional) Controls style. Options are: | |||
* <code>notice</code> (default) | |||
* <code>warning</code> | |||
* <code>error</code> | |||
* <code>info</code> | |||
=== Examples === | |||
* {{imbox | text = This is a default notice box. }} | |||
* {{imbox | text = Be careful, this is a warning! | type = warning }} | |||
* {{imbox | text = An error occurred. | type = error }} | |||
* {{imbox | text = For your information. | type = info }} | |||
[[Category:Message box templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 16:06, 31 August 2025
Usage
The Imbox template is used to display information or warning boxes in articles and templates.
Basic syntax
{{imbox | text = This is an informational box. }}
Parameters
text- The message to display inside the box.
type- (optional) Controls style. Options are:
notice(default)warningerrorinfo
Examples
- This is a default notice box.
- Be careful, this is a warning!
- An error occurred.
- For your information.