Template:Ambox: Difference between revisions

Jump to navigation Jump to search
added ambox-delete & ambox-protection per Mediawiki:Common.css; tracking category system; display:none to replace blank; starting doc
(gentle modernization, replaced images where available, WIP (previously abandoned template))
(added ambox-delete & ambox-protection per Mediawiki:Common.css; tracking category system; display:none to replace blank; starting doc)
Line 1: Line 1:
{| style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
{| style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
   | serious  = ambox-serious
   | delete|serious  = ambox-serious
   | content  = ambox-content
   | content  = ambox-content
   | style    = ambox-style
   | style    = ambox-style
   | merge    = ambox-merge
   | merge    = ambox-merge
  | protection = ambox-protection
   | notice  = ambox-notice
   | notice  = ambox-notice
   | #default = ambox-notice
   | #default = ambox-notice
Line 11: Line 12:
   | <!-- 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:52px;"> {{#switch:{{{image|{{{type|}}}}}}
     | serious  = [[File:File-locked.jpg|40px|link=]]
     | delete|serious  = [[File:File-locked.jpg|40px|link=]]
     | content  = [[File:Emblem-important.svg|40px|link=]]
     | content  = [[File:Emblem-important.svg|40px|link=]]
     | style    = [[File:Broom icon-jpgvrs.jpg|40px|link=]]
     | style    = [[File:Broom icon-jpgvrs.jpg|40px|link=]]
     | merge    = [[File:Merge-split-transwiki default.svg|link=]]
     | merge    = [[File:Merge-split-transwiki default.svg|link=]]
     | notice  = [[File:Info non-talk.png|40px|link=]]
     | notice  = [[File:Info non-talk.png|40px|link=]]
     | blank    = [[File:No image.svg|40px|link=]]
     | protection = [[File:Info non-talk.png|40px|link=]]
    | blank    = <span style="display:none">blank</div>
     | #default = {{{image|[[File:Info non-talk.png|40px|link=]]}}}
     | #default = {{{image|[[File:Info non-talk.png|40px|link=]]}}}
   }}</div>
   }}</div>
Line 24: Line 26:
   {{!}} class="ambox-imageright" style="width:52px;" {{!}} {{{imageright}}}
   {{!}} class="ambox-imageright" style="width:52px;" {{!}} {{{imageright}}}
}}
}}
|}<noinclude>
|}
{{#ifeq: {{{includecat|}}} | no | | {{#if: {{{category|}}} | [[Category:{{{category}}}]] }} }}<noinclude>{{Documentation|CONTENT=
For the creation of Wiki article message boxes.
 
{{Ambox|type=serious|text=Hello world!}}
{{Ambox|type=serious|text=Hello world!}}
{{Ambox|type=content|text=Hello world!}}
{{Ambox|type=content|text=Hello world!}}
{{Ambox|type=style|text=Hello world!}}
{{Ambox|type=style|text=Hello world!}}
{{Ambox|type=merge|text=Hello world!}}
{{Ambox|type=merge|text=Hello world!}}
{{Ambox|type=protection|text=Hello world!}}
{{Ambox|type=notice|text=Hello world!}}
{{Ambox|type=notice|text=Hello world!}}
{{Ambox|type=blank|text=Hello world!}}
{{Ambox|type=blank|text=Hello world!}}
}}
[[Category:Wiki System Templates]]
</noinclude>
</noinclude>
1,776

edits

Navigation menu