Template:Key top
{{{1}}}
{{{1}}}
Usage
This template renders a key top as found on typewriters and computer keyboards including a standardized or common symbol if available, e.g. from ISO/IEC 9995-7. Keys for which there is an associated Wikipedia article are rendered with a hyperlink. Unlike {{key press}}, this template is not intended to be used for combinations of multiple keys, i.e. “keyboard shortcuts”. It shall be used in descriptions of the physical keys and their functions.
The first, mandatory parameter holds the "natural" key name which is used to select a symbol and link. Its contents is usually also output unchanged next to the symbol unless the second parameter is set to an explicit label, which most often will be blank to suppress the label. The third, also optional parameter, is a binary switch that toggles alternate representations of a very limited selection of symbols: ⌃ vs. ⎈ , ↩ vs. ↵ vs. ⏎ , ⌤ vs. ⎀, ■ vs. ◼ and ● vs. 🔴.
Examples
{{key top|return}}→ ↩ return{{key top|Return}}→ ↩ Return{{key top|RETURN}}→ ↩ RETURN{{key top|Return|}}→ ↩{{key top|Enter}}→ ⌅ Enter{{key top|Return|Enter}}→ ↩ Enter{{key top|Return||}}→ ↩{{key top|Return|true}}→ ↩{{key top|Return|narrow}}→ ↵{{key top|Return|hollow}}→ ⏎{{key top|Return|thin}}→ ↵{{key top|Return|thick}}→ ⏎{{key top|Return|Return|narrow}}→ ↵ Return
{{key top|Windows}}→ ⌘ Windows{{key top|Command}}→ ⌘ Command{{key top|Meta}}→ ◆ Meta{{key top|Super}}→ ❖ Super{{key top|Windows|3=true}}→ ⊞ Windows{{key top|Super|Windows}}→ ❖ Windows
TemplateData
TemplateData for Key top
Display symbolic key tops as seen on computer keyboards, phones and typewriters.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | 1 | The standard or common name of the key.
| Line | required |
| label | 2 | Label for the key if different from the name, leave empty to suppress label.
| Line | optional |
| alternate symbol | 3 | Switch for certain alternate symbols (return, control, insert, stop, record)
| Boolean | optional |
See also
{{Key press}}– produces a similar visual effect, but includes fewer symbols while directly supporting combinations (e.g. Ctrl+x){{Button}}– produces a similar visual effect but without the semantic markup (e.g. sample text); more for representing interface elements.{{Kbd}}– to indicate user input (of any kind) without making it look like keys or buttons
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.