Zum Inhalt springen

Vorlage:Ambox/Doku: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
(+ travel-warning)
Keine Bearbeitungszusammenfassung
Zeile 216: Zeile 216:


=== ''class'' ===
=== ''class'' ===
A custom [[Cascading Style Sheets|CSS]] class to apply to the box.
A custom [[:w:Cascading Style Sheets|CSS]] class to apply to the box.


=== ''style'' and ''textstyle'' ===
=== ''style'' and ''textstyle'' ===
Zeile 233: Zeile 233:


== Technical notes ==
== Technical notes ==
* This meta-template uses the ambox CSS classes in [[MediaWiki:Common.css]]. The classes can also be used directly in a [[Help:Table|wikitable]] if special functionality is needed. See the [[Wikipedia:Ambox CSS classes|how-to guide]] for that.
* This meta-template uses the ambox CSS classes in [[MediaWiki:Common.css]]. The classes can also be used directly in a [[Hilfe:Tabellen|wikitable]] if special functionality is needed. See the [[:w:en:Wikipedia:Ambox CSS classes|how-to guide]] for that.
* 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:
<pre>
<pre>
Zeile 254: Zeile 254:


* The <code>&lt;div></code> tags that surround the text in the example above are usually not needed. But if the text contains line breaks then sometimes we get weird line spacing. This especially happens when using vertical dotted lists. Then use the div tags to fix that.
* The <code>&lt;div></code> tags that surround the text in the example above are usually not needed. But if the text contains line breaks then sometimes we get weird line spacing. This especially happens when using vertical dotted lists. Then use the div tags to fix that.
* 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.
Zeile 263: Zeile 263:
{{Mbox templates see also}}
{{Mbox templates see also}}
Other pages:
Other pages:
* [[:w:en:Wikipedia:Ambox CSS classes]] – Describes how to use the ambox CSS classes directly in [[Hilfe:Wiki Markup|wikitable]]s and [[Hilfe:Wiki Markup|HTML tables]].
* [[:w:en:Wikipedia:Ambox CSS classes]] – Describes how to use the ambox CSS classes directly in [[Hilfe:Tabellen|wikitable]]s and [[Hilfe:Erlaubte HTML-Tags und -Attribute|HTML tables]].
* [[:w:en:Wikipedia:Article message boxes]] – The style guideline for creating article message boxes.
* [[:w:en:Wikipedia:Article message boxes]] – The style guideline for creating article message boxes.
* [[:w:en:Wikipedia talk:Article message boxes]] – For discussion about these matters.
* [[:w:en:Wikipedia talk:Article message boxes]] – For discussion about these matters.
Anonymer Benutzer