Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Key press/doc: Difference between revisions

Template page
(TemplateData)
(Created page with "{{Template from Wikipedia}} === Examples === * <code><nowiki>{{Key press|A}}</nowiki></code> -> {{Key press|A}} * <code><nowiki>{{Key press|START|SELECT|X}}</nowiki></code> -> {{Key press|START|SELECT|X}} * <code><nowiki>{{Key press|L|Down|SELECT}}</nowiki></code> -> {{Key press|L|Down|SELECT}}")
Line 1: Line 1:
{{Template from Wikipedia}}
{{Template from Wikipedia}}
{{Lua|Module:Key}}{{Uses TemplateStyles|Template:Key press/styles.css}}
=== Examples ===
=== Examples ===


Line 6: Line 5:
* <code><nowiki>{{Key press|START|SELECT|X}}</nowiki></code> -> {{Key press|START|SELECT|X}}
* <code><nowiki>{{Key press|START|SELECT|X}}</nowiki></code> -> {{Key press|START|SELECT|X}}
* <code><nowiki>{{Key press|L|Down|SELECT}}</nowiki></code> -> {{Key press|L|Down|SELECT}}
* <code><nowiki>{{Key press|L|Down|SELECT}}</nowiki></code> -> {{Key press|L|Down|SELECT}}
=== TemplateData ===
<templatedata>
{
"params": {
"1": {
"label": "Key 1",
"example": "Start",
"type": "string",
"required": true
},
"2": {
"label": "Key 2",
"example": "Select",
"type": "string"
},
"3": {
"label": "Key 3",
"example": "X",
"type": "string"
},
"4": {
"label": "Key 4",
"description": "an infinite amount of keys can be added by adding further numbered values",
"example": "Y",
"type": "string"
}
},
"description": "Displays buttons or keys to press",
"paramOrder": [
"1",
"2",
"3",
"4"
]
}
</templatedata>

Revision as of 08:29, 4 July 2022

Examples

  • {{Key press|A}} -> A
  • {{Key press|START|SELECT|X}} -> START+SELECT+X
  • {{Key press|L|Down|SELECT}} -> L++SELECT