« Modèle:Box » : différence entre les versions

De EduTech Wiki
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
 
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 5 : Ligne 5 :
</pre>
</pre>
Modifiez la page pour voir le texte du modèle.
Modifiez la page pour voir le texte du modèle.
</noinclude><includeonly><div class="noprint background-{{{color|grey}}}" style="min-width:300px;margin:0.5em 0;box-sizing: border-box;| {{#if:{{{width|}}}| max-width: {{{width}}}; }}">{{#if:{{{title|}}}|<div  style="color: rgb(255,255,255);padding: 0.5em 1em 0.5em 1em;">'''{{{title}}}'''</div>}}<div style="padding: 0.5em 1em 0.5em 1em;background-color: rgba(255,255,255,0.85);height: auto;">{{{content}}}</div></div>
</noinclude><includeonly><div class="noprint background-{{{color|grey}}}" style="min-width:300px;margin:0.5em 0;box-sizing: border-box; {{#if:{{{width|}}}| max-width: {{{width}}}; }}">{{#if:{{{title|}}}|<div  style="color: rgb(255,255,255);padding: 0.5em 1em 0.5em 1em;border-bottom: 1px solid rgba(0,0,0,0.3);">'''{{{title}}}'''</div>}}<div style="border-left: 1px solid rgba(100,100,100,0.2);
border-bottom: 1px solid rgba(100,100,100,0.2);padding: 0.5em 1em 0.5em 1em;background-color: rgba(255,255,255,0.85);height: auto;">{{{content}}}</div></div>
{| class="hidden"
{| class="hidden"
| style="color:white;background-color:{{#switch: {{{color}}} | blue=#3581D8| green=#26B52A | red=#D82E3F|#ffffff}};"| {{#if:{{{title|}}}|{{{title}}}}}
| style="color:white;background-color:{{#switch: {{{color}}} | blue=#3581D8| green=#26B52A | red=#D82E3F|#ffffff}};"| {{#if:{{{title|}}}|{{{title}}}}}

Dernière version du 6 mai 2021 à 20:46

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.