Vorlage:Ambox/Doku: Unterschied zwischen den Versionen

+
imported>MSGJ
imported>MSGJ
(+)
Zeile 52: Zeile 52:
* 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.
* 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}}
=== ''type'' ===
===Complex example===
The ''type'' parameter defines the colour of the left bar, and the image that is used by default. The type is chosen not on aesthetics but is based on the type of issue that the template describes. The seven available types and their default images are shown below.
 
<pre>
{{Ambox
| name      = Name of template
| subst      = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
| type       = style
| small      = left
| image      = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]]
| smallimage = [[File:Emblem-question-yellow.svg|20px|alt=Question mark]]
| textstyle  = color: red; font-weight: bold; font-style: italic;
| text      = Text for a big box, for the top of articles.
| talk      = {{{talk|}}}
| smalltext  = Text for the top of article sections.
| date      = {{{date|}}}
| cat        = A name of a category to use for monthly categories
| all        = A category which all articles will be placed in
}}
</pre>
 
{{Ambox
|nocat=true
| type      = style
| small      = left
| image     = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]]
| smallimage = [[File:Emblem-question-yellow.svg|20px|alt=Question mark]]
| textstyle  = color: red; font-weight: bold; font-style: italic;
| text      = Text for a big box, for the top of articles.
| smalltext  = Text for the top of article sections.
}}
 
But you are not really supposed to use red bold italic text.
 
=== Article message box types ===
 
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.
 
{{Ambox
{{Ambox
|nocat=true
|nocat=true
Zeile 125: Zeile 89:
| text  = type=<u>protection</u> – Protection notices, such as {{tl|pp-vandalism}} and {{tl|pp-semi-protected}}.
| text  = type=<u>protection</u> – Protection notices, such as {{tl|pp-vandalism}} and {{tl|pp-semi-protected}}.
}}
}}
{{clear}}
===Complex example===
<pre>
{{Ambox
| name      = Name of template
| subst      = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
| type      = style
| small      = left
| image      = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]]
| smallimage = [[File:Emblem-question-yellow.svg|20px|alt=Question mark]]
| textstyle  = color: red; font-weight: bold; font-style: italic;
| text      = Text for a big box, for the top of articles.
| talk      = {{{talk|}}}
| smalltext  = Text for the top of article sections.
| date      = {{{date|}}}
| cat        = A name of a category to use for monthly categories
| all        = A category which all articles will be placed in
}}
</pre>
{{Ambox
|nocat=true
| type      = style
| small      = left
| image      = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]]
| smallimage = [[File:Emblem-question-yellow.svg|20px|alt=Question mark]]
| textstyle  = color: red; font-weight: bold; font-style: italic;
| text      = Text for a big box, for the top of articles.
| smalltext  = Text for the top of article sections.
}}
But you are not really supposed to use red bold italic text.


=== Other images ===
=== Other images ===
Anonymer Benutzer