Vorlage:Box: Unterschied zwischen den Versionen

Aus Brandwiki
Wechseln zu:Navigation, Suche
imported>Ahoi
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<noinclude>
<noinclude>
To add a box for information, alert in your text, use the following template call on a page, substitute the ''italic'' variables with your input. The styling will then be applied automatically.
Für eine Infobox auf Textseiten verwende diese Vorlage und ersetze die kursiven Parameter durch deine Angaben. Das Styling wird automatisch angewendet.


==How to use==
==Verwenden der Vorlage==
<code><nowiki>{{Box|</nowiki>''Box type''<nowiki>|</nowiki>''Text''<nowiki>}}</nowiki></code>
<code><nowiki>{{Box|</nowiki>''Boxtyp''<nowiki>|</nowiki>''Text''<nowiki>}}</nowiki></code>


; Box
; Box
: This is the template name. Do not change or omit.
: Das ist der Vorlagenname. Nicht ändern oder weglassen.  
; Box type
; Boxtyp
: You can choose either '''tldr''', '''alert''', '''help''', or '''template'''. The styling will change accordingly.
: Du kannst zwischen '''tldr''', '''alert''', '''help''', oder '''template''' wählen. Das Styling wird dann automatisch angepasst.
; Text
; Text
: Write the information box text.
: Platz für deinen Infobox-Text.


==Examples==
==Beispiele==
=== tldr ===
=== tldr ===
<code><nowiki>{{Box|tldr|This is the summary on top of a section.}}</nowiki></code>
<code><nowiki>{{Box|tldr|Das ist eine Textzusammenfassung.}}</nowiki></code>
: {{Box|tldr|This is the summary on top of a section.}}
: {{Box|tldr|Das ist eine Textzusammenfassung.}}


=== alert ===
=== alert ===
<code><nowiki>{{Box|alert|This is an alert.}}</nowiki></code>
<code><nowiki>{{Box|alert|Das ist eine Warnung.}}</nowiki></code>
: {{Box|alert|This is an alert.}}
: {{Box|alert|Das ist eine Warnung.}}


=== help ===
=== help ===
<code><nowiki>{{Box|help|This is information with a [[Main Page|link]].}}</nowiki></code>
<code><nowiki>{{Box|help|Das ist ein Hilfetext mit einem [[Main Page|Link]].}}</nowiki></code>
: {{Box|help|This is information with a [[Main Page|link]].}}
: {{Box|help|Das ist ein Hilfetext mit einem [[Main Page|Link]].}}


=== template ===
=== template ===
<code><nowiki>{{Box|template|This is information with a [[Main Page|link]].}}</nowiki></code>
<code><nowiki>{{Box|template|Das ist ein Hilfetext mit einem [[Main Page|Link]].}}</nowiki></code>
: {{Box|template|This is information with a [[Main Page|link]].}}
: {{Box|template|Das ist ein Hilfetext mit einem [[Main Page|Link]].}}
: Used in the [[:Template:TemplateInfo|TemplateInfo]]
: Used in the [[:Template:TemplateInfo|TemplateInfo]]
</noinclude>
</noinclude>
<includeonly><div class="box {{{1|}}}">'''{{#switch:{{{1}}}|help=Help|alert=Alert|tldr=In short|template=Alert|Info}}''': {{{2|}}}</div>{{#switch:{{{1}}}|alert=[[Category:Alert]]|}}</includeonly>
<includeonly><div class="box {{{1|}}}">'''{{#switch:{{{1}}}|help=Hilfe|alert=Achtung|tldr=In Kürze|template=Achtung|Info}}''': {{{2|}}}</div>{{#switch:{{{1}}}|alert=[[Category:Alert]]|}}</includeonly>

Version vom 8. April 2022, 21:57 Uhr

Für eine Infobox auf Textseiten verwende diese Vorlage und ersetze die kursiven Parameter durch deine Angaben. Das Styling wird automatisch angewendet.

Verwenden der Vorlage

{{Box|Boxtyp|Text}}

Box
Das ist der Vorlagenname. Nicht ändern oder weglassen.
Boxtyp
Du kannst zwischen tldr, alert, help, oder template wählen. Das Styling wird dann automatisch angepasst.
Text
Platz für deinen Infobox-Text.

Beispiele

tldr

{{Box|tldr|Das ist eine Textzusammenfassung.}}

In Kürze: Das ist eine Textzusammenfassung.

alert

{{Box|alert|Das ist eine Warnung.}}

Achtung: Das ist eine Warnung.

help

{{Box|help|Das ist ein Hilfetext mit einem [[Main Page|Link]].}}

Hilfe: Das ist ein Hilfetext mit einem Link.

template

{{Box|template|Das ist ein Hilfetext mit einem [[Main Page|Link]].}}

Achtung: Das ist ein Hilfetext mit einem Link.
Used in the TemplateInfo