Template:Ambox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MZMcBride
converted to wikisyntax; optimized code
meta>Davidgothberg
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:
{| class="ambox {{#switch:{{{type|}}}
<table class="ambox  
|serious =ambox-serious
{{#switch:{{{type|}}}
|content =ambox-content
| serious = ambox-serious
|style   =ambox-style
| content = ambox-content
|merge   =ambox-merge
| style   = ambox-style
|notice =ambox-notice
| merge   = ambox-merge
|#default=ambox-notice
| notice   = ambox-notice
}}"
| #default = ambox-notice
{{#ifeq:{{{image}}}|none|<!-- image=none -->|<!-- else -->
}}"><tr>
{{!}} class="ambox-image" {{!}} <!--  
{{#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   =[[Image:Broom icon.svg|40px]]
| style   = [[Image:Broom icon.svg|40px]]
|merge   =[[Image:Merge-split-transwiki default.svg]]
| merge   = [[Image:Merge-split-transwiki default.svg]]
|notice =[[Image:Info non-talk.png|40px]]
| 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 -->
{{!}} {{{text}}}
<td>{{{text}}}</td>
{{#if:{{{imageright|}}}|
{{#if:{{{imageright|}}}|
{{!}} class="ambox-imageright">{{{imageright}}}
<td class="ambox-imageright">{{{imageright}}}</td>
}}
}}
|}<noinclude>
</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

File:Info non-talk.png {{{text}}}