Modèle:Touche/Documentation
De VSST
< Modèle:Touche
Révision datée du 19 juillet 2017 à 13:51 par imported>Jacques Ducloy (1 révision importée)
Ce modèle permet d’afficher du texte ressemblant à une touche de clavier d’ordinateur.
Syntaxe
{{Touche|1=nom de la touche|2=code couleur de la touche}}
Paramètres
- nom de la touche : affiche le texte passé en paramètre et permet également de faire un wikilien. Par défaut, affiche le texte « Touche ».
- code couleur de la touche : permet de changer la couleur de la touche (optionnel), attention toutefois à l’accessibilité. Par défaut :
#ccc
(gris).
Codes wikis
Quelques caractères utilisés dans le balisage wiki doivent être introduits par des modèles spécifiques.
{{Touche|{{!}}}}
génère |
{{Touche|{{;}}}}
génère ;
{{Touche|{{=}}}}
génère =
Pour utiliser ces caractères en wikilien, il faut procéder ainsi :
{{Touche|[[|]]}}
génère |
{{Touche|[[;]]}}
génère ;
{{Touche|[[=]]}}
génère =
Key symbols
Some key names have a fitting unicode character. This template automatically adds such "icons" to the following key names:
{{Touche|Caps Lock}}
génère ⇪ Caps Lock
{{Touche|Shift}}
génère ⇧ Shift
{{Touche|Enter}}
génère ↵ Enter
{{Touche|Tab}}
génère Tab ⇆
{{Touche|Backspace}}
génère ← Backspace
{{Touche|Cmd}}
génère ⌘ Cmd
{{Touche|Opt}}
génère ⌥ Opt
{{Touche|Up}}
génère ↑
{{Touche|Down}}
génère ↓
{{Touche|Left}}
génère ←
{{Touche|Right}}
génère →
Fichier:AltGr Win Menu Ctrl key.jpg
Windows key and Menu key
Fichier:Ctl wndws alt.jpg
Old-style Windows key
There are no characters for the Windows key and Menu key. Besides, the Windows logo is trademarked. So this template shows approximate characters for them in the following way:
{{Touche|Win}}
génère ⊞ Win
{{Touche|Menu}}
génère ≣ Menu
Exemples
Code wiki | Rendu |
---|---|
{{Touche}} |
{{{1}}} |
{{Touche|X}} |
X |
{{Touche|A|#f00}}{{Touche|B|#0f0}}{{Touche|C|#00f}} {{Touche|D|#fff}}{{Touche|E|#3399DD}}{{Touche|F|pink}} |
ABC
DEF |
{{Touche|[[Touche Windows|Windows]]}}+{{Touche|P}} |
Windows+P |
{{Touche|[[Touche Ctrl|Ctrl]]}}+ {{Touche|Alt}}+{{Touche|Suppr}} |
Ctrl+Alt+Suppr |
{{Touche|Shift}} |
⇧ Shift |
Voir aussi
- {{Touches}} pour créer directement une combinaison de touches.