User:Jon/template-ambox-hack: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
could put comment by each switch
get rid cate
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{tmbox|type=notice}}
<table class="metadata plainlinks ambox {{#switch:{{{type|}}} <!-- switch table class -->
<table class="metadata plainlinks ambox {{#switch:{{{type|}}} <!-- switch table class -->
| speedy    = ambox-speedy
| speedy    = ambox-speedy
Line 105: Line 106:
}}
}}


[[Category:Utility Templates]]
</noinclude>
</noinclude>

Latest revision as of 13:11, 18 December 2018

Usage

Simple usage example:

{{ambox | text = Some text.}}

Complex example:

{{ambox
| type       = style
| image      = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]]
| textstyle  = color: red; font-weight: bold; font-style: italic;
| text       = Text for a big box, for the top of articles.
}}

Article message box types

The following examples use different type parameters but use no image parameters thus they use the default images for each type.