Difference between revisions of "Template:Mbox"

From Veloopti Help
Jump to: navigation, search
(Copied and modified the code from Wikipedia:Template standardisation/issuebox.)
 
m (100 revisions imported: Importing Key_press template from Mediawiki)
 
(99 intermediate revisions by 35 users not shown)
Line 1: Line 1:
<table class="ambox
+
{{#invoke:Message box|mbox}}<noinclude>
{{#switch:{{{type|}}}
+
{{documentation}}
| serious  = ambox-serious
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
| 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&nbsp;Göthberg]]&nbsp;<small>([[User talk:Davidgothberg|talk]])</small> 10:02, 9 September 2007 (UTC)
 
 
 
 
</noinclude>
 
</noinclude>

Latest revision as of 22:06, 9 July 2017

50px Template documentation[create]