Difference between revisions of "Template:Ambox"
From Self-sufficiency
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: | ||
− | < | + | <table class="ambox |
− | | | + | {{#switch:{{{type|}}} |
− | + | | serious = ambox-serious | |
− | + | | content = ambox-content | |
− | + | | style = ambox-style | |
− | | | + | | merge = ambox-merge |
− | + | | notice = ambox-notice | |
− | + | | #default = ambox-notice | |
− | + | }}"><tr> | |
− | + | {{#ifeq:{{{image}}}|none| | |
− | + | <!-- image=none --> | |
− | + | |<!-- else --> | |
− | + | <td class="ambox-image"><!-- | |
− | + | -->{{#ifeq:{{{image}}}|blank| | |
− | + | <!-- image=blank --> | |
− | + | |<!-- image != blank --> | |
− | + | {{#if:{{{image|}}}| | |
− | + | {{{image}}} | |
− | + | |<!-- No image param --> | |
− | + | {{#switch:{{{type|}}} | |
− | + | | serious = [[Image:Stop hand nuvola.svg|40px]] | |
− | + | | content = [[Image:Emblem-important.svg|40px]] | |
− | + | | style = [[Image:Broom icon.svg|40px]] | |
− | + | | merge = [[Image:Merge-arrows.svg]] | |
− | + | | notice = [[Image:Info non-talk.png|40px]] | |
− | + | | #default = [[Image:Info non-talk.png|40px]] | |
− | + | }}<!-- End #switch type --> | |
− | + | }}<!-- 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> | ||
− | |||
− | -- | + | === 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 Göthberg]] <small>([[User talk:Davidgothberg|talk]])</small> 10:02, 9 September 2007 (UTC) | ||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 11: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)