Jump to content

Template:Ambox: Difference between revisions

From SeptemWiki
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|class="ambox plainlinks {{#switch:{{{type|}}}|protection=ambox-protection|speedy=ambox-speedy|move=ambox-move|delete=ambox-delete|style=ambox-style|content=ambox-content|notice=ambox-notice|ambox-notice}} {{#switch:{{{small|}}}|left=mbox-small-left|yes=mbox-small|}}
<includeonly>{|class="ambox plainlinks {{#switch:{{{type|}}}|protection=ambox-protection|speedy=ambox-speedy|move=ambox-move|delete=ambox-delete|style=ambox-style|content=ambox-content|notice=ambox-notice|ambox-notice}} {{#switch:{{{small|}}}|left=mbox-small-left|yes=mbox-small|}}
|class="mbox-image"|{{#if: {{{image|}}}|{{{image}}}|[[File:{{#switch:{{{type|}}}|speedy=Ambox delete.png|move=Ambox move.png|delete=Ambox delete.png|protection=Ambox protection.png|content=Ambox content.png|style=Ambox style.png|notice=Ambox information.png|Ambox information.png}}|{{#if: {{{small|}}}|20px|40px}}]]}}
|class="mbox-image"|{{#if: {{{image|}}}|{{{image}}}|[[File:{{#switch:{{{type|}}}|speedy=Ambox delete.png|move=Ambox move.png|delete=Ambox delete.png|protection=Ambox protection.png|content=Ambox content.png|style=Ambox style.png|notice=Ambox information.png|Ambox information.png}}|{{#if: {{{small|}}}|20px|40px}}]]}}
|class="mbox-text"|{{#if: {{{text|}}}|{{{text}}}|Lorem ipsum dolor sit}}{{#if: {{{date|}}}| <br><small>''({{{date}}})''</small>}}
|class="mbox-text"{{#if: {{{textstyle|}}}| style="{{{textstyle}}}"}}|{{#if: {{{text|}}}|{{{text}}}|Lorem ipsum dolor sit}}{{#if: {{{date|}}}| <br><small>''({{{date}}})''</small>}}
|}
|}
{{#if: {{{cat|}}}|[[Category:{{{cat}}}]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
{{#if: {{{category|}}}|{{main other|[[Category:{{{category}}}]]}}}}</includeonly><noinclude>{{Namespace detect|template=[[Category:Banner templates]]|other=}}{{Documentation}}</noinclude>

Latest revision as of 17:09, 9 April 2016

Documentation for Template:Ambox[view] [edit] [history]


This template is a simplified version of Wikipedia's message box template.

Several different types are available in the Wikipedia version. We've implemented the ones which make sense for us.


{{ambox|type=delete|text=Articles to be deleted.}}
{{ambox|type=content|text=Comments about the content of an article.}}
{{ambox|type=style|text=Comments about the style of an article.}}
{{ambox|type=notice|text=General notices.}}
{{ambox|type=move|text=Move/rename and split/merge proposals.}}
{{ambox|type=protection|text=Notices about articles being protected.}}

You can make a small message box off to the left, with smaller icon, by adding small=left to the parameters.

{{ambox|type=notice|small=left|text=This is a small notice message.}}


You can include an image of your choice by giving the image tag as you would in an article. Note that you must specify the pixel size of the image, whether you then use the small=left parameter or not.

{{ambox|type=style|small=left|image=[[File:Flag of Triparia.png|20px|alt="Flag of Triparia"]]|text=This is a small style message (yellow bar) involving Triparia.}}


If you include a cat=... parameter, the box will add the page to the named category.

{{ambox|type=notice|small=left|text=This is a small notice message.|cat=Articles with small notice messages}}


Pages that use this Template
Templates that use this Template