Template:Ombox/core: Difference between revisions

From FamilyTree
Jump to navigation Jump to search
Robot (talk | contribs)
Created page with "<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} {{#switch:{{{type|}}} | speedy = ombox-speedy | delete = ombox-delete | content = ombox-co..."
 
Robot (talk | contribs)
No edit summary
 
Line 1: Line 1:
&lt;table class=&quot;plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}}  
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}}  
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| speedy    = ombox-speedy
| speedy    = ombox-speedy
Line 7: Line 7:
| move      = ombox-move
| move      = ombox-move
| protection = ombox-protection
| protection = ombox-protection
| notice          &lt;!-- notice = default --&gt;
| notice          <!-- notice = default -->
| #default  = ombox-notice
| #default  = ombox-notice
}}&quot; style=&quot;{{{style|}}}&quot;&gt;
}}" style="{{{style|}}}">
&lt;tr&gt;
<tr>
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| &lt;!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --&gt;&lt;td class=&quot;mbox-empty-cell&quot;&gt;&lt;/td&gt;
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td>
| &lt;td class=&quot;mbox-image&quot;&gt;
| <td class="mbox-image">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Line 23: Line 23:
     | move      = Imbox move.png
     | move      = Imbox move.png
     | protection = Imbox protection.png
     | protection = Imbox protection.png
     | notice          &lt;!-- notice = default --&gt;
     | notice          <!-- notice = default -->
     | #default  = Imbox notice.png
     | #default  = Imbox notice.png
     }} | {{#ifeq:{{{small|}}}|yes
     }} | {{#ifeq:{{{small|}}}|yes
Line 29: Line 29:
     | 40x40px
     | 40x40px
     }}|link=|alt=]]
     }}|link=|alt=]]
   }}&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; {{{imageright}}} &lt;/td&gt;
   | <td class="mbox-imageright"> {{{imageright}}} </td>
   }}
   }}
}}
}}
&lt;/tr&gt;
</tr>
&lt;/table&gt;&lt;!-- Detect and report usage with faulty &quot;type&quot; parameter:
</table><!-- 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 48: Line 48:
| 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;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:06, 10 October 2010

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