Vorlage:Box: Unterschied zwischen den Versionen

Aus BrandWiki
Wechseln zu:Navigation, Suche
imported>Ahoi
imported>Ahoi
Zeile 3: Zeile 3:
  
 
==How to use==
 
==How to use==
<code><nowiki>{{Box|</nowiki>''Box type''<nowiki>|</nowiki>''Intro text''<nowiki>|</nowiki>''Text''<nowiki>}}</nowiki></code>
+
<code><nowiki>{{Box|</nowiki>''Box type''<nowiki>|</nowiki>''Text''<nowiki>|</nowiki>''Intro text''<nowiki>}}</nowiki></code>
  
 
; Box
 
; Box
Zeile 9: Zeile 9:
 
; Box type
 
; Box type
 
: You can choose either '''alert''', '''info''' or '''help'''. The styling will change accordingly.
 
: You can choose either '''alert''', '''info''' or '''help'''. The styling will change accordingly.
; Intro text
 
: Write the text that should serve as a '''bold''' formatted intro.
 
 
; Text
 
; Text
 
: Write the information box text.
 
: Write the information box text.
 +
; Intro text
 +
: Write the text that should serve as a '''bold''' formatted intro. This can be left out.
  
 
==Examples==
 
==Examples==
<code><nowiki>{{Box|alert|Alert|This is an alert.}}</nowiki></code>
+
<code><nowiki>{{Box|alert|This is an alert.}}</nowiki></code>
 +
 
 +
{{Box|alert|This is an alert.}}
 +
 
 +
 
 +
<code><nowiki>{{Box|alert|This is an alert.|Alert}}</nowiki></code>
  
{{Box|alert|Alert|This is an alert.}}
+
{{Box|alert|This is an alert.|Alert}}
  
  
<code><nowiki>{{Box|info|Look closely|This is information.}}</nowiki></code>
+
<code><nowiki>{{Box|info|This is information.|Look closely}}</nowiki></code>
  
{{Box|info|Look closely|This is information.}}
+
{{Box|info|This is information.|Look closely}}
  
  
<code><nowiki>{{Box|help|Watch out|You can get help on [[Main page|This page]].}}</nowiki></code>
+
<code><nowiki>{{Box|help|You can get help on [[Main page|This page]].|Watch out}}</nowiki></code>
  
{{Box|help|Watch out|You can get help on [[Main page|This page]].}}
+
{{Box|help|You can get help on [[Main page|This page]].|Watch out}}
  
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
<div class="box {{{1|}}}">'''{{{2|}}}''': {{{3|}}}</div>
+
<div class="box {{{1|}}}">{{{#if:{{{3|}}}|'''{{{3|}}}''': |}}}{{{2|}}}</div>
 
</includeonly>
 
</includeonly>

Version vom 7. Mai 2019, 08:21 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|Intro text}}

Box
This is the template name. Do not change or omit.
Box type
You can choose either alert, info or help. The styling will change accordingly.
Text
Write the information box text.
Intro text
Write the text that should serve as a bold formatted intro. This can be left out.

Examples

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


': This is an alert.


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


Alert: This is an alert.


{{Box|info|This is information.|Look closely}}


Look closely: This is information.


{{Box|help|You can get help on [[Main page|This page]].|Watch out}}


Watch out: You can get help on This page.