Editing
Template:Key press/doc
(section)
From Deskthority Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Keystroke combinations=== To illustrate keystroke combinations, just use extra parameters: : {{tc|key press|Alt|P}} β {{key press|Alt|P}} : {{tc|key press|Ctrl|Alt|Del}} β {{key press|Ctrl|Alt|Del}} This template currently handles up to 10 key name parameters, which should be more than enough to accommodate for any possible combination of simultaneous keystrokes. If it gets too many key name parameters it reports the page into [[:Category:Deskthority keypress template parameter needs fixing]]. This means we can easily find those pages and fix them, or we can discover if we need to make this template take more parameters. When you feed several key names to this template, it adds a "+" (or whatever the contents of the optional ''chain'' parameter) with no spaces around. This means it won't line wrap. But when you show key combinations for instance in a table then that might cause too wide items. Then instead manually build the key combination with spaces around the "+" so it can line wrap: : {{tc|key press|Ctrl}} + {{tlc|key press|Alt}} + {{tlc|key press|Del}} β {{key press|Ctrl}} + {{key press|Alt}} + {{key press|Del}} : {{tc|key press|Ctrl|Alt|Del|5=chain=&#32;+&#32;}} β {{key press|Ctrl|Alt|Del|chain= + }} On the other hand, to illustrate Windows Alt codes you might want to use separate templates with no intervening punctuation or space. In most Windows systems in North America and Western Europe, for example, the plus-minus sign (Β±) can be entered by holding down the Alt key while typing <code>0177</code> (with the [[numeric keypad]]): : {{tc|key press|Alt|0}}{{tlc|key press|1}}{{tlc|key press|7}}{{tlc|key press|7}} β {{key press|Alt|0}}{{key press|1}}{{key press|7}}{{key press|7}} An example of a use case where more than 5 might be used is explaining usage of a macro (keyboard shortcut) created by a third-party application: : {{tc|Key press|Ctrl|Alt|Shift|Win|Menu|fn|L}} β {{Key press|Ctrl|Alt|Shift|Win|Menu|fn|L}}
Summary:
Please note that all contributions to Deskthority Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Template
Discussion
Read
Edit source
History
Page actions
Template
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Deskthority forum
Support Deskthority
Search
Main categories
Guides
Keyboards
Keyboard switches
Keycaps
Keyboard modding
Pointing devices
Brands & companies
Group buys
Other topics
Wiki info & links
Recent changes
Random page
All pages
Deskthority wiki help
MediaWiki help
Tools
What links here
Related changes
Special pages
Page information