Template:Imbox/doc: Difference between revisions

m
Text replacement - "Ambox warning yellow.svg|" to "Ambox warning yellow.svg.png|"
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{mbox templates}} This is the {{tl|imbox}} or '''image message box''' meta-te…')
 
m (Text replacement - "Ambox warning yellow.svg|" to "Ambox warning yellow.svg.png|")
 
(6 intermediate revisions by 3 users not shown)
Line 31: Line 31:
{{imbox
{{imbox
| type      = style
| type      = style
| image    = [[Image:Emblem-question-yellow.svg|40px]]
| image    = image:Emblem-question-yellow.svg|40px
| style    = width: 400px;  
| style    = width: 400px;  
| textstyle = color: red; font-weight: bold; font-style: italic;
| textstyle = color: red; font-weight: bold; font-style: italic;
Line 40: Line 40:
{{imbox
{{imbox
| type      = style
| type      = style
| image    = [[Image:Emblem-question-yellow.svg|40px]]
| image    = image:Emblem-question-yellow.svg|40px
| style    = width: 400px;  
| style    = width: 400px;  
| textstyle = color: red; font-weight: bold; font-style: italic;
| textstyle = color: red; font-weight: bold; font-style: italic;
Line 93: Line 93:
{{imbox
{{imbox
| type  = style
| type  = style
| image = [[Image:Gnome-dev-camera.svg|42px]]
| image =
| text  = type = style <br> image = <nowiki>[[Image:Gnome-dev-camera.svg|42px]]</nowiki> <br> This image is used for {{tl|cleanup-image}}.  
| text  = type = style <br> image = <nowiki> </nowiki> <br> This image is used for {{tl|cleanup-image}}.  
}}
}}
{{imbox
{{imbox
| type  = move
| type  = move
| image = [[Image:To Commons.svg|52px]]
| image = Image:To Commons.svg|52px
| text  = type = move <br> image = <nowiki>[[Image:To Commons.svg|52px]]</nowiki> <br> This image is used for {{tl|copy to Wikimedia Commons}}.  
| text  = type = move <br> image = <nowiki>[[Image:To Commons.svg|52px]]</nowiki> <br> This image is used for {{tl|copy to Wikimedia Commons}}.  
}}
}}
{{imbox
{{imbox
| type  = license
| type  = license
| image = [[Image:Heckert GNU white.svg|48px]]
| image = image:Heckert GNU white.svg|48px
| text  = type = license <br> image = <nowiki>[[Image:Heckert GNU white.svg|48px]]</nowiki> <br> This image is used for the GFDL license templates such as {{tl|GFDL}}.
| text  = type = license <br> image = <nowiki>image:Heckert GNU white.svg|48px</nowiki> <br> This image is used for the GFDL license templates such as {{tl|GFDL}}.
}}
}}


Line 121: Line 121:
{{imbox
{{imbox
| type = license
| type = license
| image = [[Image:Imbox license.svg|40px]] <br> [[Image:Ambox warning yellow.svg|40px]]
| image = image:Imbox license.svg|40px <br> image:Ambox warning yellow.svg.png|40px
| imageright = [[Image:Shuttle.svg|30px]]
| imageright = image:Shuttle.svg|30px
| text  = type = license <br> image = <nowiki>[[Image:Imbox license.svg|40px]] &lt;br> [[Image:Ambox warning yellow.svg|40px]]</nowiki> <br> imageright = <nowiki>[[Image:Shuttle.svg|30px]]</nowiki>
| text  = type = license <br> image = <nowiki>image:Imbox license.svg|40px br> image:Ambox warning yellow.svg.png|40px</nowiki> <br> imageright = <nowiki>[[Image:Shuttle.svg|30px]]</nowiki>
}}
}}


{{imbox
{{imbox
| type = license
| type = license
| image = [[Image:Imbox license.svg|40px]] <br> [[Image:Ambox warning yellow.svg|40px]]
| image = image:Imbox license.svg|40px <br> image:Ambox warning yellow.svg.png|40px
| imageright = [[Image:Shuttle.svg|30px]]
| imageright = Image:Shuttle.svg|30px
| text  = '''This file is in the [[public domain]] because it was created by [[NASA]].'''
| text  = '''This file is in the [[public domain]] because it was created by [[NASA]].'''
<br>Note that use of NASA logos, insignia and emblems are restricted per US law.
<br>Note that use of NASA logos, insignia and emblems are restricted per US law.
Line 136: Line 136:
{{imbox
{{imbox
| type      = license
| type      = license
| image      = [[Image:Imbox license.svg|40px]]
| image      = image:Imbox license.svg|40px
| text      =  
| text      =  
type = license <br> image = <nowiki>[[Image:Imbox license.svg|40px]]</nowiki> <br> below = <nowiki>{{imbox | type = content | text = '''This license tag is deprecated!''' }}</nowiki>
type = license <br> image = <nowiki>image:Imbox license.svg|40px</nowiki> <br> below = <nowiki>{{imbox | type = content | text = '''This license tag is deprecated!''' }}</nowiki>
| below =  
| below =  
   {{imbox
   {{imbox
Line 154: Line 154:
| type  = speedy / delete / content / style / notice /  
| type  = speedy / delete / content / style / notice /  
           move / protection / license / featured
           move / protection / license / featured
| image = none / [[Image:Some image.svg|40px]]
| image = none / image:Some image.svg|40px
| imageright = [[Image:Some image.svg|40px]]
| imageright = image:Some image.svg|40px
| style = CSS value
| style = CSS value
| textstyle = CSS value
| textstyle = CSS value
Line 169: Line 169:
:'''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. (But the message box can handle images of any size.) 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. (But the message box can handle images of any size.) For example:  
::<code><nowiki>image = [[Image:Gnome-dev-camera.svg|40px]]</nowiki></code>
::<code><nowiki>image = </nowiki></code>
:'''none''' = Means that no image is used.
:'''none''' = Means that no image is used.


Line 219: Line 219:
This template uses the imbox CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.
This template uses the imbox CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.


Internally this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters.  
Internally this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use {{mw|Help:Extension:ParserFunctions|parser functions}} and special characters in parameters.  


The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.
The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.
Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, smwadministrator, smwcurator, smweditor, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
795,753

edits