Zum Inhalt springen

Vorlage:Ambox/Doku: Unterschied zwischen den Versionen

Corrected syntax.
Keine Bearbeitungszusammenfassung
imported>Nick Levinson
(Corrected syntax.)
Zeile 6: Zeile 6:
This is the {{Tl|Ambox}} or '''Article message box''' meta-template.
This is the {{Tl|Ambox}} or '''Article message box''' meta-template.


It is used to build ''article message box'' templates such as {{tl|wikify}}. It offers several different colours, uses default images if no image parameter is given and it has some other features.
It is used to build ''article message box'' templates such as {{tl|wikify}}. It offers several different colours, uses default images if no image parameter is given, and has some other features.


== Common parameters ==
== Common parameters ==
Zeile 160: Zeile 160:


== Other parameters ==
== Other parameters ==
The box on the right shows all possible parameters for this template. However it is not recommended to copy this, because it will never be required to use all parameters simultaneously.
The box on the right shows all possible parameters for this template. However, it is not recommended to copy this, because it will never be required to use all parameters simultaneously.
{| class="wikitable" align="right" style="background:transparent; width=40%"  
{| class="wikitable" align="right" style="background:transparent; width=40%"  
!All parameters
!All parameters
Zeile 243: Zeile 243:
* This template uses CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.
* This template uses CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.
* This template calls {{Tl|Ambox/core}} or {{tl|ambox/small}} which holds most of the code for {{Tl|Ambox}}, while {{Tl|Ambox}} itself does parameter preprocessing.
* This template calls {{Tl|Ambox/core}} or {{tl|ambox/small}} which holds most of the code for {{Tl|Ambox}}, while {{Tl|Ambox}} itself does parameter preprocessing.
* Internally this meta-template uses HTML markup instead of wikimarkup for the table code. That is the usual way meta-templates are made since wikimarkup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and some special characters in parameters.
* Internally, this meta-template uses HTML markup instead of wikimarkup for the table code. That is the usual way meta-templates are made, since wikimarkup has several drawbacks. For instance, it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and some 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.
* For more technical details see the [[Template talk:Ambox|talk page]] and the "See also" links below. Since this template works almost exactly like {{Tl|Tmbox}}, {{Tl|Imbox}}, {{Tl|Cmbox}} and {{Tl|Ombox}} their talk pages and related pages might also contain more details.
* For more technical details see the [[Template talk:Ambox|talk page]] and the "See also" links below. Since this template works almost exactly like {{Tl|Tmbox}}, {{Tl|Imbox}}, {{Tl|Cmbox}} and {{Tl|Ombox}} their talk pages and related pages might also contain more details.
Anonymer Benutzer