×
Create a new article
Write your page title here:
We currently have 3,109 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,109Articles

Template:Control: Difference between revisions

(adapted from https://minecraft.wiki/w/Template:Control)
 
(add numpad 0 to menu and directional keys)
 
Line 1: Line 1:
<noinclude><div class="center"></noinclude><span class="explain" tabindex="0" title="{{#switch: {{lc:{{{1<noinclude>|interact</noinclude>}}}}}
<noinclude><div class="center"></noinclude><span class="explain" tabindex="0" title="{{#switch: {{lc:{{{1<noinclude>|interact</noinclude>}}}}}
|interact = Z / Space / Enter
|interact = Z / Space / Enter
|menu = X / C / V / B / N / Esc
|menu = X / C / V / B / N / Esc / Numpad 0
|up|up arrow = Up arrow / Numpad 8
|right|right arrow = Right arrow / Numpad 6
|down|down arrow = Down arrow / Numpad 2
|left|left arrow = Left arrow / Numpad 4
|#default = No alternative keys
}}">{{{2|{{{1<noinclude>|interact</noinclude>}}}}}}</span><noinclude></div>
}}">{{{2|{{{1<noinclude>|interact</noinclude>}}}}}}</span><noinclude></div>



Latest revision as of 07:00, 15 November 2024

interact

Use this template for controls to include a tooltip of keys that map to that control by default.

For example, instead of writing:

Hold X to exit the screen.

You should instead write:

Hold the {{control|menu}} key to exit the screen.

Which would present:

Hold the menu key to exit the screen.

Alternatively, you could write:

Hold the {{control|menu|menu key}} to exit the screen.

Which would present:

Hold the menu key to exit the screen.

The purpose of this template is to avoid suggesting specific keys when in actuality a range of keys can be used.

Technically it's still possible to put a specific key in the second parameter and display something like "Hold esc", but this is more confusing.