Différences entre les versions de « Modèle:Attention »
Aller à la navigation
Aller à la recherche
m |
|||
Ligne 1 : | Ligne 1 : | ||
<includeonly><!-- | <includeonly><!-- | ||
− | -->{{#if: {{{1|{{{texte|}}} | + | -->{{#if: {{{1|{{{texte|}}}}}} |
| <!-- (construction avec tableau pour mise en page) | | <!-- (construction avec tableau pour mise en page) | ||
− | --><table | + | --><table style="border: 2px solid #ff6c6c; margin: 10px 0px 10px 0px;"><tr><!-- |
− | --><td style="border:none">[[Image:IconeAttention.png|Icône pour souligner l'importance du texte|{{{dimension|30}}}px|alt=|link=]]</td><!-- | + | --><td style="border:none; padding: 5px 5px 5px 5px;">[[Image:IconeAttention.png|Icône pour souligner l'importance du texte|{{{dimension|30}}}px|alt=|link=]]</td><!-- |
− | -->{{#if: {{{1|{{{texte|}}}}}} | <td style="border:none">{{{1|{{{texte|}}}}}}</td> }}<!-- | + | -->{{#if: {{{1|{{{texte|}}}}}} | <td style="border:none; padding: 5px 5px 5px 5px;">{{{1|{{{texte|}}}}}}</td> }}<!-- |
--></tr></table> | --></tr></table> | ||
| <!-- (icône seule, sans texte) | | <!-- (icône seule, sans texte) | ||
Ligne 24 : | Ligne 24 : | ||
| <code><nowiki>{{Attention|dimension=24|Texte à afficher}}</nowiki></code> | | <code><nowiki>{{Attention|dimension=24|Texte à afficher}}</nowiki></code> | ||
| {{Attention|dimension=24|texte=Texte à afficher}} | | {{Attention|dimension=24|texte=Texte à afficher}} | ||
− | |||
− | |||
− | |||
|} | |} | ||
+ | [[en:Template:Attention]] | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "1": { | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "texte": { | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "dimension": { | ||
+ | "type": "number" | ||
+ | } | ||
+ | }, | ||
+ | "description": "Affiche un bandeau d'avertissement rouge", | ||
+ | "format": "inline" | ||
+ | } | ||
+ | </templatedata> | ||
</noinclude> | </noinclude> |
Version du 30 décembre 2019 à 22:38
Syntaxe | Rendu | ||
---|---|---|---|
{{Attention}}
|
|||
{{Attention|Texte à afficher}}
|
| ||
on peut aussi nommer le paramètre "texte" : {{Attention|texte=Texte à afficher}}
|
| ||
{{Attention|dimension=24|Texte à afficher}}
|
|
Affiche un bandeau d'avertissement rouge
Paramètre | Description | Type | Statut | |
---|---|---|---|---|
1 | 1 | aucune description | Contenu | facultatif |
Texte | texte | aucune description | Contenu | facultatif |
Dimension | dimension | aucune description | Nombre | facultatif |