Template:Key/doc: Difference between revisions

no edit summary
(This should work)
No edit summary
Line 68:
}}
</pre>
 
== Change the default colour ==
The default colour for the keyboard and mouse is suitable for dark-skinned wikis. To change the default settings so it fits for a light-skinned wiki, without having to use ''keyboardvariant = light'' each time you can search for and change these sections in the template:
 
Search for: <code>|#default = _White_Mouse_</code><br/>
...and change it to: <code>|#default = _Black_Mouse_</code>
 
 
Search for: <code><nowiki><kbd class="{{#switch: {{lc:{{{keyboardvariant}}}}} |dark=keysDark|light=keysLight|</nowiki><div style="color: #00ff00;">keysDark}}</div>"></code><br/>
...and change ''keysDark'' at the end of the line to <code>''keysLight''</code>.
 
{{clear}}