Difference between revisions of "Template:Key"

From Hgames Wiki
Jump to: navigation, search
m (Fixed a possible bug caused by wrong formating of the code)
m
Line 1: Line 1:
<onlyinclude><kbd style="background-color:{{{2|#F7F7F7}}};background-image:-webkit-linear-gradient(rgba(255,255,255,.4),rgba(127,127,127,.2));background-image:-moz-linear-gradient(rgba(255,255,255,.4),rgba(127,127,127,.2));background-image:-o-linear-gradient(rgba(255,255,255,.4),rgba(127,127,127,.2));background-image:linear-gradient(rgba(255,255,255,.4),rgba(127,127,127,.2));border:1px solid;border-color:#DDD #AAA #888 #CCC;border-radius:2px;{{#switch:{{padleft:|1|{{{1|}}}}}|{{{1|}}}|&=|#default=font-family:inherit;}}padding:0 .4em;text-shadow:0 1px rgba(255,255,255,.5);white-space:nowrap">{{{1|Taste}}}</kbd></onlyinclude>
+
<onlyinclude><kbd style="background-color:{{{2|#F7F7F7}}};background-image:-webkit-linear-gradient(rgba(255,255,255,.4),rgba(127,127,127,.2));background-image:-moz-linear-gradient(rgba(255,255,255,.4),rgba(127,127,127,.2));background-image:-o-linear-gradient(rgba(255,255,255,.4),rgba(127,127,127,.2));background-image:linear-gradient(rgba(255,255,255,.4),rgba(127,127,127,.2));border:1px solid;border-color:#DDD #AAA #888 #CCC;border-radius:2px;{{#switch:{{padleft:|1|{{{1|}}}}}|{{{1|}}}|&=|#default=font-family:inherit;}}padding:0 .4em;text-shadow:0 1px rgba(255,255,255,.5);white-space:nowrap">{{{1|Key}}}</kbd></onlyinclude>
  
  
 
{{Documentation}}
 
{{Documentation}}

Revision as of 20:33, 27 February 2014

Key


Template documentation (for the above template, sometimes hidden or invisible)

Description

Simple template to highlight keys.

Usage

{{Key|<KEYNAME> | <OPTIONAL:COLOUR>}}

Examples

Input Output
{{Key|Space}} Space
{{Key|Space|#ccc}} Space

Visit Template:Key/doc to edit this text! (How does this work?)