Keyboard/Key – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Draws a keyboard key - has to be used in a table, without the pipe symbol | preceding it. See {{Keyboard}}.

Usage

{{Keyboard/Key|key|description|color|colSpan|rowSpan|borderSize}}

  • key: key name (S, Esc, Space etc)
  • description: (Optional, default empty) key description
  • color: (Optional, default #FFF) CSS background color
  • colSpan: (Optional, default 2)
  • rowSpan: (Optional, default 1)
  • borderSize: (Optional, default 1) border size in px
Examples
Code Result
{{Keyboard/Key}} N/A
{{Keyboard/Key|K}} K
{{Keyboard/Key|K|key}} K
key
{{Keyboard/Key|K|key|#CDF}} K
key
{{Keyboard/Key|K|key|#CDF|||5}} K
key