Template:Imbox: Difference between revisions

From 'City of Adelaide' History and Genealogy Site
Jump to navigation Jump to search
(Undo revision 7880 by Mr. Stradivarius (talk))
(Undo revision 7957 by Admin (talk))
 
Line 1: Line 1:
<table class="plainlinks imbox
{{#invoke:Message box|imbox}}<noinclude>
{{#switch:{{{type|}}}
| speedy    = imbox-speedy
| delete    = imbox-delete
| content    = imbox-content
| style      = imbox-style
| move      = imbox-move
| protection = imbox-protection
| license    = imbox-license
| featured  = imbox-featured
| notice          <!-- notice = default -->
| #default  = imbox-notice
}}" style="{{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td>
| <td class="mbox-image">
  {{#if:{{{image|}}}
  | {{{image}}}
  | {{#switch:{{{type|}}}
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px|alt=|link=]]
    | delete    = [[Image:Imbox deletion.png|40x40px|alt=|link=]]
    | content    = [[Image:Imbox content.png|40x40px|alt=|link=]]
    | style      = [[Image:Imbox style.png|40x40px]]
    | move      = [[Image:Imbox move.png|40x40px|alt=|link=]]
    | protection = [[Image:Imbox protection.png|40x40px|alt=|link=]]
    | license    = [[Image:Imbox license.png|40x40px|alt=|link=]]
    | featured  = [[Image:Imbox featured.png|40x40px]]
    | notice          <!-- notice = default -->
    | #default  = [[Image:Imbox notice.png|40x40px|alt=|link=]]
    }}
  }}</td>
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="mbox-imageright"> {{{imageright}}} </td>
}}
</tr>
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
}}
</table><!-- Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
| speedy
| delete
| content
| style
| move
| protection
| license
| featured
| notice    =    <!-- Do nothing, valid "type" -->
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:PaxWiki message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<!--
 
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:File message boxes]]}}}}</includeonly><!--
 
--><noinclude>
 
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>
</noinclude>

Latest revision as of 08:10, 17 December 2013

{{#invoke:Message box|imbox}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}