Template:Tmbox/doc: Difference between revisions

Use "File:" instead of "Image:" to save a few bits of template transclusion size in future uses...
m (fixing typos)
(Use "File:" instead of "Image:" to save a few bits of template transclusion size in future uses...)
Line 30:
{{tmbox
| type = style
| image = [[ImageFile:Emblem-question-yellow.svg|40px]]
| style = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
Line 39:
{{tmbox
| type = style
| image = [[ImageFile:Emblem-question-yellow.svg|40px]]
| style = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
Line 88:
}}
{{tmbox
| image = [[ImageFile:Gnome globe current event.svg|42px]]
| imageright = [[ImageFile:Nuvola apps bookcase.svg|40px]]
| text = image = <nowiki>[[ImageFile:Gnome globe current event.svg|42px]]</nowiki> <br> imageright = <nowiki>[[ImageFile:Nuvola apps bookcase.svg|40px]]</nowiki>
}}
 
Line 99:
{{tmbox
| type = speedy / delete / content / style / notice / move / protection
| image = none / [[ImageFile:Some image.svg|40px]]
| imageright = [[ImageFile:Some image.svg|40px]]
| style = CSS values
| textstyle = CSS values
| text = The message body text.
| small = {{{small|}}} / yes
| smallimage = none / [[ImageFile:Some image.svg|30px]]
| smallimageright = none / [[ImageFile:Some image.svg|30px]]
| smalltext = A shorter message body text.
}}
Line 117:
:'''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. (But the message box can handle images of any size.) For example:
::<code><nowiki>image = [[ImageFile:Crystal package settings.png|40px]]</nowiki></code>
:'''none''' = Means that no image is used.
 
Line 153:
{{tmbox
| small = yes
| image = [[ImageFile:Nuvola apps bookcase.svg|40px]]
| smallimage = [[ImageFile:Nuvola apps bookcase.svg|30px]]
| text =
small = yes <br> image = <nowiki>[[ImageFile:Nuvola apps bookcase.svg|40px]]</nowiki> <br> smallimage = <nowiki>[[ImageFile:Nuvola apps bookcase.png|30px]]</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. 30px width is usually about right. For example:
::<code><nowiki>smallimage = [[ImageFile:Crystal package settings.png|30px]]</nowiki></code>
:'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=yes".
 
{{tmbox
| small = yes
| imageright = [[ImageFile:Nuvola apps bookcase.svg|40px]]
| text =
small = yes <br> imageright = <nowiki>[[ImageFile:Nuvola apps bookcase.svg|40px]]</nowiki>
}}
{{tmbox
| small = yes
| imageright = [[ImageFile:Nuvola apps bookcase.svg|30px]]
| smallimageright = none
| text =
small = yes <br> imageright = <nowiki>[[ImageFile:Nuvola apps bookcase.svg|40px]]</nowiki> <br> smallimageright = none
}}
 
Line 181:
:'''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. 30px width is usually about right. For example:
::<code><nowiki>smallimageright = [[ImageFile:Nuvola apps bookcase.png|30px]]</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=yes".
Anonymous user