Template:Key/doc: Difference between revisions

m
no edit summary
imported>FrozenPlum
m (11 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.)
imported>FrozenPlum
mNo edit summary
Line 1:
{{Documentation subpage}}
{{doc/start}}
<!-- Documentation here -->
When used, this template displays game controls, supporting both keyboard keys and controller buttons.
* Images used by this template are hosted at [[Fandom Commons]].
* This template's display is styled using the <code>.keysDark</code> and <code>.keysLight</code> classes located in [[MediaWiki:Common.css]].
 
== Usage ==
* '''Note:''' For a summary of possible console, key, and button values, see [[wikia:Template:Key/library|key library]].
 
=== Keyboard ===
If using the template for keyboard keys, there is only one required input. For mouse usage, see the [[#Consoles and controllers]], using "mouse" as the console.
 
<code><nowiki>{{tl|key|button}}</nowiki></code>
* <code>button</code> is the keyboard key to be pressed. Some key inputs, such as Shift or Tab will automatically add symbols or other formatting. Any other inputs will be output as they are with the first letter capitalized.
* ''Optional'': there is an additional parameter, <code>keyboardvariant</code> which determines whether the key is dark text on a light key (default) or the inverse. This will likely never be used, and if a wiki would prefer light on dark, it should be changed as the default.
Line 22 ⟶ 23:
 
=== Consoles and controllers ===
<code><nowiki>{{tl|key|console|button|size=optional size}}</nowiki></code>
 
* <code>console</code> is the console the key belongs to. The parameter is '''not''' case-sensitive and supports many possible consoles. See [[wikia:Template:Key/library|key library]]. for possible values.
* <code>button</code> is the button to be pressed, such as "A" or "Right Trigger". While the template tries to be intuitive such that the correct input for a button is whatever you think it is, if your attempt at a button isn't working, see [[wikia:Template:Key/library|key library]]. for possible values.
* The <code>size</code> parameter is optional, and sizes the button image. If this parameter is not entered, the default image size is 20px.
 
Line 32 ⟶ 33:
Press {{Key|Xbox|RT}} to open your inventory wheel and select the item with {{Key|Xbox|A}}
</pre>
produces:
Press {{Key|Xbox|RT}} to open your inventory wheel and select the item with {{Key|Xbox|A}}
 
== Changing the default color ==
Line 45 ⟶ 44:
...and change ''keysDark'' at the end of the line to <code>''keysLight''</code>.
 
<includeonly>
<noinclude>
<!-- Template categories/interwikis here -->
[[tr:Şablon:Tuş/belge]]
[[Category:Templates]]
</noinclude>
[[Category:Templates to simply or eliminate]]
{{doc/end}}
</includeonly>
Anonymous user