Zum Inhalt springen

Vorlage:Ombox/Doku: Unterschied zwischen den Versionen

→‎Technical details: Now uses the CSS classes, and added explanation about the PNG images.
imported>INkubusse
K (+ mk iw)
imported>Davidgothberg
(→‎Technical details: Now uses the CSS classes, and added explanation about the PNG images.)
Zeile 138: Zeile 138:


=== Technical details ===
=== Technical details ===
This template currently uses hard coded styles. Later it will use CSS classes enabling it to be skinned.


If you need to use special characters in the text parameter then you need to escape them like this:  
If you need to use special characters in the text parameter then you need to escape them like this:  
Zeile 160: Zeile 158:
</div>
</div>
}}
}}
This template uses the ombox 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 [[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 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:Ombox|talk page]]. Since this template works almost exactly like {{tl|imbox}}, {{tl|ambox}} and {{tl|cmbox}} their talk pages and related pages might also contain more details.
For more technical details see the [[Template talk:Ombox|talk page]]. Since this template works almost exactly like {{tl|imbox}}, {{tl|ambox}} and {{tl|cmbox}} their talk pages and related pages might also contain more details.
Anonymer Benutzer