Template:Ambox/core: Difference between revisions

From FamilyTree
Jump to navigation Jump to search
Robot (talk | contribs)
No edit summary
Robot (talk | contribs)
No edit summary
 
Line 1: Line 1:
<table class=&quot;metadata plainlinks ambox {{#switch:{{{small|}}}
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}
| left = mbox-small-left
| left = mbox-small-left
}} {{#switch:{{{type|}}}
}} {{#switch:{{{type|}}}
Line 10: Line 10:
| notice    <!-- notice = default -->
| notice    <!-- notice = default -->
| #default  = ambox-notice
| #default  = ambox-notice
}}&quot; style=&quot;{{{style|}}}&quot;>
}}" style="{{{style|}}}">
<tr>
<tr>
{{#switch:{{{image|}}}
{{#switch:{{{image|}}}
| blank    <!-- Fall back to &quot;none&quot;, since deprecated. -->
| blank    <!-- Fall back to "none", since deprecated. -->
| 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. -->
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| #default =  
| #default =  
   <td class=&quot;mbox-image&quot;>{{
   <td class="mbox-image">{{
   #switch:{{{small|}}}
   #switch:{{{small|}}}
   | left = <!-- Don't use the DIV -->  
   | left = <!-- Don't use the DIV -->  
   | #default = <div style=&quot;width: 52px;&quot;>  
   | #default = <div style="width: 52px;">  
   }}
   }}
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
Line 41: Line 41:
   }}</td>
   }}</td>
}}
}}
<td class=&quot;mbox-text&quot; style=&quot;{{{textstyle|}}}&quot;> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
   | <!-- No image. -->
   | <!-- No image. -->
   | <td class=&quot;mbox-imageright&quot;>{{#switch:{{{small|}}}
   | <td class="mbox-imageright">{{#switch:{{{small|}}}
     | left = {{{imageright}}}
     | left = {{{imageright}}}
     | #default = <div style=&quot;width: 52px;&quot;> {{{imageright}}} </div>
     | #default = <div style="width: 52px;"> {{{imageright}}} </div>
     }}</td>
     }}</td>
   }}
   }}
Line 53: Line 53:
</tr>
</tr>
</table><!--  
</table><!--  
Detect and report usage with faulty &quot;type&quot; parameter:
Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
|  <!-- No type fed, is also valid input -->
Line 62: Line 62:
| move
| move
| protection
| protection
| notice    = <!-- Do nothing, valid &quot;type&quot; -->
| notice    = <!-- Do nothing, valid "type" -->
| #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 -->
| #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 -->
}}<!--  
}}<!--  
Detect and report usage of deprecated &quot;image=blank&quot;:
Detect and report usage of deprecated "image=blank":
-->{{#switch:{{{image|}}}
-->{{#switch:{{{image|}}}
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->

Latest revision as of 16:03, 10 October 2010

[create] File:Template-info.svg Template documentation