Editing Template:Infobox

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
{{Documentation subpage}}
{{documentation}}
This template is used in many [[:Category:Ambox Derived Works|pages]].
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
 
</noinclude>
== History ==
This template is a derived work. It is, however, NOT exactly the same as Wikipedia's template of the same name!  All CSS has been integrated into the template, and therefore some features are not available. However it is still a very useful template!
 
== Usage instructions ==
Example to display a notice:
<pre><nowiki>
{{Ambox
| type  = notice
| text  = Hello world!
}}
</nowiki></pre>
The code above should return:
{{Ambox
| type  = notice
| text  = Hello world!
}}
 
There are lots more examples of ambox use on the [[Wiki labels]] page.
 
=== type ===
Amboxes are divided into various types.  Each type should have a corresponding colour code.  The colour-coding helps to inform of the severity of the issues at a glance, so you can use the following parameters to change the color of your ambox.
 
{{ambox
|type= danger
|text= <code><nowiki>|type= danger</nowiki></code>, deletion and other serious warnings, concerns, and serious issues such as {{tl|delete}} and {{tl|delete proposal}}
}}
 
{{ambox|stacked=yes
|type= warning
|text= <code><nowiki>|type= warning</nowiki></code>, important concerns and notes, major issues such as {{tl|Delete_proposal}}
}}
 
{{ambox|stacked=yes
|type= caution
|text= <code><nowiki>|type= caution</nowiki></code>, recommended operations, moderate to fairly major issues, such as {{tl|cleanup}}
}}
 
{{ambox|stacked=yes
|type= detail
|text= <code><nowiki>|type= detail</nowiki></code>, minor to fairly moderate issues such as {{tl|OutOfDate}}
}}
 
{{ambox|stacked=yes
|type= proposal
|text= <code><nowiki>|type= proposal</nowiki></code>, move, transwiki and copy to Wikimedia Commons proposals such as {{tl|move}}
}}
 
{{ambox|stacked=yes
|type= protection
|text= <code><nowiki>|type= protection</nowiki></code>, page is protected against edits.
}}
 
{{ambox|stacked=yes
|type= notice
|text= <code><nowiki>|type= notice</nowiki></code>, general notices and minor issues such as {{tl|stub}}
}}
 
{{ambox|stacked=yes
|type= approval
|text= <code><nowiki>|type= approval</nowiki></code>, done operations such as {{tl|cleaned}}
}}
 
=== stacked ===
 
To display multiple boxes stacked on top of each other (without anything else between them), you may set the optional <code>stacked=</code> parameter to any non-empty value for all successive occurences of the box (except the first one), as in the examples above.
 
=== imageright ===
 
You can display an additional small image (icon) on the right hand side of the box by passing an 'imageright' parameter with an image reference. For example:
<nowiki>imageright = [[File:Broom icon.svg|40px|link=WikiProject Cleanup]]</nowiki>
(This adds the little sweeping broom icon on the right which you see on [[:Template:Cleanup]])
<includeonly>
[[Category:Ambox-derived works]]
[[Category:Message box templates]]
</includeonly>
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | ° &nbsp; · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · Special:MyLanguage/ · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight lang="php"></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar name=1></tvar> · {{DEFAULTSORT:}} · <s></s>