Template:Kbd

From NetHackWiki
(Redirected from User:Paxed/Template:kbd)
Jump to navigation Jump to search

This template shows a "graphical" keyboard key, or a key combination. It accepts up to 4 parameters, but only one of them is mandatory. To override default linking behavior add a "link=0" or "link=1" parameter.

For example:

  • {{kbd|x}} shows x
  • {{kbd|ctrl|x}} shows ctrl + x
  • {{kbd|shift|ctrl|x}} shows shift + ctrl + x
  • {{kbd|shift|ctrl|alt|x}} shows shift + ctrl + alt + x
  • {{kbd|ctrl|x|link=0}} shows ctrl + x
  • {{kbd|ctrl|x|link=1}} shows ctrl + x