Vorlage:Cmbox/Doku: Unterschied zwischen den Versionen

imported>Davidgothberg
(→‎Technical details: Updated the docs since we now use the CSS classes in MediaWiki:Common.css. And added an explanation why we use png images instead of svg images.)
imported>Davidgothberg
(→‎Technical details: Better wording about the transparent icon backgrounds.)
Zeile 187: Zeile 187:
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 [[m:Help: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 doesn't look that 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.


For more technical details see the [[Template talk:Cmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}} and {{tl|imbox}} their talk pages and related pages might also contain more details.
For more technical details see the [[Template talk:Cmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}} and {{tl|imbox}} their talk pages and related pages might also contain more details.