Difference between revisions of "Wiki leren/Ambox"

From 2value wiki 2
Jump to navigation Jump to search
 
Line 80: Line 80:
 
{{ambox
 
{{ambox
 
| type  = content
 
| type  = content
| image = [[File:Unbalanced scales.svg|40px|link=|alt=]]
+
| image = [[File:Ambox_Unbalanced_scales.png|40px|link=|alt=]]
 
| text  = type = content <br> image = <nowiki>[[File:Unbalanced scales.svg|40px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|POV}} and similar issues.
 
| text  = type = content <br> image = <nowiki>[[File:Unbalanced scales.svg|40px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|POV}} and similar issues.
 
}}
 
}}
 
{{ambox
 
{{ambox
 
| type  = style
 
| type  = style
| image = [[File:Wikitext.svg|50px|link=|alt=]]
+
| image = [[File:Ambox_Wikitext.png|50px|link=|alt=]]
 
| text  = type = style <br> image = <nowiki>[[File:Wikitext.svg|50px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|wikify}} etc.
 
| text  = type = style <br> image = <nowiki>[[File:Wikitext.svg|50px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|wikify}} etc.
 
}}
 
}}
 
{{ambox
 
{{ambox
 
| type  = move
 
| type  = move
| image = [[File:Merge-arrows.svg|50px|link=|alt=]]
+
| image = [[File:Ambox_Merge_arrows.png|50px|link=|alt=]]
 
| text  = type = move <br> image = <nowiki>[[File:Merge-arrows.svg|50px|link=|alt=]]</nowiki> <br> This image is used for {{tl|merge}} etc.
 
| text  = type = move <br> image = <nowiki>[[File:Merge-arrows.svg|50px|link=|alt=]]</nowiki> <br> This image is used for {{tl|merge}} etc.
 
}}
 
}}
Line 108: Line 108:
 
{{ambox
 
{{ambox
 
| image = [[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]]
 
| image = [[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]]
| imageright = [[File:Nuvola apps bookcase.svg|40px|alt=Three stacked books]]
+
| imageright = [[File:Ambox_Bookcase.png|40px|alt=Three stacked books]]
 
| text  = image = <nowiki>[[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]]</nowiki> <br> imageright = <nowiki>[[File:Nuvola apps bookcase.svg|40px|alt=Three stacked books]]</nowiki>
 
| text  = image = <nowiki>[[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]]</nowiki> <br> imageright = <nowiki>[[File:Nuvola apps bookcase.svg|40px|alt=Three stacked books]]</nowiki>
 
}}
 
}}

Latest revision as of 03:26, 3 November 2010

This is the {{ambox}} or article message box meta-template.

It is used to build article message box templates. It offers several different colours, uses default images if no image parameter is given and it has some other features.

This meta-template uses the ambox CSS classes in MediaWiki:Common.css. The classes can also be used directly in a wikitable if special functionality is needed. See the how-to guide for that.

Usage

Simple usage example:

{{ambox | text = Some text.}}

Complex example:

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

But you are not really supposed to use red bold italic text.

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.

Other images

The default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These examples use the image parameter to specify an image other than the default images.

More examples

Some other parameter combinations.