Vorlage:Box: Unterschied zwischen den Versionen
Aus BrandWiki
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 '''alert''', '''help'''. The styling will change accordingly. | + | : You can choose either '''alert''', '''help''' or '''tldr'''. The styling will change accordingly. |
; Text | ; Text | ||
: Write the information box text. | : Write the information box text. | ||
Zeile 21: | Zeile 21: | ||
{{Box|help|This is information.}} | {{Box|help|This is information.}} | ||
+ | |||
+ | <code><nowiki>{{Box|tldr|This is the summary on top of a section.}}</nowiki></code> | ||
+ | |||
+ | {{Box|tldr|This is the summary on top of a section.}} | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | <div class="box {{{1|}}}">'''{{{1}}}''': {{{2|}}}</div> | + | <div class="box {{{1|}}}">'''{{#ifeq:{{{1}}}|help|Help|{{#ifeq:{{{1}}}|alert|Alert|In a nutshell}}''': {{{2|}}}</div> |
</includeonly> | </includeonly> |
Version vom 7. Mai 2019, 09: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}}
- Box
- This is the template name. Do not change or omit.
- Box type
- You can choose either alert, help or tldr. The styling will change accordingly.
- Text
- Write the information box text.
Examples
{{Box|alert|This is an alert.}}
{{#ifeq:alert|help|Help|Alert: This is an alert.
{{Box|help|This is information.}}
{{#ifeq:help|help|Help|In a nutshell: This is information.
{{Box|tldr|This is the summary on top of a section.}}
{{#ifeq:tldr|help|Help|In a nutshell: This is the summary on top of a section.