Jump to content

Template:Cmbox/doc: Difference between revisions

m
Text replacement - "nome globe current event.png" to "Gnome globe current event.png"
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{mbox templates}} This is the {{tl|cmbox}} or '''category message box''' meta…')
 
m (Text replacement - "nome globe current event.png" to "Gnome globe current event.png")
 
(5 intermediate revisions by 3 users not shown)
Line 31: Line 31:
{{cmbox
{{cmbox
| type      = style
| type      = style
| image    = [[Image:Emblem-question-yellow.svg|40px]]
| image    = [[File:Emblem-question-yellow.svg.png|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:
{{cmbox
{{cmbox
| type      = style
| type      = style
| image    = [[Image:Emblem-question-yellow.svg|40px]]
| image    = [[File:Emblem-question-yellow.svg.png|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 85: Line 85:
{{cmbox
{{cmbox
| type  = style
| type  = style
| image = [[Image:Sub-arrows.svg|40px]]
| image = image:Sub-arrows.svg|40px
| text  = type = style <br> image = <nowiki>[[Image:Sub-arrows.svg|40px]]</nowiki> <br> This image is used for {{tl|verylarge}} and {{tl|CatDiffuse}}.  
| text  = type = style <br> image = <nowiki>[[Image:Sub-arrows.svg|40px]]</nowiki> <br> This image is used for {{tl|verylarge}} and {{tl|CatDiffuse}}.  
}}
}}
{{cmbox
{{cmbox
| type  = move
| type  = move
| image = [[Image:Redirect arrow.svg|52px]]
| image = image:Redirect arrow.svg|52px
| text  = type = move <br> image = <nowiki>[[Image:Redirect arrow.svg|52px]]</nowiki> <br> This image is used for {{tl|categoryredirect}}.  
| text  = type = move <br> image = <nowiki>[[Image:Redirect arrow.svg|52px]]</nowiki> <br> This image is used for {{tl|categoryredirect}}.  
}}
}}
Line 107: Line 107:


{{cmbox
{{cmbox
| image = [[Image:Gnome globe current event.svg|42px]]
| image = [[Image:Gnome globe current event.png|42px]]
| imageright = [[Image:Nuvola apps bookcase.svg|40px]]
| imageright = [[Image:Nuvola apps bookcase.svg|40px]]
| text  = image = <nowiki>[[Image:Gnome globe current event.svg|42px]]</nowiki> <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.svg|40px]]</nowiki>
| text  = image = <nowiki>[[Image:Gnome globe current event.png|42px]]</nowiki> <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.svg|40px]]</nowiki>
}}
}}


{{cmbox
{{cmbox
| image = [[Image:Gnome globe current event.svg|42px]]
| image = [[Image:Gnome globe current event.png|42px]]
| imageright = [[Image:Shuttle.svg|20px]]
| imageright = Image:Shuttle.svg
| text  = '''This category lists articles about current and recent [[spaceflight]]s.'''
| text  = '''This category lists articles about current and recent [[spaceflight]]s.'''
<br>It is populated by the {{tl|current spaceflight}} template.
<br>It is populated by the {{tl|current spaceflight}} template.
Line 185: Line 185:
This template uses the cmbox CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.
This template uses the cmbox 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