Vorlage:Ambox/Doku: Unterschied zwischen den Versionen
→The small parameters: Explaining the small parameters, and some examples.
imported>Davidgothberg (Updating the /doc since we have now deployed the "small=left" feature, and removed the "image=blank" feature.) |
imported>Davidgothberg (→The small parameters: Explaining the small parameters, and some examples.) |
||
Zeile 166: | Zeile 166: | ||
==== The small parameters ==== | ==== The small parameters ==== | ||
The small article message boxes should not be used at the top of articles, instead they are meant for the top of sections. Normally they should only contain one or two lines of text. | |||
{{ambox | |||
| small = left | |||
| text = small = yes | |||
}} | |||
{{ambox | |||
| type = style | |||
| small = left | |||
| text = type = style <br> small = left | |||
}} | |||
'''small''' | |||
:'''left''' = Makes it a smaller left aligned message box. This also makes the default images smaller. Note that any data fed to the '''smallimage''', '''smallimageright''' and '''smalltext''' parameters is only used if "small=left". To make it so your template also understands the small parameter you can use this code: | |||
::<code><nowiki>small = {{{small|}}}</nowiki></code> | |||
{{ambox | |||
| small = left | |||
| image = [[File:Gnome globe current event.svg|50px]] | |||
| smallimage = [[File:Gnome globe current event.svg|25px]] | |||
| text = | |||
small = left <br> image = <nowiki>[[Image:Replacement filing cabinet.svg|50px]]</nowiki> <br> smallimage = <nowiki>[[Image:Replacement filing cabinet.svg|25px]]</nowiki> | |||
}} | |||
'''smallimage''' | |||
:'''No parameter''' = If no '''smallimage''' parameter is given then this template falls back to use the '''image''' parameter. If the '''image''' parameter also is empty then a small default image is used. | |||
:'''An image''' = Should be an image with usual wiki notation. 20px width is usually about right for boxes with one line of text, while 25px width is usually about right for boxes with two lines of text. For example: | |||
::<code><nowiki>smallimage = [[File:Gnome globe current event.svg|20px]]</nowiki></code> | |||
:'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=left". | |||
{{ambox | |||
| small = left | |||
| imageright = [[File:Gnome globe current event.svg|50px]] | |||
| smallimageright = none | |||
| text = | |||
small = yes <br> imageright = <nowiki>[[File:Gnome globe current event.svg|50px]]</nowiki> <br> smallimageright = none | |||
}} | |||
'''smallimageright''' | |||
:'''No parameter''' = If no '''smallimageright''' parameter is given then this template falls back to use the '''imageright''' parameter. If the '''imageright''' parameter also is empty then no image is shown on the right side. | |||
:'''An image''' = Should be an image with usual wiki notation. 20px - 25px width is usually about right. For example: | |||
::<code><nowiki>smallimageright = [[Image:Nuvola apps bookcase.png|20px]]</nowiki></code> | |||
:'''Anything''' = Any other object that you want to show on the right side. | |||
:'''none''' = Means that no right side image is used. This overrides any image fed to '''imageright''', when "small=left". | |||
'''smalltext''' | |||
:A shorter version of the message body text. If no '''smalltext''' parameter is given then this template falls back to use the '''text''' parameter. | |||
=== Technical details === | === Technical details === |