Vorlage:Box: Unterschied zwischen den Versionen

Aus BrandWiki
Wechseln zu:Navigation, Suche
imported>Ahoi
imported>Ahoi
Zeile 8: Zeile 8:
 
: This is the template name. Do not change or omit.
 
: This is the template name. Do not change or omit.
 
; Box type
 
; Box type
: You can choose either '''tldr''', '''alert''', or '''help'''. The styling will change accordingly.
+
: You can choose either '''tldr''', '''alert''', '''help''', or '''template'''. The styling will change accordingly.
 
; Text
 
; Text
 
: Write the information box text.
 
: Write the information box text.
Zeile 23: Zeile 23:
 
<code><nowiki>{{Box|help|This is information with a [[Main Page|link]].}}</nowiki></code>
 
<code><nowiki>{{Box|help|This is information with a [[Main Page|link]].}}</nowiki></code>
 
: {{Box|help|This is information with a [[Main Page|link]].}}
 
: {{Box|help|This is information with a [[Main Page|link]].}}
 +
 +
<code><nowiki>{{Box|template|This is information with a [[Main Page|link]].}}</nowiki></code>
 +
: Used in the [[:Template:TemplateInfo|TemplateInfo]]
 
</noinclude>
 
</noinclude>
<includeonly><div class="box {{{1|}}}">'''{{#switch:{{{1}}}|help=Help|alert=Alert|tldr=In short|Info}}''': {{{2|}}}</div>{{#switch:{{{1}}}|alert=[[Category:Alert]]|}}</includeonly>
+
<includeonly><div class="box {{{1|}}}">'''{{#switch:{{{1}}}|help=Help|alert=Alert|tldr=In short|template=|Info}}''': {{{2|}}}</div>{{#switch:{{{1}}}|alert=[[Category:Alert]]|}}</includeonly>

Version vom 21. Mai 2019, 22:58 Uhr

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.

How to use

{{Box|Box type|Text}}

Box
This is the template name. Do not change or omit.
Box type
You can choose either tldr, alert, help, or template. The styling will change accordingly.
Text
Write the information box text.

Examples

{{Box|tldr|This is the summary on top of a section.}}

In short: This is the summary on top of a section.


{{Box|alert|This is an alert.}}

Alert: This is an alert.


{{Box|help|This is information with a [[Main Page|link]].}}

Help: This is information with a link.

{{Box|template|This is information with a [[Main Page|link]].}}

Used in the TemplateInfo