Différences entre versions de « Modèle:Important »

De Documentation Polaris
Aller à : navigation, rechercher
 
Ligne 33 : Ligne 33 :
 
| glyphicon-map-marker }}
 
| glyphicon-map-marker }}
 
}}{{ #vardefine: titre |  
 
}}{{ #vardefine: titre |  
     {{#switch: {{{type|note}}}  
+
     {{#switch: {{{type|important}}}  
 
| note = A savoir :
 
| note = A savoir :
 
| important = Important !
 
| important = Important !
 
| {{{type}}} }}
 
| {{{type}}} }}
 
}}{{ #vardefine: premsg |  
 
}}{{ #vardefine: premsg |  
     {{#switch: {{{type|note}}}  
+
     {{#switch: {{{type|important}}}  
 
|  }} }}
 
|  }} }}
 
<div class="panel panel-{{#var: kind}}">
 
<div class="panel panel-{{#var: kind}}">
 
<div class="panel-heading"><span class="panel-title"><span class="glyphicon {{#var: icon}}"></span> {{#var: titre}}</span></div>
 
<div class="panel-heading"><span class="panel-title"><span class="glyphicon {{#var: icon}}"></span> {{#var: titre}}</span></div>
 
<div class="panel-body">{{#var: premsg}}{{#if: {{{msg|{{{1|}}}|}}} | <strong>{{{msg|{{{1|}}}|}}}</strong>}}</div></div>
 
<div class="panel-body">{{#var: premsg}}{{#if: {{{msg|{{{1|}}}|}}} | <strong>{{{msg|{{{1|}}}|}}}</strong>}}</div></div>

Version actuelle datée du 23 août 2017 à 12:03

<templatedata> { "description": "Insère un marquage de type alerte visuelle pour signifier une note ou un point important dans le texte.", "params": { "type": { "label": "Type d'alerte visuelle", "type": "string", "required": true, "default": "important", "description": "Spécifiez ici le type d'alerte visuelle que vous souhaitez générer : note, faux, important, ebauche, illustration" }, "msg": { "label": "Message", "type": "string", "required": true, "default": "", "description": "Spécifiez ici le message à produire." } } } </templatedata>


Important !