« Modèle:Box » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 7 : | Ligne 7 : | ||
</noinclude><includeonly><div class="noprint" style="margin:0.5em 0;box-sizing: border-box;background-color:#a4a4a4;border-radius: 0.2em;border:1px solid rgba(242,242,242,0.7);{{#if:{{{color|}}}| background-color:{{#switch: {{{color}}} | blue=#3581D8| green=#26B52A | red=#D82E3F|{{{color}}}}};}}{{#if:{{{width|}}}| width: {{{width|auto}}}; }}">{{#if:{{{title|}}}|<div style="color: #fff;border-radius: 0.2em 0.2em 0 0;padding: 0.5em 1em 0.5em 1em;">'''{{{title}}}'''</div>}}<div style=" padding: 0.5em 1em 0.5em 1em;background:#F8F9FA;background-color: rgba(255,255,255,0.75); | </noinclude><includeonly><div class="noprint" style="margin:0.5em 0;box-sizing: border-box;background-color:#a4a4a4;border-radius: 0.2em;border:1px solid rgba(242,242,242,0.7);{{#if:{{{color|}}}| background-color:{{#switch: {{{color}}} | blue=#3581D8| green=#26B52A | red=#D82E3F|{{{color}}}}};}}{{#if:{{{width|}}}| width: {{{width|auto}}}; }}">{{#if:{{{title|}}}|<div style="color: #fff;border-radius: 0.2em 0.2em 0 0;padding: 0.5em 1em 0.5em 1em;">'''{{{title}}}'''</div>}}<div style=" padding: 0.5em 1em 0.5em 1em;background:#F8F9FA;background-color: rgba(255,255,255,0.75); | ||
height: auto;">{{{content}}}</div></div> | height: auto;">{{{content}}}</div></div> | ||
{| class="wikitable hidden" style="width: 85%;" | |||
| colspan="2" | Cette largeur de colonne occupe 85 % de la largeur de l'écran | |||
|- | |||
| style="width: 30%"| '''Cette colonne est comptée à 30 % à partir de 85 % de la largeur de l'écran'''. | |||
| style="width: 70%"| '''Cette colonne est comptée à 70 % à partir de 85 % de la largeur de l'écran''' | |||
|} | |||
</includeonly> |
Version du 30 avril 2021 à 16:13
Ceci est le modèle « box ». Il devrait être appelé selon le format suivant :
{{box|title=TITLE|content=CONTENT|color=BACKGROUND-COLOR|width=WIDTH}}
Modifiez la page pour voir le texte du modèle.