Template:Key: Difference between revisions

From FHX Wiki
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Key/styles.css"/><span class="template_key">{{ucfirst:{{{1|}}}}}<!--
<includeonly><templatestyles src="Key/styles.css"/>{{key/core|{{{1|}}}}}<!--
-->{{#if:{{{2|}}}|{{{chain first|{{{chain|+}}}}}}{{ucfirst:{{{2}}}}}}}<!--
-->{{#if:{{{2|}}}|{{{chain first|{{{chain|+}}}}}}{{key/core|{{{2}}}}}}}<!--
-->{{#if:{{{3|}}}|{{{chain second|{{{chain|+}}}}}}{{ucfirst:{{{3}}}}}}}<!--
-->{{#if:{{{3|}}}|{{{chain second|{{{chain|+}}}}}}{{key/core|{{{3}}}}}}}<!--
-->{{#if:{{{4|}}}|{{{chain third|{{{chain|+}}}}}}{{ucfirst:{{{4}}}}}}}<!--
-->{{#if:{{{4|}}}|{{{chain third|{{{chain|+}}}}}}{{key/core|{{{4}}}}}}}<!--
-->{{#if:{{{5|}}}|{{{chain fourth|{{{chain|+}}}}}}{{ucfirst:{{{5}}}}}}}<!--
-->{{#if:{{{5|}}}|{{{chain fourth|{{{chain|+}}}}}}{{key/core|{{{5}}}}}}}<!--
-->{{#if:{{{6|}}}|{{{chain fifth|{{{chain|+}}}}}}{{ucfirst:{{{6}}}}}}}<!--
-->{{#if:{{{6|}}}|{{{chain fifth|{{{chain|+}}}}}}{{key/core|{{{6}}}}}}}<!--
-->{{#if:{{{7|}}}|{{{chain sixth|{{{chain|+}}}}}}{{ucfirst:{{{7}}}}}}}<!--
-->{{#if:{{{7|}}}|{{{chain sixth|{{{chain|+}}}}}}{{key/core|{{{7}}}}}}}<!--
-->{{#if:{{{8|}}}|{{{chain seventh|{{{chain|+}}}}}}{{ucfirst:{{{8}}}}}}}<!--
-->{{#if:{{{8|}}}|{{{chain seventh|{{{chain|+}}}}}}{{key/core|{{{8}}}}}}}<!--
-->{{#if:{{{9|}}}|{{{chain eighth|{{{chain|+}}}}}}{{ucfirst:{{{9}}}}}}}<!--
-->{{#if:{{{9|}}}|{{{chain eighth|{{{chain|+}}}}}}{{key/core|{{{9}}}}}}}<!--
-->{{#if:{{{10|}}}|{{{chain ninth|{{{chain|+}}}}}}{{ucfirst:{{{10}}}}}}}</span></includeonly><noinclude>
-->{{#if:{{{10|}}}|{{{chain ninth|{{{chain|+}}}}}}{{key/core|{{{10}}}}}}}</includeonly><noinclude>
=== Description ===
This is the "{{PAGENAME}}" template. This template is used to imitate keyboard buttons. It should be transcluded in the following format:
This is the "{{PAGENAME}}" template. This template is used to imitate keyboard buttons. It should be transcluded in the following format:
<pre>
<pre>
Line 15: Line 16:


=== Parameters ===
=== Parameters ===
;1 - 10 ''(unnamed parameter)''
;1 ''(unnamed parameter)''
: Keyboard button, separated each entry into its own button (e.g. Ctrl, Alt, I, S, 1, etc.)
: Keyboard button, separates each entry into its own button (e.g. Ctrl, Alt, I, S, 1, etc.). Max. 10 parameters.


== Examples ==
== Examples ==
Line 23: Line 24:
* {{key|Alt|1}} is produced by <code><nowiki>{{key|Alt|1}}</nowiki></code>
* {{key|Alt|1}} is produced by <code><nowiki>{{key|Alt|1}}</nowiki></code>
* {{key|Ctrl|Alt|Del}} is produced by <code><nowiki>{{key|Ctrl|Alt|Del}}</nowiki></code>
* {{key|Ctrl|Alt|Del}} is produced by <code><nowiki>{{key|Ctrl|Alt|Del}}</nowiki></code>
* [[Options#Hotkeys|{{key|I}}]] is produced by <code><nowiki>[[Options#Hotkeys|{{key|I}}]]</nowiki></code>


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 21:50, 19 June 2024

Description

This is the "Key" template. This template is used to imitate keyboard buttons. It should be transcluded in the following format:

{{key|<first button>|<second>|<third>|<etc.>}}

Parameters

1 (unnamed parameter)
Keyboard button, separates each entry into its own button (e.g. Ctrl, Alt, I, S, 1, etc.). Max. 10 parameters.

Examples

  • 1 is produced by {{key|1}}
  • I is produced by {{key|I}}
  • Alt+1 is produced by {{key|Alt|1}}
  • Ctrl+Alt+Del is produced by {{key|Ctrl|Alt|Del}}
  • I is produced by [[Options#Hotkeys|{{key|I}}]]