Vorlage:Imbox/Doku: Unterschied zwischen den Versionen

Not using hard coded styles anymore, now using the imbox CSS classes in Commons.css.
imported>Davidgothberg
(Explaining the "below" parameter.)
imported>Davidgothberg
(Not using hard coded styles anymore, now using the imbox CSS classes in Commons.css.)
Zeile 197: Zeile 197:


=== 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 219: Zeile 217:
</div>
</div>
}}
}}
This template uses CSS classes 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.  
Zeile 233: Zeile 233:
* {{tl|ombox}} – For other pages message boxes.
* {{tl|ombox}} – For other pages message boxes.
* {{tl|mbox}} – Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.
* {{tl|mbox}} – Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.
Other pages:
* [[MediaWiki:Common.css]] – The imbox CSS classes that this meta-template uses are declared at that page.


<includeonly>
<includeonly>
Anonymer Benutzer