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. | ||
− | + | <code><nowiki>{{Box|</nowiki>''Box type''<nowiki>|</nowiki>''Text''<nowiki>}}</nowiki></code> | |
− | <code><nowiki>{{Box|</nowiki>''Box type''<nowiki>|</nowiki>''Text | ||
; Box | ; Box | ||
: 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 '''alert''', '''info | + | : You can choose either '''alert''', '''info'''. The styling will change accordingly. |
; Text | ; Text | ||
: Write the information box text. | : Write the information box text. | ||
− | |||
− | |||
− | |||
<code><nowiki>{{Box|alert|This is an alert.}}</nowiki></code> | <code><nowiki>{{Box|alert|This is an alert.}}</nowiki></code> | ||
{{Box|alert|This is an alert.}} | {{Box|alert|This is an alert.}} | ||
+ | <code><nowiki>{{Box|info|This is information.}}</nowiki></code> | ||
− | + | {{Box|info|This is information.}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | <div class="box {{{1|}}}"> | + | <div class="box {{{1|}}}">'''{{#ifeq:{{{1}}}|info|Info|Alert}}''': {{{2|}}}</div> |
</includeonly> | </includeonly> |
Version vom 7. Mai 2019, 08:25 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.
{{Box|Box type|Text}}
- Box
- This is the template name. Do not change or omit.
- Box type
- You can choose either alert, info. The styling will change accordingly.
- Text
- Write the information box text.
{{Box|alert|This is an alert.}}
Alert: This is an alert.
{{Box|info|This is information.}}
Info: This is information.