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
(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}}")
 
(TemplateData)
 
Line 1: Line 1:
{{Template from Wikipedia}}
{{Template from Wikipedia}}
{{Lua|Module:Key}}{{Uses TemplateStyles|Template:Key press/styles.css}}
=== Examples ===
=== Examples ===


Line 5: Line 6:
* <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>

Latest revision as of 12:31, 28 August 2023

Examples

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

TemplateData

Displays buttons or keys to press

Template parameters

ParameterDescriptionTypeStatus
Key 11

no description

Example
Start
Stringrequired
Key 22

no description

Example
Select
Stringoptional
Key 33

no description

Example
X
Stringoptional
Key 44

an infinite amount of keys can be added by adding further numbered values

Example
Y
Stringoptional