Zum Inhalt springen

Vorlage:Ambox/Doku: Unterschied zwischen den Versionen

imported>MSGJ
(+)
imported>MSGJ
Zeile 39: Zeile 39:


=== ''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]].
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.


=== ''small'' ===
The ''small'' parameter should be passed through the template, as this will allow editors to use the small format by specifying {{para|small|left}} on an article:
{{ambox|nocat=true|small=left|text=This is the small left-aligned ambox format.}}
Otherwise the standard format will be produced:
{{ambox|nocat=true|text=This is the standard ambox format.}}
Other variations:
* For templates which should ''never'' be small, specify {{para|small|no}} or do not pass the small parameter at all.
* For templates which should ''always'' be small, just specify {{para|small|left}}.
* For templates which should ''default to small'', try {{para|small|<nowiki>{{{small|left}}}</nowiki>}}. This will allow an editor to override by using {{para|small|no}} on an article.


{{clear}}
{{clear}}
Anonymer Benutzer