Jump to content

Template:Ambox: Difference between revisions

From IdeaWazaWiki
wikademia>MZMcBride
converted to wikisyntax; optimized code
wikademia>Eme
m 1 revision
 
(59 intermediate revisions by 25 users not shown)
Line 1: Line 1:
{| class="ambox {{#switch:{{{type|}}}
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
|serious =ambox-serious
| left =  
|content =ambox-content
  {{Ambox/core
|style  =ambox-style
  | small      = left
|merge   =ambox-merge
   | type      = {{{type|}}}
|notice  =ambox-notice
  | image      = {{#if:{{{smallimage|}}}
|#default=ambox-notice
                | {{{smallimage}}}
}}"
                | {{{image|}}}
{{#ifeq:{{{image}}}|none|<!-- image=none -->|<!-- else -->
                }}
{{!}} class="ambox-image" {{!}} <!--
  | imageright = {{#if:{{{smallimageright|}}}
-->{{#ifeq:{{{image}}}|blank|
                | {{{smallimageright}}}
<!-- image=blank -->
                | {{{imageright|}}}
|<!-- image != blank -->
                }}
{{#if:{{{image|}}}|{{{image}}}|<!-- No image param -->
  | style      = {{{style|}}}
{{#switch:{{{type|}}}
  | textstyle  = {{{textstyle|}}}
|serious =[[Image:Stop hand nuvola.svg|40px]]
  | text      = {{#if:{{{smalltext|}}}
|content =[[Image:Emblem-important.svg|40px]]
                | {{{smalltext}}}  
|style   =[[Image:Broom icon.svg|40px]]
                | {{{text}}}
|merge   =[[Image:Merge-split-transwiki default.svg]]
                }}
|notice =[[Image:Info non-talk.png|40px]]
  }}
|#default=[[Image:Info non-talk.png|40px]]
| #default =
}}<!-- End #switch type -->
  {{Ambox/core
}}<!-- End if image -->
  | type      = {{{type|}}}
}}<!-- End ifeq image==blank -->
  | image      = {{{image|}}}
}}<!-- End ifeq image==none -->
  | imageright = {{{imageright|}}}
{{!}} {{{text}}}
  | style     = {{{style|}}}
{{#if:{{{imageright|}}}|
   | textstyle = {{{textstyle|}}}
{{!}} class="ambox-imageright">{{{imageright}}}
  | text      = {{{text}}}
}}
  }}
|}<noinclude>
}}<!--
{{template doc}}
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
 
--><!--{{Ambox}} end--><noinclude>
 
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 21:29, 18 December 2010

[create] Template documentation