Sjabloon:Alert: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
(Created page with "<noinclude>{{Managed |Version=1.0 |Version notes=1.0 - First managed version |Short description= |Feature=Wiki:Feature/1530870851 |Status=Live |Uses managed items=}} This is...")
 
 
Regel 26: Regel 26:
 
--->{{#vardefine:@alert-type|{{lc:{{{Type|warning}}} }} }}<!---
 
--->{{#vardefine:@alert-type|{{lc:{{{Type|warning}}} }} }}<!---
 
--->{{#vardefine:@alert-icon|{{{Fa icon|exclamation-triangle}}} }}<!---
 
--->{{#vardefine:@alert-icon|{{{Fa icon|exclamation-triangle}}} }}<!---
---><div class="alert alert-{{#var:@alert-type}}">{{Fa|{{#var:@alert-icon}} }} {{#if:{{{Text|{{{1|}}} }}}|'''Note:''' {{{Text|{{{1|}}} }}}|Use 'Text=yourmessagehere' to fill this alert with text}}</div></includeonly>
+
---><div class="alert alert-{{#var:@alert-type}}">{{Fa|{{#var:@alert-icon}} }} {{#if:{{{Text|{{{1|}}} }}}|{{{Text|{{{1|}}} }}}|Use 'Text=yourmessagehere' to fill this alert with text}}</div></includeonly>

Huidige versie van 25 nov 2020 om 17:36


This is the "Alert" template. It should be called in the following format:

{{Alert
|yourmessagehere
|Text=orlikethis
|Type=danger/warning/info/success (default 'danger')
|Fa icon=default 'exclamation-triangle'
}}

Example:

{{Alert|Be aware of dangerous situations!}}

Produces:

Be aware of dangerous situations!