Template:Key press/core: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (Correct category)
(Attempt to fix the template so that nowrap works.)
 
Line 1: Line 1:
<kbd class="keyboard-key nowrap" style="border: 1px solid #aaa; {{border-radius|0.2em}} {{box-shadow|0.1em|0.2em|0.2em|#ddd}} background-color: #f9f9f9; {{linear-gradient|top|#eee, #f9f9f9, #eee}} padding: 0.1em 0.3em; font-family: inherit; font-size: 0.85em;">{{#switch:{{lc:{{{1}}}}}
<kbd class="keyboard-key nowrap" style="border: 1px solid #aaa; {{border-radius|0.2em}} {{box-shadow|0.1em|0.2em|0.2em|#ddd}} background-color: #f9f9f9; {{linear-gradient|top|#eee, #f9f9f9, #eee}} padding: 0.1em 0.3em; font-family: inherit; font-size: 0.85em;white-space: nowrap;">{{#switch:{{lc:{{{1}}}}}
| caps lock          = {{Unicode|⇪}} Caps Lock
| caps lock          = {{Unicode|⇪}} Caps Lock
| shift              = {{Unicode|⇧}} Shift
| shift              = {{Unicode|⇧}} Shift

Latest revision as of 15:42, 24 July 2016

{{{1}}}

The following template description is not displayed when the template is inserted in an article.

Goal

This is the {{key press/core}} sub-template.

Do not use this template directly, use {{key press}} instead.

This template is called from {{key press}}. It holds the code that otherwise would be repeated several times in {{key press}}, thus simplifying the code.

For more documentation see {{key press}}.