Vorlage:Ambox/Doku: Unterschied zwischen den Versionen
Fixing the small examples: I had used invalid "small=yes" in some places, and wrong image names. And moving the small example boxes to better places.
imported>Davidgothberg (Removing Eubulides edit 11 July 2009. Sorry, you can't tell people to break copyright law. You unlinked non-PD images, thus breaking attribution etc. There are better solutions for the screen readers.) |
imported>Davidgothberg (Fixing the small examples: I had used invalid "small=yes" in some places, and wrong image names. And moving the small example boxes to better places.) |
||
Zeile 174: | Zeile 174: | ||
The small article message boxes are meant for the top of sections. Normally they should only contain one or two lines of text. | The small article message boxes are meant for the top of sections. Normally they should only contain one or two lines of text. | ||
'''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 | {{ambox | ||
| small = left | | small = left | ||
| text = small = | | text = small = left | ||
}} | }} | ||
{{ambox | {{ambox | ||
Zeile 183: | Zeile 186: | ||
| text = type = style <br> small = left | | text = type = style <br> small = left | ||
}} | }} | ||
'''smallimage''' | '''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. | :'''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. | ||
Zeile 199: | Zeile 192: | ||
::<code><nowiki>smallimage = [[File:Gnome globe current event.svg|20px]]</nowiki></code> | ::<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". | :'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=left". | ||
{{ambox | {{ambox | ||
| small = left | | small = left | ||
| | | image = [[Image:Replacement filing cabinet.svg|50px]] | ||
| | | smallimage = [[Image:Replacement filing cabinet.svg|25px]] | ||
| text = | | text = | ||
small = | small = left <br> image = <nowiki>[[Image:Replacement filing cabinet.svg|50px]]</nowiki> <br> smallimage = <nowiki>[[Image:Replacement filing cabinet.svg|25px]]</nowiki> | ||
}} | }} | ||
'''smallimageright''' | '''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. | :'''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. | ||
Zeile 213: | Zeile 206: | ||
:'''Anything''' = Any other object that you want to show on the right side. | :'''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". | :'''none''' = Means that no right side image is used. This overrides any image fed to '''imageright''', when "small=left". | ||
{{ambox | |||
| small = left | |||
| imageright = [[File:Gnome globe current event.svg|50px]] | |||
| smallimageright = none | |||
| text = | |||
small = left <br> imageright = <nowiki>[[File:Gnome globe current event.svg|50px]]</nowiki> <br> smallimageright = none | |||
}} | |||
'''smalltext''' | '''smalltext''' |