« Modèle:Bandeau/doc » : différence entre les versions
De Nefald
Autres actions
Page créée avec « <includeonly> <templatedata> { "description": { "fr": "Affiche un bandeau coloré avec icône FontAwesome, adapté au skin Citizen et au mode sombre.", "en": "Displays a colored banner with FontAwesome icon, adapted for Citizen skin and dark mode." }, "format": "inline", "params": { "1": { "label": { "fr": "Message", "en": "Message" }, "description": { "fr": "Le texte du message à afficher dans le ban... » |
mAucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| Ligne 6 : | Ligne 5 : | ||
"en": "Displays a colored banner with FontAwesome icon, adapted for Citizen skin and dark mode." | "en": "Displays a colored banner with FontAwesome icon, adapted for Citizen skin and dark mode." | ||
}, | }, | ||
"format": " | "format": "block", | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
| Ligne 18 : | Ligne 17 : | ||
}, | }, | ||
"type": "content", | "type": "content", | ||
"required": | "required": true, | ||
"aliases": ["texte"] | "aliases": ["texte"], | ||
"example": "Ceci est un message important" | |||
}, | }, | ||
"type": { | "type": { | ||
| Ligne 33 : | Ligne 33 : | ||
"required": false, | "required": false, | ||
"default": "info", | "default": "info", | ||
"example": "attention", | "example": "attention", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
| Ligne 80 : | Ligne 79 : | ||
"required": false, | "required": false, | ||
"example": "Important" | "example": "Important" | ||
} | } | ||
}, | }, | ||
"paramOrder": ["type", " | "paramOrder": ["type", "titre", "icone", "1"] | ||
} | } | ||
</templatedata> | </templatedata> | ||
| Ligne 101 : | Ligne 87 : | ||
== Utilisation == | == Utilisation == | ||
=== Syntaxe minimale === | |||
<pre> | |||
=== Syntaxe | {{Bandeau|Votre message ici}} | ||
</pre> | |||
=== Avec type === | |||
<pre> | <pre> | ||
{{Bandeau|type= | {{Bandeau|type=attention|Message d'avertissement}} | ||
</pre> | </pre> | ||
=== Avec icône personnalisée === | === Avec icône personnalisée === | ||
<pre> | <pre> | ||
{{Bandeau|type= | {{Bandeau|type=info|icone=map|Consultez la carte}} | ||
</pre> | </pre> | ||
=== Avec titre === | === Avec titre === | ||
<pre> | <pre> | ||
{{Bandeau|type= | {{Bandeau|type=warning|titre=Attention|Message important}} | ||
</pre> | </pre> | ||
== Exemples == | == Exemples == | ||
{{Bandeau|Message informatif simple}} | |||
{{Bandeau|type= | {{Bandeau|type=attention|Attention à cette fonctionnalité}} | ||
{{Bandeau|type= | {{Bandeau|type=succes|icone=rocket|Opération réussie !}} | ||
{{Bandeau|type= | {{Bandeau|type=conseil|titre=Astuce|Utilisez Ctrl+S pour sauvegarder}} | ||
== Types disponibles == | |||
=== | |||
* '''info''' - Bleu (par défaut) | |||
* '''attention''' / '''warning''' - Orange | |||
* '''erreur''' / '''error''' / '''danger''' - Rouge | |||
* '''succes''' / '''success''' - Vert | |||
* '''note''' - Gris | |||
* '''conseil''' / '''tip''' - Violet | |||
* '''construction''' - Jaune | |||
* '''important''' - Rouge-orange | |||
* '''question''' - Bleu clair | |||
* '''nouveau''' / '''new''' - Cyan | |||
* '''archive''' - Marron | |||
Version du 28 octobre 2025 à 07:35
Affiche un bandeau coloré avec icône FontAwesome, adapté au skin Citizen et au mode sombre.
| Paramètre | Description | Type | État | |
|---|---|---|---|---|
| Type | type | Type de bandeau qui définit la couleur et l'icône par défaut
| Chaîne | facultatif |
| Titre | titre | Titre optionnel affiché en gras au-dessus du message
| Chaîne | facultatif |
| Icône | icone | Nom de l'icône FontAwesome sans le préfixe 'fa-' (ex: map, rocket, heart). Remplace l'icône par défaut du type.
| Chaîne | facultatif |
| Message | 1 texte | Le texte du message à afficher dans le bandeau
| Contenu | obligatoire |
Utilisation
Syntaxe minimale
{{Bandeau|Votre message ici}}
Avec type
{{Bandeau|type=attention|Message d'avertissement}}
Avec icône personnalisée
{{Bandeau|type=info|icone=map|Consultez la carte}}
Avec titre
{{Bandeau|type=warning|titre=Attention|Message important}}
Exemples
Message informatif simple
Attention à cette fonctionnalité
Opération réussie !
Astuce
Utilisez Ctrl+S pour sauvegarder
Types disponibles
- info - Bleu (par défaut)
- attention / warning - Orange
- erreur / error / danger - Rouge
- succes / success - Vert
- note - Gris
- conseil / tip - Violet
- construction - Jaune
- important - Rouge-orange
- question - Bleu clair
- nouveau / new - Cyan
- archive - Marron