Jump to content

Template:Ambox: Difference between revisions

From IdeaWazaWiki
wikademia>Davidgothberg
Copied and modified the code from Wikipedia:Template standardisation/issuebox.
 
wikademia>Eme
m 1 revision
 
(64 intermediate revisions by 25 users not shown)
Line 1: Line 1:
<table class="ambox
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
{{#switch:{{{type|}}}
| left =  
| serious  = ambox-serious
  {{Ambox/core
| content  = ambox-content
  | small      = left
| style    = ambox-style
  | type      = {{{type|}}}
| merge    = ambox-merge
   | image      = {{#if:{{{smallimage|}}}
| notice   = ambox-notice
                | {{{smallimage}}}
| #default = ambox-notice
                | {{{image|}}}
}}"><tr>
                }}
{{#ifeq:{{{image}}}|none|
  | imageright = {{#if:{{{smallimageright|}}}
<!-- image=none -->
                | {{{smallimageright}}}
|<!-- else -->
                | {{{imageright|}}}
<td class="ambox-image"><!--
                }}
-->{{#ifeq:{{{image}}}|blank|
  | style      = {{{style|}}}
<!-- image=blank -->
  | textstyle = {{{textstyle|}}}
|<!-- image != blank -->
  | text      = {{#if:{{{smalltext|}}}
{{#if:{{{image|}}}|
                | {{{smalltext}}}
{{{image}}}
                | {{{text}}}  
|<!-- No image param -->
                }}
{{#switch:{{{type|}}}
  }}
| serious  = [[Image:Stop hand nuvola.svg|40px]]
| #default =  
| content = [[Image:Emblem-important.svg|40px]]
  {{Ambox/core
| style    = [[Image:Broom icon.svg|40px]]
  | type      = {{{type|}}}
| merge    = [[Image:Merge-arrows.svg]]
  | image     = {{{image|}}}
| notice  = [[Image:Info non-talk.png|40px]]
  | imageright = {{{imageright|}}}
| #default = [[Image:Info non-talk.png|40px]]
  | style      = {{{style|}}}
}}<!-- End #switch type -->
  | textstyle  = {{{textstyle|}}}
}}<!-- End if image -->
  | text      = {{{text}}}
}}<!-- End ifeq image==blank -->
  }}
</td>
}}<!--
}}<!-- End ifeq image==none -->
<td>{{{text}}}</td>
{{#if:{{{imageright|}}}|
<td class="ambox-imageright">{{{imageright}}}</td>
}}
</tr></table><noinclude>


--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--


=== The article message box meta template ===
--><!--{{Ambox}} end--><noinclude>
 
This page is the meta template "ambox" that uses CSS classes for pretty much all its looks and that uses default images and has some other nifty features.
 
For usage demonstration, parameter explanations, the CSS code you need and more, see [[Wikipedia:Template standardisation/issuebox demo]].
 
--[[User:Davidgothberg|David&nbsp;Göthberg]]&nbsp;<small>([[User talk:Davidgothberg|talk]])</small> 10:02, 9 September 2007 (UTC)


{{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