Vorlage:Tmbox/Doku: Unterschied zwischen den Versionen

imported>Davidgothberg
(Updated the documentation a lot. Added the small parameters. Intermediate save.)
imported>Davidgothberg
(Added some example boxes with the small style.)
Zeile 95: Zeile 95:
| textstyle = CSS value
| textstyle = CSS value
| text  = The message body text.  
| text  = The message body text.  
| small = yes
| small = yes / {{{small|}}}
| smallimage = none / [[Image:Some image.svg|30px]]
| smallimage = none / [[Image:Some image.svg|30px]]
| smallimageright = none / [[Image:Some image.svg|30px]]
| smallimageright = none / [[Image:Some image.svg|30px]]
Zeile 132: Zeile 132:
{{tmbox
{{tmbox
| small = yes
| small = yes
| text = small=yes
| text = small = yes
}}
{{tmbox
| type = style
| small = yes
| text = type = style <br> small = yes
}}
}}
'''small'''
'''small'''
Zeile 138: Zeile 143:
::<code><nowiki>small = {{{small|}}}</nowiki></code>
::<code><nowiki>small = {{{small|}}}</nowiki></code>


{{tmbox
| small = yes
| image      = [[Image:Nuvola apps bookcase.png|50px]]
| smallimage = [[Image:Nuvola apps bookcase.png|30px]]
| text =
small = yes <br> image = <nowiki>[[Image:Nuvola apps bookcase.png|50px]]</nowiki> <br> smallimage = <nowiki>[[Image:Nuvola apps bookcase.png|30px]]</nowiki>
}}
'''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 144: Zeile 156:
:'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=yes".
:'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=yes".


{{tmbox
| small = yes
| imageright = [[Image:Nuvola apps bookcase.png|50px]]
| smallimageright = none
| text =
small = yes <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.png|50px]]</nowiki> <br> smallimageright = none
}}
'''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.