Difference between revisions of "Template:Ambox/core"

From Recidemia
Jump to: navigation, search
m (1 revision: 7)
Line 10: Line 10:
 
| notice    <!-- notice = default -->
 
| notice    <!-- notice = default -->
 
| #default  = ambox-notice
 
| #default  = ambox-notice
}} {{{class|}}}" style="{{{style|}}}">
+
}}" style="{{{style|}}}">
 
<tr>
 
<tr>
 
{{#switch:{{{image|}}}
 
{{#switch:{{{image|}}}
Line 24: Line 24:
 
   | {{{image}}}
 
   | {{{image}}}
 
   | [[File:{{#switch:{{{type|}}}
 
   | [[File:{{#switch:{{{type|}}}
     | speedy    = Ambox speedy deletion.png
+
     | speedy    = Ambox warning pn.svg
     | delete    = Ambox deletion.png
+
     | delete    = Ambox warning pn.svg
     | content    = Ambox content.png
+
     | content    = Book important2.svg
 
     | style      = Edit-clear.svg
 
     | style      = Edit-clear.svg
     | move      = Ambox move.png
+
     | move      = Merge-split-transwiki default.svg
     | protection = Ambox protection.png
+
     | protection = Padlock-silver-medium.svg
 
     | notice          <!-- notice = default -->
 
     | notice          <!-- notice = default -->
     | #default  = Ambox notice.png
+
     | #default  = Information icon4.svg
 
     }} | {{#switch:{{{small|}}}  
 
     }} | {{#switch:{{{small|}}}  
 
       | left = 20x20px  
 
       | left = 20x20px  
Line 41: Line 41:
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} {{#if:{{{date|}}}
+
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
|<small>''({{{date}}})''</small>
 
}}</td>
 
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
 
| {{#ifeq:{{{imageright|}}}|none
 
| {{#ifeq:{{{imageright|}}}|none
Line 65: Line 63:
 
| 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>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
+
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>
}}<!--
 
Detect and report usage of deprecated "image=blank":
 
-->{{#switch:{{{image|}}}
 
| blank = [[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 16:50, 22 March 2012

[edit] [history] [purge] Documentation icon Template documentation

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

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

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

For more documentation see {{ambox}}.ja:Template:Ambox/core sc:Template:Ambox/core sl:Predloga:Polje za članke/core zh:模板:Ambox/core