Difference between revisions of "Template:Ambox"

From Self-sufficiency
Jump to: navigation, search
m (1 revision)
(Copied and modified the code from Wikipedia:Template standardisation/issuebox.)
(54 intermediate revisions by 19 users not shown)
Line 1: Line 1:
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
+
<table class="ambox
| left =  
+
{{#switch:{{{type|}}}
  {{Ambox/core
+
| serious  = ambox-serious
  | small      = left
+
| content  = ambox-content
  | type      = {{{type|}}}
+
| style    = ambox-style
   | image      = {{#if:{{{smallimage|}}}
+
| merge    = ambox-merge
                | {{{smallimage}}}
+
| notice   = ambox-notice
                | {{{image|}}}
+
| #default = ambox-notice
                }}
+
}}"><tr>
  | imageright = {{#if:{{{smallimageright|}}}
+
{{#ifeq:{{{image}}}|none|
                | {{{smallimageright}}}
+
<!-- image=none -->
                | {{{imageright|}}}
+
|<!-- else -->
                }}
+
<td class="ambox-image"><!--
  | style      = {{{style|}}}
+
-->{{#ifeq:{{{image}}}|blank|
  | textstyle = {{{textstyle|}}}
+
<!-- image=blank -->
  | text      = {{#if:{{{smalltext|}}}
+
|<!-- image != blank -->
                | {{{smalltext}}}
+
{{#if:{{{image|}}}|
                | {{{text}}}  
+
{{{image}}}
                }}
+
|<!-- No image param -->
  }}
+
{{#switch:{{{type|}}}
| #default =  
+
| serious  = [[Image:Stop hand nuvola.svg|40px]]
  {{Ambox/core
+
| content = [[Image:Emblem-important.svg|40px]]
  | type      = {{{type|}}}
+
| style    = [[Image:Broom icon.svg|40px]]
  | image     = {{{image|}}}
+
| merge    = [[Image:Merge-arrows.svg]]
  | imageright = {{{imageright|}}}
+
| notice  = [[Image:Info non-talk.png|40px]]
  | style      = {{{style|}}}
+
| #default = [[Image:Info non-talk.png|40px]]
  | textstyle  = {{{textstyle|}}}
+
}}<!-- End #switch type -->
  | text      = {{{text}}}
+
}}<!-- End if image -->
  }}
+
}}<!-- 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><!--
 
  
--><!--{{Ambox}} end--><noinclude>
+
=== The article message box meta template ===
 +
 
 +
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)
  
{{pp-template}}
 
{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Revision as of 12:02, 9 September 2007

40px {{{text}}}


The article message box meta template

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.

--David Göthberg (talk) 10:02, 9 September 2007 (UTC)