Template:Ambox: Difference between revisions

miraheze>PetraMagna
add stylesheet via templatestyles
 
edit ambox
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Mbox/styles.css"/>
<table class="ambox ambox-{{{type|notice}}}" role="presentation">
{{{!}} style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
<tr>
  | serious  = ambox-serious
<td class="mbox-image">{{{image|[[File:{{#switch:{{{type|notice}}}
  | content  = ambox-content
| notice     = OOjs UI icon info-progressive.svg
  | style    = ambox-style
| content   = Ambox warning pn.svg
  | merge    = ambox-merge
| style     = Ambox wikify.svg
  | notice  = ambox-notice
| speedy    = Ambox speedy deletion.svg
  | #default = ambox-notice
| delete     = Ambox deletion.svg
}}"
| move      = Ambox move.svg
{{!}}-
| protection = Ambox protected.svg
{{#ifeq:{{{image}}}|none
| #default   = OOjs UI icon info-progressive.svg
  | <!-- no image cell -->
}}|40px|link=|alt=]]}}}</td>
  | <nowiki/>
<td class="mbox-text"><span class="mbox-text-span">{{{text|}}}</span></td>
{{!}} class="mbox-image" {{!}} {{#switch:{{{image|{{{type|}}}}}}
</tr>
     | serious  = [[File:Stop hand nuvola.svg|40px]]
</table><noinclude>
    | content = [[File:Emblem-important.svg|40px]]
{{documentation}}
    | style   = [[File:Broom icon.svg|40px]]
</noinclude>
     | merge    = [[File:Merge-split-transwiki default.svg|40px]]
    | notice  = [[File:Info non-talk.png|40px]]
    | blank    = <!-- empty image cell -->
    | #default = {{{image|[[File:Info non-talk.png|40px]]}}}
  }}
}}
{{!}} style="{{{textstyle|}}}" {{!}} {{{text}}}
{{#if:{{{imageright|}}}| <nowiki/>
{{!}} class="mbox-imageright" {{!}} {{#switch:{{{imageright|{{{type|}}}}}}
    | serious  = [[File:Stop hand nuvola.svg|40px]]
    | content  = [[File:Emblem-important.svg|40px]]
    | style    = [[File:Broom icon.svg|40px]]
    | merge    = [[File:Merge-split-transwiki default.svg|40px]]
    | notice  = [[File:Info non-talk.png|40px]]
    | blank    = <!-- empty image cell -->
    | #default = {{{imageright|}}}
  }}
}}
{{!}}-
{{!}}}<noinclude>{{Documentation}}</noinclude>