Template:Fmbox: Difference between revisions

From FamilyTree
Jump to navigation Jump to search
Robot (talk | contribs)
Created page with "<table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks fmbox {{#switch:{{{type|}}} | warning = fmbox-warning | editnotice = fmbox-editnotice | system ..."
 
No edit summary
 
Line 1: Line 1:
&lt;table {{#if:{{{id|}}}|id=&quot;{{{id|}}}&quot;}} class=&quot;plainlinks fmbox
<table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks fmbox
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| warning    = fmbox-warning
| warning    = fmbox-warning
| editnotice = fmbox-editnotice
| editnotice = fmbox-editnotice
| system          &lt;!-- system = default --&gt;
| system          <!-- system = default -->
| #default  = fmbox-system
| #default  = fmbox-system
}} {{{class|}}}&quot; style=&quot;{{{style|}}}&quot;&gt;
}} {{{class|}}}" style="{{{style|}}}">
&lt;tr&gt;
<tr>
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| &lt;!-- No image. --&gt;
| <!-- No image. -->
| &lt;td class=&quot;mbox-image&quot;&gt;
| <td class="mbox-image">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Line 15: Line 15:
     | warning    = Cmbox deletion.png
     | warning    = Cmbox deletion.png
     | editnotice = Imbox notice.png
     | editnotice = Imbox notice.png
     | system          &lt;!-- system = default --&gt;
     | system          <!-- system = default -->
     | #default  = Imbox notice.png
     | #default  = Imbox notice.png
     }}|40x40px|link=|alt=]]
     }}|40x40px|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|}}}
| &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;!--
</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 -->
| warning
| warning
| editnotice
| editnotice
| system    =    &lt;!-- Do nothing, valid &quot;type&quot; --&gt;
| system    =    <!-- 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 15:54, 10 October 2010

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