Vorlage:Ambox/Doku: Unterschied zwischen den Versionen

K
350 Versionen von wikivoyage:Vorlage:Ambox/Doku importiert
KKeine Bearbeitungszusammenfassung
K (350 Versionen von wikivoyage:Vorlage:Ambox/Doku importiert)
 
(11 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 39: Zeile 39:
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 fälschlicherweise substituiert werden, wird dadurch die Fehlersuche vereinfacht weil die Metavorlage den Namen der substituierten Vorlage angibt.
# 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'' ===
Zeile 120: Zeile 120:


=== ''image'' ===
=== ''image'' ===
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:
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 [[: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.
* 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 135: Zeile 135:


=== ''issue'' and ''fix'' ===
=== ''issue'' and ''fix'' ===
The ''issue'' parameter is used to describe the issue with the article. Try to keep it short and to-the-point (approximately 10-20 words) and be sure to include a link to a relevant [[:w:ene:Wikipedia:Policies and guidelines|policy or guideline]].
The ''issue'' parameter is used to describe the issue with the article. Try to keep it short and to-the-point (approximately 10-20 words) and be sure to include a link to a relevant [[w:ene:Wikipedia:Policies and guidelines|policy or guideline]].


The ''fix'' parameter contains some text which describes what should be done to improve the article. It may be longer than the text in ''issue'', but should not usually be more than two sentences.
The ''fix'' parameter contains some text which describes what should be done to improve the article. It may be longer than the text in ''issue'', but should not usually be more than two sentences.
Zeile 145: Zeile 145:
This parameter may then be used by an editor as follows:
This parameter may then be used by an editor as follows:
* {{para|talk|SECTION HEADING}} - the link will point to the specified section on the article's talk page, e.g. {{para|talk|Foo}}
* {{para|talk|SECTION HEADING}} - the link will point to the specified section on the article's talk page, e.g. {{para|talk|Foo}}
* {{para|talk|FULL PAGE NAME}} - the template will link to the page specified (which may include a [[:w:en:WP:ANCHOR|section anchor]]), e.g. {{para|talk|Talk:Banana#Foo}}
* {{para|talk|FULL PAGE NAME}} - the template will link to the page specified (which may include a [[w:en:WP:ANCHOR|section anchor]]), e.g. {{para|talk|Talk:Banana#Foo}}


Notes:
Notes:
Zeile 153: Zeile 153:


=== ''date'' ===
=== ''date'' ===
Passing the ''date'' parameter through to the meta-template means that the date that the article is tagged may be specified by an editor (or more commonly a [[:w:en:WP:bot|bot]]). This will be displayed after the message in a smaller font.
Passing the ''date'' parameter through to the meta-template means that the date that the article is tagged may be specified by an editor (or more commonly a [[w:en:WP:bot|bot]]). This will be displayed after the message in a smaller font.


Passing this parameter also enables monthly cleanup categorisation when the ''cat'' parameter is also defined.
Passing this parameter also enables monthly cleanup categorisation when the ''cat'' parameter is also defined.
Zeile 211: Zeile 211:


=== ''class'' ===
=== ''class'' ===
A custom [[:w:Cascading Style Sheets|CSS]] class to apply to the box.
A custom [[w:Cascading Style Sheets|CSS]] class to apply to the box.


=== ''style'' and ''textstyle'' ===
=== ''style'' and ''textstyle'' ===
Zeile 228: Zeile 228:


== Technical notes ==
== Technical notes ==
* This meta-template uses the ambox CSS classes in [[MediaWiki:Common.css]]. The classes can also be used directly in a [[Hilfe:Tabellen|wikitable]] if special functionality is needed. See the [[:w:en:Wikipedia:Ambox CSS classes|how-to guide]] for that.
* This meta-template uses the ambox CSS classes in [[MediaWiki:Common.css]]. The classes can also be used directly in a [[Hilfe:Tabellen|wikitable]] if special functionality is needed. See the [[w:en:Wikipedia:Ambox CSS classes|how-to guide]] for that.
* If you need to use special characters in the text parameter then you need to escape them like this:
* If you need to use special characters in the text parameter then you need to escape them like this:
<pre>
<pre>
{{Ambox
{{Ambox
| text  = <div>
| text  =
Equal sign = and a start and end brace { } work fine as they are.
Equal sign = and a start and end brace { } work fine as they are.
But here is a pipe &amp;#124; and two end braces &lt;nowiki>}}&lt;/nowiki>.
But here is a pipe &amp;#124; and two end braces &lt;nowiki>}}&lt;/nowiki>.
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.
</div>
}}
}}
</pre>
</pre>
{{Ambox
{{Ambox
| nocat = true
| nocat = true
| text  = <div>Equal sign = and a start and end brace { } work fine as they are.
| text  = Equal sign = and a start and end brace { } work fine as they are. But here is a pipe &#124; and two end braces <nowiki>}}</nowiki>. And now a pipe and end braces <nowiki>|}}</nowiki>.
But here is a pipe &#124; and two end braces <nowiki>}}</nowiki>.
And now a pipe and end braces <nowiki>|}}</nowiki>.</div>
}}
}}


Zeile 256: Zeile 253:
{{Mbox templates see also}}
{{Mbox templates see also}}
Andere Seiten:
Andere Seiten:
* [[:w:en:Wikipedia:Ambox CSS classes]] – Describes how to use the ambox CSS classes directly in [[Hilfe:Tabellen|wikitable]]s and [[Hilfe:Erlaubte HTML-Tags und -Attribute|HTML tables]].
* [[w:en:Wikipedia:Ambox CSS classes]] – Describes how to use the ambox CSS classes directly in [[Hilfe:Tabellen|wikitable]]s and [[Hilfe:Tabellen|HTML tables]].
* [[:w:en:Wikipedia:Article message boxes]] – The style guideline for creating article message boxes.
* [[w:en:Wikipedia:Article message boxes]] – The style guideline for creating article message boxes.
* [[:w:en:Wikipedia talk:Article message boxes]] – For discussion about these matters.
* [[w:en:Wikipedia talk:Article message boxes]] – For discussion about these matters.


{{mbox template family}}
{{mbox template family}}