Anonymous user
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 = [[
| style = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
Line 39:
{{tmbox
| type = style
| image = [[
| style = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
Line 88:
}}
{{tmbox
| image = [[
| imageright = [[
| text = image = <nowiki>[[
}}
Line 99:
{{tmbox
| type = speedy / delete / content / style / notice / move / protection
| image = none / [[
| imageright = [[
| style = CSS values
| textstyle = CSS values
| text = The message body text.
| small = {{{small|}}} / yes
| smallimage = none / [[
| smallimageright = none / [[
| 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 = [[
:'''none''' = Means that no image is used.
Line 153:
{{tmbox
| small = yes
| image = [[
| smallimage = [[
| text =
small = yes <br> image = <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 = [[
:'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=yes".
{{tmbox
| small = yes
| imageright = [[
| text =
small = yes <br> imageright = <nowiki>[[
}}
{{tmbox
| small = yes
| imageright = [[
| smallimageright = none
| text =
small = yes <br> imageright = <nowiki>[[
}}
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 = [[
:'''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".
|