Difference between revisions of "Template:Ambox/core"

From FamilyTree
Jump to navigation Jump to search
(Created page with "<table class="metadata plainlinks ambox {{#switch:{{{small|}}} | left = mbox-small-left }} {{#switch:{{{type|}}} | speedy = ambox-speedy | delete = ambox-delete |...")
 
Line 1: Line 1:
&lt;table class=&quot;metadata plainlinks ambox {{#switch:{{{small|}}}
+
<table class=&quot;metadata plainlinks ambox {{#switch:{{{small|}}}
 
| left = mbox-small-left
 
| left = mbox-small-left
 
}} {{#switch:{{{type|}}}
 
}} {{#switch:{{{type|}}}
Line 8: Line 8:
 
| move      = ambox-move
 
| move      = ambox-move
 
| protection = ambox-protection
 
| protection = ambox-protection
| notice    &lt;!-- notice = default --&gt;
+
| notice    <!-- notice = default -->
 
| #default  = ambox-notice
 
| #default  = ambox-notice
}}&quot; style=&quot;{{{style|}}}&quot;&gt;
+
}}&quot; style=&quot;{{{style|}}}&quot;>
&lt;tr&gt;
+
<tr>
 
{{#switch:{{{image|}}}
 
{{#switch:{{{image|}}}
| blank    &lt;!-- Fall back to &quot;none&quot;, since deprecated. --&gt;
+
| blank    <!-- Fall back to &quot;none&quot;, since deprecated. -->
| none = &lt;td class=&quot;mbox-empty-cell&quot;&gt;&lt;/td&gt;   &lt;!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --&gt;
+
| none = <td class=&quot;mbox-empty-cell&quot;></td>   <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
 
| #default =  
 
| #default =  
   &lt;td class=&quot;mbox-image&quot;&gt;{{
+
   <td class=&quot;mbox-image&quot;>{{
 
   #switch:{{{small|}}}
 
   #switch:{{{small|}}}
   | left = &lt;!-- Don't use the DIV --&gt;
+
   | left = <!-- Don't use the DIV -->
   | #default = &lt;div style=&quot;width: 52px;&quot;&gt;
+
   | #default = <div style=&quot;width: 52px;&quot;>
 
   }}
 
   }}
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
Line 30: Line 30:
 
     | move      = Ambox move.png
 
     | move      = Ambox move.png
 
     | protection = Ambox protection.png
 
     | protection = Ambox protection.png
     | notice          &lt;!-- notice = default --&gt;
+
     | notice          <!-- notice = default -->
 
     | #default  = Ambox notice.png
 
     | #default  = Ambox notice.png
 
     }} | {{#switch:{{{small|}}}  
 
     }} | {{#switch:{{{small|}}}  
Line 37: Line 37:
 
       }} |link=|alt=]]
 
       }} |link=|alt=]]
 
   }}{{#switch:{{{small|}}}
 
   }}{{#switch:{{{small|}}}
   | left = &lt;!-- Don't use the /DIV --&gt;
+
   | left = <!-- Don't use the /DIV -->
   | #default = &lt;/div&gt;
+
   | #default = </div>
   }}&lt;/td&gt;
+
   }}</td>
 
}}
 
}}
&lt;td class=&quot;mbox-text&quot; style=&quot;{{{textstyle|}}}&quot;&gt; {{{text}}} &lt;/td&gt;
+
<td class=&quot;mbox-text&quot; style=&quot;{{{textstyle|}}}&quot;> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
 
| {{#ifeq:{{{imageright|}}}|none
 
| {{#ifeq:{{{imageright|}}}|none
   | &lt;!-- No image. --&gt;
+
   | <!-- No image. -->
   | &lt;td class=&quot;mbox-imageright&quot;&gt;{{#switch:{{{small|}}}
+
   | <td class=&quot;mbox-imageright&quot;>{{#switch:{{{small|}}}
 
     | left = {{{imageright}}}
 
     | left = {{{imageright}}}
     | #default = &lt;div style=&quot;width: 52px;&quot;&gt; {{{imageright}}} &lt;/div&gt;
+
     | #default = <div style=&quot;width: 52px;&quot;> {{{imageright}}} </div>
     }}&lt;/td&gt;
+
     }}</td>
 
   }}
 
   }}
 
}}
 
}}
&lt;/tr&gt;
+
</tr>
&lt;/table&gt;&lt;!--  
+
</table><!--  
 
Detect and report usage with faulty &quot;type&quot; parameter:
 
Detect and report usage with faulty &quot;type&quot; parameter:
--&gt;{{#switch:{{{type|}}}
+
-->{{#switch:{{{type|}}}
&lt;!-- No type fed, is also valid input --&gt;
+
<!-- No type fed, is also valid input -->
 
| speedy
 
| speedy
 
| delete
 
| delete
Line 62: Line 62:
 
| move
 
| move
 
| protection
 
| protection
| notice    = &lt;!-- Do nothing, valid &quot;type&quot; --&gt;
+
| notice    = <!-- Do nothing, valid &quot;type&quot; -->
| #default  = &lt;div style=&quot;text-align: center;&quot;&gt;This message box is using an invalid &quot;type={{{type|}}}&quot; parameter and needs fixing.&lt;/div&gt;[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]&lt;!-- Sort on namespace --&gt;
+
| #default  = <div style=&quot;text-align: center;&quot;>This message box is using an invalid &quot;type={{{type|}}}&quot; parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}&lt;!--  
+
}}<!--  
 
Detect and report usage of deprecated &quot;image=blank&quot;:
 
Detect and report usage of deprecated &quot;image=blank&quot;:
--&gt;{{#switch:{{{image|}}}
+
-->{{#switch:{{{image|}}}
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]&lt;!-- Sort on namespace --&gt;
+
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}&lt;noinclude&gt;
+
}}<noinclude>
 
{{pp-template}}
 
{{pp-template}}
 
{{documentation}}
 
{{documentation}}
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
&lt;/noinclude&gt;
+
</noinclude>

Revision as of 16:02, 10 October 2010

[create] 50px Template documentation