Vorlage:Ambox/Doku: Unterschied zwischen den Versionen
+
imported>MSGJ Keine Bearbeitungszusammenfassung |
imported>MSGJ (+) |
||
Zeile 6: | Zeile 6: | ||
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 it has some other features. | ||
== | == Common parameters == | ||
The box on the right shows the most common parameters that are accepted by {{tl|ambox}}. The purpose of each is described below. | |||
{| class="wikitable" align="right" style="background:transparent; width=40%" | {| class="wikitable" align="right" style="background:transparent; width=40%" | ||
!Common parameters | !Common parameters | ||
Zeile 29: | Zeile 30: | ||
</pre> | </pre> | ||
|} | |} | ||
=== ''name'' === | |||
The ''name'' parameter specifies the name of the template, without the Template namespace prefix. For example {{tl|Wikify}} specifies {{para|name|Wikify}}. | |||
This parameter should be updated if the template is ever moved. The purpose of this parameter is twofold: | |||
* If incorrectly 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. | |||
* It allows the template to act slightly differently on its template page, for example to show the date even when not specified, and to apply categorisation of the template itself. | |||
=== ''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]]. | |||
{{clear}} | {{clear}} |