Vorlage:Fmbox/Doku: Unterschied zwischen den Versionen

Adding the "Other images" and "Special" sections. Documentation now more or less finished.
imported>Davidgothberg
(Adding the "Parameters" section.)
imported>Davidgothberg
(Adding the "Other images" and "Special" sections. Documentation now more or less finished.)
Zeile 35: Zeile 35:
| textstyle = color: red; font-weight: bold; font-style: italic;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
| text      = The message body text.
}}
=== Other images ===
The default image shown above is mostly for testing and demonstration. In most cases it is more appropriate to use a more specific image or no image at all. These examples use the '''image''' parameter to specify an image other than the default image.
{{fmbox
| image = [[Image:User-info.svg|40px]]
| text  = image = <nowiki>[[Image:User-info.svg|40px]]</nowiki> <br> This image is used for [[MediaWiki:Sp-contributions-footer]].
}}
{{fmbox
| image = [[Image:Commons-logo.svg|40x40px]]
| text  = image = <nowiki>[[Image:Commons-logo.svg|40x40px]]</nowiki> <br> Note the use of "40x40px" to also limit the height of the image. This image is used for [[MediaWiki:Sharedupload]].
}}
=== Special ===
Some other parameter combinations.
{{fmbox
| text  = No type and no image given ('''default''')
}}
{{fmbox
| image = none
| text  = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.
}}
{{fmbox
| image = [[Image:User-info.svg|40px]]
| imageright = [[Image:Nuvola apps bookcase.svg|40px]]
| text  = image = <nowiki>[[Image:User-info.svg|40px]]</nowiki> <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.svg|40px]]</nowiki>
}}
}}


Anonymer Benutzer