Difference between revisions of "Template:Mbox"
From Game Detectives Wiki
| [unchecked revision] | [unchecked revision] |
(converted to wikisyntax; optimized code) |
(Revert. MZMcBride: You increased both the pre- and post-expand size, and made it less robust in several ways. I'll explain more on the talk page.) |
||
| Line 1: | Line 1: | ||
| − | + | <table class="ambox | |
| − | |serious =ambox-serious | + | {{#switch:{{{type|}}} |
| − | |content =ambox-content | + | | serious = ambox-serious |
| − | |style | + | | content = ambox-content |
| − | |merge | + | | style = ambox-style |
| − | |notice | + | | merge = ambox-merge |
| − | |#default=ambox-notice | + | | notice = ambox-notice |
| − | }}" | + | | #default = ambox-notice |
| − | {{#ifeq:{{{image}}}|none|<!-- image=none -->|<!-- else --> | + | }}"><tr> |
| − | + | {{#ifeq:{{{image}}}|none| | |
| + | <!-- image=none --> | ||
| + | |<!-- else --> | ||
| + | <td class="ambox-image"><!-- | ||
-->{{#ifeq:{{{image}}}|blank| | -->{{#ifeq:{{{image}}}|blank| | ||
<!-- image=blank --> | <!-- image=blank --> | ||
|<!-- image != blank --> | |<!-- image != blank --> | ||
| − | {{#if:{{{image|}}}|{{{image}}}|<!-- No image param --> | + | {{#if:{{{image|}}}| |
| + | {{{image}}} | ||
| + | |<!-- No image param --> | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| − | |serious =[[Image:Stop hand nuvola.svg|40px]] | + | | serious = [[Image:Stop hand nuvola.svg|40px]] |
| − | |content =[[Image:Emblem-important.svg|40px]] | + | | content = [[Image:Emblem-important.svg|40px]] |
| − | |style | + | | style = [[Image:Broom icon.svg|40px]] |
| − | |merge | + | | merge = [[Image:Merge-split-transwiki default.svg]] |
| − | |notice | + | | notice = [[Image:Info non-talk.png|40px]] |
| − | |#default=[[Image:Info non-talk.png|40px]] | + | | #default = [[Image:Info non-talk.png|40px]] |
}}<!-- End #switch type --> | }}<!-- End #switch type --> | ||
}}<!-- End if image --> | }}<!-- End if image --> | ||
}}<!-- End ifeq image==blank --> | }}<!-- End ifeq image==blank --> | ||
| + | </td> | ||
}}<!-- End ifeq image==none --> | }}<!-- End ifeq image==none --> | ||
| − | + | <td>{{{text}}}</td> | |
{{#if:{{{imageright|}}}| | {{#if:{{{imageright|}}}| | ||
| − | + | <td class="ambox-imageright">{{{imageright}}}</td> | |
}} | }} | ||
| − | + | </tr></table><noinclude> | |
| + | |||
| + | |||
{{template doc}} | {{template doc}} | ||
<!-- Add categories and inter-wikis to the /doc subpage, not here! --> | <!-- Add categories and inter-wikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Revision as of 06:27, 11 September 2007
| 40px | {{{text}}} |