Template:InlineKey
From Step Mods | Change The Game
Purpose & Usage
- parameter 1 is the content of the key. It works with characters / strings / html code and a set of predefined buttons.
Available predefined keys :
- Left arrow : arrowLeft
- Right arrow : arrowRight
- Up arrow : arrowUp
- Down arrow : arrowDown
- Enter : enter
- Backspace : backspace
- Shift : shift
- Caps Lock : capsLock
- Tabulation : tab
- (optional) paddingRight parameter define the space between the content of the key and the beginning of the visual. (don't work for pre-defined keys)
- (optional) paddingLeft parameter define the space between the content of the key and the end of the visual. (don't work for pre-defined keys)
This template is used to create an inline keyboard button, for coolness, swagginess, and awesomeness of "press this key to do this" instructions.
Examples
Code:
{{InlineKey|test}} and {{InlineKey|test|arrowLeft}}, and even {{InlineKey|test|arrowRight}}
Result: ← and ←, and even ←