Difference between revisions of "Template:Ombox/core"

From Recidemia
Jump to: navigation, search
m (Protected "Template:Ombox/core": High-impact page ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(Add class parameter)
Line 9: Line 9:
 
| notice          <!-- notice = default -->
 
| notice          <!-- notice = default -->
 
| #default  = ombox-notice
 
| #default  = ombox-notice
}}" style="{{{style|}}}">
+
}} {{{class|}}}" style="{{{style|}}}">
 
<tr>
 
<tr>
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
Line 16: Line 16:
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
 
   | {{{image}}}
 
   | {{{image}}}
   | [[File:{{#switch:{{{type|}}}
+
   | [[Image:{{#switch:{{{type|}}}
     | speedy    = Ambox warning pn.svg
+
     | speedy    = Imbox speedy deletion.png
     | delete    = Ambox warning pn.svg
+
     | delete    = Imbox deletion.png
     | content    = Ambox Content.svg
+
     | content    = Imbox content.png
 
     | style      = Edit-clear.svg
 
     | style      = Edit-clear.svg
     | move      = Merge-split-transwiki default.svg
+
     | move      = Imbox move.png
     | protection = Padlock-silver-medium.svg
+
     | protection = Imbox protection.png
 
     | notice          <!-- notice = default -->
 
     | notice          <!-- notice = default -->
     | #default  = Information icon4.svg
+
     | #default  = Imbox notice.png
 
     }} | {{#ifeq:{{{small|}}}|yes
 
     }} | {{#ifeq:{{{small|}}}|yes
 
     | 30x30px
 
     | 30x30px
Line 49: Line 49:
 
| protection
 
| protection
 
| notice    =    <!-- Do nothing, valid "type" -->
 
| notice    =    <!-- Do nothing, valid "type" -->
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>
+
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
}}<noinclude>
 
}}<noinclude>
 +
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 02:47, 30 November 2011

[edit] [history] [purge] 50px Template documentation

This is the {{ombox/core}} sub-template.

Do not use this template directly, use {{ombox}} instead.

This template is called from {{ombox}}. It holds most of the code for {{ombox}}, while {{ombox}} does parameter preprocessing. Thus simplifying the code in {{ombox/core}}.

For more documentation see {{ombox}}.