Vorlage:Ambox/Doku: Unterschied zwischen den Versionen
Weiter übersetzt
(-redlinks und derzeit nicht benötigte Vorlagen) |
(Weiter übersetzt) |
||
Zeile 4: | Zeile 4: | ||
{{High-risk}} | {{High-risk}} | ||
{{nosubst}} | {{nosubst}} | ||
<!-- | <!-- Kategorien bitte an das Ende dieser Seite, Interwiki-Links bitte in das Datenovjekt bei Wikidata. Danke! --> | ||
{{Mbox templates}} | {{Mbox templates}} | ||
Zeile 38: | Zeile 38: | ||
Der Parameter sollte angepasst werden, sofern die Seite verschoben wird. Der Parameter erfüllt zwei Aufgaben. | Der Parameter sollte angepasst werden, sofern die Seite verschoben wird. Der Parameter erfüllt zwei Aufgaben. | ||
# Sollte die Vorlage | # Sollte die Vorlage fälschlicherweise substituiert werden, wird dadurch die Fehlersuche vereinfacht weil die Metavorlage den Namen der substituierten Vorlage angibt. | ||
# Es erlaubt der Vorlage eine Sinnvollere Anzeige auf der Vorlagen Seite z.B. das Datum trotzdem keines spezifiziert ist oder Kategorisierung der Vorlage selbst. | # Es erlaubt der Vorlage eine Sinnvollere Anzeige auf der Vorlagen Seite z.B. das Datum trotzdem keines spezifiziert ist oder Kategorisierung der Vorlage selbst. | ||
=== ''subst'' === | === ''subst'' === | ||
Der ''subst'' Parameter erlaubt es eine Warnung auszugeben, falls die Vorlage | Der ''subst'' Parameter erlaubt es eine Warnung auszugeben, falls die Vorlage fälschlicherweise substituiert wurde. | ||
Zudem werden solche Vorlagen der Kategorie [[:Kategorie:Vorlagen, die ersetzt statt eingebunden wurden]] hinzugefügt. Just copy the code exactly as it appears in the box. | Zudem werden solche Vorlagen der Kategorie [[:Kategorie:Vorlagen, die ersetzt statt eingebunden wurden]] hinzugefügt. Just copy the code exactly as it appears in the box. | ||
Zeile 122: | Zeile 122: | ||
You can choose a specific image to use for the template by using the ''image'' parameter. Images are specified using the standard syntax for inserting files in Wikipedia (see [[:w:en:Wikipedia:Manual of Style/Images#How to place an image]].) Widths of 40-50px are typical. For example: | You can choose a specific image to use for the template by using the ''image'' parameter. Images are specified using the standard syntax for inserting files in Wikipedia (see [[:w:en:Wikipedia:Manual of Style/Images#How to place an image]].) Widths of 40-50px are typical. For example: | ||
Bitte beachte: | |||
* If no image is specified then the default image corresponding to the ''type'' is used. (See [[#type]] above.) | * If no image is specified then the default image corresponding to the ''type'' is used. (See [[#type]] above.) | ||
* If {{para|image|none}} is specified, then no image is used and the text uses the whole message box area. | * If {{para|image|none}} is specified, then no image is used and the text uses the whole message box area. | ||
* If an icon is [[Wikipedia:Alternative text for images#Purely decorative images|purely decorative]] and also in the [[Wikipedia:Image use policy#Public_domain|public domain]], [[Wikipedia:Accessibility|accessibility]] can be improved by suppressing the link to the file page by adding "{{para|link}}{{para|alt}}" as seen above. | * If an icon is [[:w:en:Wikipedia:Alternative text for images#Purely decorative images|purely decorative]] and also in the [[:w:en:Wikipedia:Image use policy#Public_domain|public domain]], [[:w:en:Wikipedia:Accessibility|accessibility]] can be improved by suppressing the link to the file page by adding "{{para|link}}{{para|alt}}" as seen above. | ||
=== ''sect'' === | === ''sect'' === | ||
Zeile 167: | Zeile 167: | ||
The ''all'' parameter defines a category into which all articles should be placed. | The ''all'' parameter defines a category into which all articles should be placed. | ||
== | == Andere Parameter == | ||
Die Box auf der rechten Seite listet alle gültigen Parameter für die Vorlage auf. Allerdings ist es nicht empfehlenswert, dies als Kopiervorlage zu nutzen, denn so gut wie nie werden alle Parameter gleichzeitig benutzt. | |||
{| class="wikitable" align="right" style="background:transparent; width=40%" | {| class="wikitable" align="right" style="background:transparent; width=40%" | ||
! | !Alle Parameter | ||
|- | |- | ||
|<pre style="font-size:90%; width=40%"> | |<pre style="font-size:90%; width=40%"> | ||
Zeile 199: | Zeile 199: | ||
| all3 = | | all3 = | ||
}}<noinclude> | }}<noinclude> | ||
{{ | {{Dokumentation}} | ||
</noinclude> | </noinclude> | ||
</pre> | </pre> | ||
Zeile 253: | Zeile 253: | ||
* 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 [[ | * For more technical details see the [[Vorlage Diskussion: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. | ||
== Siehe auch == | == Siehe auch == |