Zum Inhalt springen

Vorlage:Ambox/Doku: Unterschied zwischen den Versionen

Setting a proper image size for the complex example. And updated the parameter explanations.
imported>Davidgothberg
(Simplified sentence about the CSS since it isn't really a "thin wrapper", it does much more than just use the CSS classes.)
imported>Davidgothberg
(Setting a proper image size for the complex example. And updated the parameter explanations.)
Zeile 25: Zeile 25:
{{ambox
{{ambox
| type  = style
| type  = style
| image = [[Image:Emblem-question-yellow.svg|38px]]
| image = [[Image:Emblem-question-yellow.svg|40px]]
| style = width: 400px; color: red; font-weight: bold; font-style: italic;
| style = width: 400px; color: red; font-weight: bold; font-style: italic;
| text  = The message body text.
| text  = The message body text.
Zeile 33: Zeile 33:
{{ambox
{{ambox
| type  = style
| type  = style
| image = [[Image:Emblem-question-yellow.svg|38px]]
| image = [[Image:Emblem-question-yellow.svg|40px]]
| style = width: 400px; color: red; font-weight: bold; font-style: italic;
| style = width: 400px; color: red; font-weight: bold; font-style: italic;
| text  = The message body text.
| text  = The message body text.
Zeile 136: Zeile 136:


'''type'''
'''type'''
:If no '''type''' parameter is given the template defaults to type '''notice''' which is used for "article notices". That means it gets a blue side bar like in the simple usage example above.
:If no '''type''' parameter is given the template defaults to type '''notice'''. That means it gets a blue side bar.


'''image'''
'''image'''
:'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter.  
:'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter.  
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. For example:  
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (Images over 52 pixels width will cause padding problems.) For example:  
::<code><nowiki>image = [[Image:Unbalanced scales.svg|40px]]</nowiki></code>
::<code><nowiki>image = [[Image:Unbalanced scales.svg|40px]]</nowiki></code>
:'''none''' = Means that no image is used.
:'''none''' = Means that no image is used.
Zeile 147: Zeile 147:
'''imageright'''
'''imageright'''
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. For example:  
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (Images over 52 pixels width will cause padding problems.) For example:  
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code>
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code>
:'''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.
Anonymer Benutzer