Template:Kbd: Difference between revisions

From DDraceNetwork
mNo edit summary
data
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<kbd {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} style="background:#EEEEEE; {{#if:{{{spacing|}}}| padding-left:0.4em; padding-right:0.4em;| letter-spacing:0.1em; padding-left:0.5em; padding-right:0.4em;}}{{#if:{{{style|}}}|{{{style}}}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}" xml:lang="{{{lang}}}"}} {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1}}}</kbd><noinclude>
<kbd {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} style="background:#EEEEEE; {{#if:{{{spacing|}}}| padding-left:0.4em; padding-right:0.4em;| letter-spacing:0.1em; padding-left:0.5em; padding-right:0.4em;}}{{#if:{{{style|}}}|{{{style}}}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}" xml:lang="{{{lang}}}"}} {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1}}}</kbd><nowiki/><noinclude>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Key",
"description": "The key to display",
"example": "Space",
"type": "string",
"required": true
},
"class": {},
"id": {},
"spacing": {},
"style": {},
"lang": {},
"title": {}
},
"description": "Show a keyboard key.",
"paramOrder": [
"1",
"class",
"id",
"spacing",
"style",
"lang",
"title"
],
"format": "inline"
}
</templatedata></noinclude>

Latest revision as of 09:09, 11 February 2023

{{{1}}}

Show a keyboard key.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Key1

The key to display

Example
Space
Stringrequired
classclass

no description

Unknownoptional
idid

no description

Unknownoptional
spacingspacing

no description

Unknownoptional
stylestyle

no description

Unknownoptional
langlang

no description

Unknownoptional
titletitle

no description

Unknownoptional