Difference between revisions of "Template:Key"
From Hgames Wiki
(Added documentation) |
m (Fixed a possible bug caused by wrong formating of the code) |
||
Line 1: | Line 1: | ||
− | <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|Taste}}}</kbd></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| | ||
− | </kbd> | ||
− | </onlyinclude> | ||
{{Documentation}} | {{Documentation}} |
Revision as of 20:33, 27 February 2014
Taste
Template documentation (for the above template, sometimes hidden or invisible)
Contents
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?)