Project Rebearth
Menu
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
What links here
Related changes
Page information
Recent changes
Help
Not logged in
Talk
Contributions
Create account
Log in
Actions
Template
Discussion
Edit
View history
Template
Editing
Key
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!
<includeonly><templatestyles src="Key/styles.css" /><kbd class="keyboard-key nowrap">{{{1}}}</kbd>{{#if:{{{2|}}}|<span style="padding:0 0.3em;font-size:0.85em;">+</span><kbd class="keyboard-key nowrap">{{{2}}}</kbd>}}{{#if:{{{3|}}}|<span style="padding:0 0.3em;font-size:0.85em;">+</span><kbd class="keyboard-key nowrap">{{{3}}}</kbd>}}{{#if:{{{4|}}}|<span style="padding:0 0.3em;font-size:0.85em;">+</span><kbd class="keyboard-key nowrap">{{{4}}}</kbd>}}</includeonly><noinclude> == Key == Displays one or more keyboard keys in a styled inline box, similar to Wikipedia's {{tl|Key press}} template. == Usage == '''Single key:''' <pre>{{Key|Esc}}</pre> '''Key combination:''' <pre>{{Key|Ctrl|C}}</pre> '''Three-key combination:''' <pre>{{Key|Ctrl|Shift|S}}</pre> == Parameters == {| class="wikitable" |- ! Parameter !! Required !! Description |- | <code>1</code> || Yes || First key name (e.g. "Ctrl", "Esc", "Enter", "A"). |- | <code>2</code> || No || Second key in a combination. |- | <code>3</code> || No || Third key in a combination. |- | <code>4</code> || No || Fourth key in a combination. |} == Examples == {| class="wikitable" |- ! Wikitext !! Result |- | <code><nowiki>{{Key|Esc}}</nowiki></code> || {{Key|Esc}} |- | <code><nowiki>{{Key|Ctrl|C}}</nowiki></code> || {{Key|Ctrl|C}} |- | <code><nowiki>{{Key|Ctrl|Shift|S}}</nowiki></code> || {{Key|Ctrl|Shift|S}} |- | <code><nowiki>{{Key|Enter}}</nowiki></code> || {{Key|Enter}} |- | <code><nowiki>{{Key|↑}}</nowiki></code> || {{Key|↑}} |} == Notes == * Keys are rendered using the HTML <code><kbd></code> element with a subtle gradient background and border, matching Wikipedia's keyboard key styling. * You can pass Unicode symbols directly (e.g. <code>↑</code>, <code>⇧</code>) as key names. * For combinations, keys are automatically joined with a <code>+</code> separator. [[Category:Formatting templates]] </noinclude>
Summary:
Please note that all contributions to Project Rebearth 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 Rebearth:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Pages included on this page:
Template:Key
(
edit
)
Template:Key/styles.css
(
edit
)
Template:Tl
(
edit
)