Template:Ambox/core: Difference between revisions

From FamilyTree
Jump to navigation Jump to search
Robot (talk | contribs)
Created page with "<table class="metadata plainlinks ambox {{#switch:{{{small|}}} | left = mbox-small-left }} {{#switch:{{{type|}}} | speedy = ambox-speedy | delete = ambox-delete |..."
 
Robot (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
&lt;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 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;
}}" style="{{{style|}}}">
&lt;tr&gt;
<tr>
{{#switch:{{{image|}}}
{{#switch:{{{image|}}}
| blank    &lt;!-- Fall back to &quot;none&quot;, since deprecated. --&gt;
| blank    <!-- Fall back to "none", 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="mbox-empty-cell"></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="mbox-image">{{
   #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="width: 52px;">
   }}
   }}
   {{#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="mbox-text" style="{{{textstyle|}}}"> {{{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="mbox-imageright">{{#switch:{{{small|}}}
     | left = {{{imageright}}}
     | left = {{{imageright}}}
     | #default = &lt;div style=&quot;width: 52px;&quot;&gt; {{{imageright}}} &lt;/div&gt;
     | #default = <div style="width: 52px;"> {{{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 "type" 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 "type" -->
| #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="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 -->
}}&lt;!--  
}}<!--  
Detect and report usage of deprecated &quot;image=blank&quot;:
Detect and report usage of deprecated "image=blank":
--&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>

Latest revision as of 16:03, 10 October 2010

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