Difference between revisions of "Wiki leren/Ambox"
Line 80: | Line 80: | ||
{{ambox | {{ambox | ||
| type = content | | type = content | ||
− | | image = [[File: | + | | 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: | + | | 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: | + | | 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: | + | | 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.}}
![]() |
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. }}
20px | 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.
![]() |
type=speedy – Speedy deletion issues, such as {{db-g1}} and {{db-g3}}. |
![]() |
type=delete – Deletion issues, such as {{afd}} and {{prod}}. |
![]() |
type=content – Content issues, such as {{POV}} and {{globalize}}. |
![]() |
type=style – Style issues, such as {{cleanup}} and {{wikify}}. |
![]() |
type=notice – Article notices, such as {{current}} and {{inuse}}. |
![]() |
type=move – Merge, split and transwiki proposals, such as {{split}} and {{copy to wiktionary}}. |
![]() |
type=protection – Protection notices, such as {{pp-vandalism}} and {{pp-semi-protected}}. |
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.
![]() |
type = content image = [[File:Unbalanced scales.svg|40px|link=|alt=]] This image is often used for {{POV}} and similar issues. |
![]() |
type = style image = [[File:Wikitext.svg|50px|link=|alt=]] This image is often used for {{wikify}} etc. |
![]() |
type = move image = [[File:Merge-arrows.svg|50px|link=|alt=]] This image is used for {{merge}} etc. |
More examples
Some other parameter combinations.
![]() |
No type and no image given (default) |
No type and image=none – No image is used and the text uses the whole message box area. |
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]] |
This article or section documents a current spaceflight.
Content may change as the mission progresses. |