Template:Key: Difference between revisions

From TeamSpec Wiki
Jump to navigation Jump to search
Template: keyboard key
 
TeamSpec theme: colours move from inline styles to MediaWiki:Common.css classes
 
Line 1: Line 1:
<includeonly><kbd style="display:inline-block;border:1px solid #a2a9b1;border-bottom-width:2px;border-radius:3px;background:#f8f9fa;color:#202122;padding:0 5px;margin:0 1px;font-family:monospace;font-size:88%;line-height:1.5;white-space:nowrap;">{{{1|?}}}</kbd></includeonly><noinclude>
<includeonly><kbd class="ts-key" style="display:inline-block;padding:0 5px;margin:0 1px;font-family:monospace;font-size:88%;line-height:1.5;white-space:nowrap;">{{{1|?}}}</kbd></includeonly><noinclude>
Shows a keyboard key or mouse button as a small key cap.
Shows a keyboard key or mouse button as a small key cap.



Latest revision as of 08:01, 20 October 2026

Shows a keyboard key or mouse button as a small key cap.

Usage

{{Key|Ctrl}}+{{Key|Z}}

gives Ctrl+Z.

Parameters

  • 1: the text on the key, for example Shift, F1, Numpad 7 or Right mouse.