Difference between revisions of "Template:Key"
From Hgames Wiki
(Added documentation) |
m (removed ParserFunction part) |
||
| (2 intermediate revisions by one other user not shown) | |||
| 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;padding:0 .4em;text-shadow:0 1px rgba(255,255,255,.5);white-space:nowrap">{{{1|Key}}}</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; | ||
| − | |||
| − | padding:0 .4em; | ||
| − | text-shadow:0 1px rgba(255,255,255,.5); | ||
| − | white-space:nowrap"> | ||
| − | {{{1|Key}}} | ||
| − | </kbd> | ||
| − | </onlyinclude> | ||
{{Documentation}} | {{Documentation}} | ||
Latest revision as of 23:04, 15 March 2014
Key
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?)