1,776
edits
(cat2 parameter + doc) |
(adding ambox-mini (since it's defined in Mediawiki:Common.css) + doc) |
||
Line 1: | Line 1: | ||
{| style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{lc:{{{type|}}}}} | {| style="{{{style|}}}" class="metadata plainlinks ambox {{#ifeq: {{{mini|}}}|yes|ambox-mini}} {{#switch:{{lc:{{{type|}}}}} | ||
| delete|serious = ambox-serious | | delete|serious = ambox-serious | ||
| content = ambox-content | | content = ambox-content | ||
Line 11: | Line 11: | ||
| class="ambox-image" | {{#ifeq:{{lc:{{{image}}}}}|none | | class="ambox-image" | {{#ifeq:{{lc:{{{image}}}}}|none | ||
| <!-- no image cell; empty cell necessary for text cell to have 100% width --> | | <!-- no image cell; empty cell necessary for text cell to have 100% width --> | ||
| <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}} | | <div style="width:{{#ifeq: {{{mini|}}}|yes|30px|52px}};"> {{#switch:{{{image|{{{type|}}}}}} | ||
| delete|serious = [[File:File-locked.jpg|40px|link=]] | | delete|serious = [[File:File-locked.jpg|{{#ifeq: {{{mini|}}}|yes|20px|40px}}|link=]] | ||
| content = [[File:Emblem-important.svg|40px|link=]] | | content = [[File:Emblem-important.svg|{{#ifeq: {{{mini|}}}|yes|20px|40px}}|link=]] | ||
| style = [[File:Broom icon-jpgvrs.jpg|40px|link=]] | | style = [[File:Broom icon-jpgvrs.jpg|{{#ifeq: {{{mini|}}}|yes|20px|40px}}|link=]] | ||
| merge = [[File:Merge-split-transwiki default.svg|link=]] | | merge = [[File:Merge-split-transwiki default.svg|{{#ifeq: {{{mini|}}}|yes|20px|40px}}|link=]] | ||
| notice = [[File:Info non-talk.png|40px|link=]] | | notice = [[File:Info non-talk.png|{{#ifeq: {{{mini|}}}|yes|20px|40px}}|link=]] | ||
| protection = [[File:Lock.svg|x40px|link=]] | | protection = [[File:Lock.svg|{{#ifeq: {{{mini|}}}|yes|x20px|x40px}}|link=]] | ||
| blank = <span style="display:none">blank</div> | | blank = <span style="display:none">blank</div> | ||
| #default = {{{image|[[File:Info non-talk.png|40px|link=]]}}} | | #default = {{{image|[[File:Info non-talk.png|{{#ifeq: {{{mini|}}}|yes|20px|40px}}|link=]]}}} | ||
}}</div> | }}</div> | ||
}} | }} | ||
| class="ambox-text" | {{{text|}}} | | class="ambox-text" style="font-size:{{#ifeq: {{{mini|}}}|yes|95%|100%}};" | {{{text|}}} | ||
{{#if:{{{imageright|}}}| | {{#if:{{{imageright|}}}| | ||
{{!}} class="ambox-imageright" style="width:52px;" {{!}} {{{imageright}}} | {{!}} class="ambox-imageright" style="width:{{#if: {{{mini|}}}|30px|52px}};" {{!}} {{{imageright}}} | ||
}} | }} | ||
|} | |} | ||
Line 40: | Line 40: | ||
|image = | |image = | ||
|imageright = | |imageright = | ||
|mini = | |||
|category = | |category = | ||
|includecat = | |includecat = | ||
Line 74: | Line 75: | ||
<pre>{{Ambox|type=content|text=Hello world!|imageright=[[File:Award-goldstar.png|40px]]}}</pre> | <pre>{{Ambox|type=content|text=Hello world!|imageright=[[File:Award-goldstar.png|40px]]}}</pre> | ||
{{Ambox|type=content|text=Hello world!|imageright=[[File:Award-goldstar.png|40px]]}} | {{Ambox|type=content|text=Hello world!|imageright=[[File:Award-goldstar.png|40px]]}} | ||
{{Ambox|type=content|text=Hello world!|mini=yes}} | |||
'''mini''' parameter allows changing the message box to a mini version. The mini version is a smaller, right floating box with smaller text and smaller default images. Example on the right. Note that if you use custom images through '''image''' or '''rightimage''', you must change their size yourself. In order to use the mini version, write "yes". | |||
<pre>{{Ambox|type=content|text=Hello world!|mini=yes}}</pre> | |||
'''category''' parameter allows a tracking category for pages with this template. Only use the name of the category, without "Category:" in front. | '''category''' parameter allows a tracking category for pages with this template. Only use the name of the category, without "Category:" in front. |
edits