Vorlage:Box: Unterschied zwischen den Versionen
Aus BrandWiki
imported>Ahoi |
imported>Ahoi |
||
Zeile 2: | Zeile 2: | ||
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. | 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== | ||
<code><nowiki>{{Box|</nowiki>''Box type''<nowiki>|</nowiki>''Intro text''<nowiki></nowiki>''Text''<nowiki>}}</nowiki></code> | <code><nowiki>{{Box|</nowiki>''Box type''<nowiki>|</nowiki>''Intro text''<nowiki></nowiki>''Text''<nowiki>}}</nowiki></code> | ||
Zeile 13: | Zeile 14: | ||
: Write the information box text. | : Write the information box text. | ||
+ | ==Examples== | ||
<code><nowiki>{{Box|alert|Alert|This is an alert.}}</nowiki></code> | <code><nowiki>{{Box|alert|Alert|This is an alert.}}</nowiki></code> | ||
Version vom 7. Mai 2019, 08:16 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|Intro textText}}
- 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.
- Intro text
- Write the text that should serve as a bold formatted intro.
- Text
- Write the information box text.
Examples
{{Box|alert|Alert|This is an alert.}}
Alert: This is an alert.
{{Box|info|Look closely|This is information.}}
Look closely: This is information.