« 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
Ligne 14 : Ligne 14 :
</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 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>

Version du 28 avril 2021 à 13:31

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
|color=red,green,blue
|link=LINK
}}

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