Vorlage:Ambox/Doku: Unterschied zwischen den Versionen

Documenting more.
imported>Davidgothberg
(Documenting.)
imported>Davidgothberg
(Documenting more.)
Zeile 5: Zeile 5:
|-
|-
| style="width: 52px; padding-left: 0.5em; text-align: center;" | [[Image:Emblem-important.svg|40px]]
| style="width: 52px; padding-left: 0.5em; text-align: center;" | [[Image:Emblem-important.svg|40px]]
| style="padding: 0.25em 0.5em;" | '''Note!''' To correctly see the examples below you need to add some CSS code to [[Special:Mypage/monobook.css|your personal monobook.css]] since these classes do not yet exist in [[MediaWiki:Common.css]]. For the CSS code you need and more, see [[Wikipedia:Template standardisation/issuebox demo]].
| style="padding: 0.25em 0.5em;" | '''Note!''' To correctly see the examples below you need to add some CSS code to [[Special:Mypage/monobook.css|your personal monobook.css]], since these classes do not yet exist in [[MediaWiki:Common.css]]. For the CSS code you need and more, see [[Wikipedia:Template standardisation/issuebox demo]].
|}
|}


Zeile 13: Zeile 13:
It is used to create ''article message box'' templates such as {{tl|wikify}} etc. It uses default images if no image parameter is given and it has some other features.
It is used to create ''article message box'' templates such as {{tl|wikify}} etc. It uses default images if no image parameter is given and it has some other features.


=== Usage examples ===
=== Usage ===


Simple usage example:
Simple usage example:
Zeile 144: Zeile 144:


=== Technical details ===
=== Technical details ===
This template uses CSS classes for most of its looks, thus it is fully "skinnable".
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 messes with the possibility to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters.


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 170: Zeile 166:




The CSS classes can of course be used directly in a wikitable too. Like this:
This template uses CSS classes for most of its looks, thus it is fully "skinnable".
 
The CSS classes can also be used directly in a wikitable. Like this:


<pre>
<pre>
Zeile 185: Zeile 183:
| Some text.
| Some text.
|}
|}
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 messes with the possibility to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters.


=== See also ===
=== See also ===
Anonymer Benutzer