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

De EduTech Wiki
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
 
(48 versions intermédiaires par le même utilisateur non affichées)
Ligne 8 : Ligne 8 :
{{button
{{button
|style=pen,box,arrow,check,cross,heart,star,email
|style=pen,box,arrow,check,cross,heart,star,email
|size=small, medium, large
|size=small, medium, large, full
|color=red,green,blue
|color=red,green,blue,yellow
|link=LINK
|link=LINK
}}
}}
</pre>
</pre>
Modifiez la page pour voir le texte du modèle.
Modifiez la page pour voir le texte du modèle.
</noinclude><includeonly><span style="{{#if:{{{color|}}}| background-color:{{#switch: {{{color}}} | blue=#0085C6 | green=#64b700 | red=#CE3303}};}} {{#if:{{{size|}}}| padding:{{#switch: {{{size}}} | small=0.125em 0.5em | medium=0.5em 1em | large=1em 2em}};width:{{#switch: {{{size}}} | small=auto | medium=auto | large=95%}};}}" class="modele-button">{{#if:{{{style|}}}| '''{{#switch: {{{style|}}} | pen=🖊 | box=◧  | check=✔| cross=✘|arrow=➔|heart=❤|star=★|email=✉|}}''' }} {{{link}}}</span></includeonly>
</noinclude><includeonly><span class="hidden" style='color:#0645ad'><u> {{{link}}} </u></span><span style="overflow:hidden;padding:0 1em;{{#if:{{{size|}}}|width:{{#switch: {{{size|}}} | small=auto | medium=auto | large=auto |full=100%;}};}}" class="modele-button noprint {{{size|}}} background-{{{color|grey}}}">{{#if:{{{style|}}}| '''{{#switch: {{{style|}}} | pen=🖊 | box=◧  | check=✔| cross=✘| arrow=➔| heart=❤| star=★|email=✉|}}''' }} {{{link}}}</span></includeonly>

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

Ceci est le modèle « button ». Il devrait être appelé selon le format suivant :

{{button|link=LINK}}

options:

{{button
|style=pen,box,arrow,check,cross,heart,star,email
|size=small, medium, large, full
|color=red,green,blue,yellow 
|link=LINK
}}

Modifiez la page pour voir le texte du modèle.