Vorlage:Ambox/Doku: Unterschied zwischen den Versionen

K
Anfang Übersetzung
KKeine Bearbeitungszusammenfassung
K (Anfang Übersetzung)
Zeile 5: Zeile 5:


{{Mbox templates}}
{{Mbox templates}}
This is the {{Tl|Ambox}} or '''Article message box''' meta-template.
Dieses ist die {{Tl|Ambox}} oder auch '''Article message box''' Meta-Vorlage.


It is used to build ''article message box'' templates such as {{tl|inuse}}. It offers several different colours, uses default images if no image parameter is given, and has some other features.
Diese Vorlage dien als Grundlage um Artikel Benachrichtigungsboxen zu erstellen wie etwa die {{tl|inuse}} Vorlage. Die Vorlage stellt unter anderem zahlreiche Farben und Bildeinbindungsmöglichkeiten zur Verfügung.


== Common parameters ==
== Gebräuchliche Parameter ==  
The box on the right shows the most common parameters that are accepted by {{tl|ambox}}. The purpose of each is described below.
Rechts sind die gebräuchlichsten Parameter zu sehen die von der Box akzeptiert werden {{tl|ambox}}. Die Funktion der Paramenter ist unten erläutert.
{| class="wikitable" align="right" style="background:transparent; width=40%"  
{| class="wikitable" align="right" style="background:transparent; width=40%"  
!Common parameters
!Common parameters
Zeile 33: Zeile 33:


=== ''name'' ===
=== ''name'' ===
The ''name'' parameter specifies the name of the template, without the Template namespace prefix. For example {{tl|inuse}} specifies {{para|name|inuse}}.
''name'' definiert den Namen der Vorlage ohne den Vorlge: Namensraum Vorsatz. Yum Beispiel {{tl|inuse}} speyifiziert {{para|name|inuse}}.


This parameter should be updated if the template is ever moved. The purpose of this parameter is twofold:
Der Paramter sollte angepasst werden wenn die Seite verschoben wird. Der Paramater erfüllt zwei Aufgaben.
* If incorrectly [[:w:en:Wikipedia:Substitution|substituted]], it allows the meta-template to notify the name of the template which has been substituted, which may help editors to fix the problem.
# Sollte die Vorlage inkorrekterweise substituiert werden, wird dadurch die Fehlersuche vereinfacht weil die metavorlage den Namen des substituierten Template angibt.
* It allows the template to have a more useful display on its template page, for example to show the date even when not specified, and to apply categorisation of the template itself.
# 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'' ===
The ''subst'' parameter allows the meta-template to detect whether the template has been incorrectly substituted, and give an appropriate warning. It will also add such pages to [[:Category:Pages with incorrectly substituted templates]]. Just copy the code exactly as it appears in the box.
Der ''subst'' Parameter erlaubt es eine Warnung auszugeben, falls die Vorlage inkorrekterweise substituiert wurde.  
 
It will also add such pages to [[:Category:Pages with incorrectly substituted templates]]. Just copy the code exactly as it appears in the box.


=== ''small'' ===
=== ''small'' ===
Anonymer Benutzer