Template:InlineKey: Difference between revisions

From Step Mods | Change The Game
(Created page with "<includeonly>{{ #ifeq: {{{2|arrowLeft}}} | {{{2|arrowRight}}} | {{{2|arrowUp}}} | {{{2|arrowDown}}} | {{{2|enter}}} | {{{2|backpsace}}} | {{{2|shift}}} | {{{2|capsLock}}} | {{...")
 
No edit summary
Line 1: Line 1:
<includeonly>{{ #ifeq: {{{2|arrowLeft}}} | {{{2|arrowRight}}} | {{{2|arrowUp}}} | {{{2|arrowDown}}} | {{{2|enter}}} | {{{2|backpsace}}} | {{{2|shift}}} | {{{2|capsLock}}} | {{{2|tab}}} | {{{2|-}}} | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em .2em .1em .2em; border:1px solid #111; border-radius:3px; color:#DDD;">'''&#8592;'''</span> | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em .2em .1em .2em; border:1px solid #111; border-radius:3px; color:#DDD;">'''&#8594;'''</span> | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em .4em .1em .4em; border:1px solid #111; border-radius:3px; color:#DDD;">'''&#8593;'''</span> | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em .4em .1em .4em; border:1px solid #111; border-radius:3px; color:#DDD;">'''&#8595;'''</span> | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .1em .2em .2em .2em; border:1px solid #111; border-radius:3px; color:#DDD;">'''Enter &#8626;'''</span> | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em 1.2em .1em .4em; border:1px solid #111; border-radius:3px; color:#DDD;">'''&#8592;&#9472;'''</span> | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em 1.2em .1em .4em; border:1px solid #111; border-radius:3px; color:#DDD;">&#8679;</span> | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em 1.2em .1em .4em; border:1px solid #111; border-radius:3px; color:#DDD;">&#128274;</span> | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em 1.2em .1em .4em; border:1px solid #111; border-radius:3px; color:#DDD;">&#8633;</span> | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em {{{paddingRight|.2em}}} .1em {{paddingRight|.2em}}; border:1px solid #111; border-radius:3px; color:#DDD;">{{{1}}}</span>}}</includeonly><noinclude>__NOTOC__
<includeonly>{{ #ifeq: {{{2|arrowLeft}}} | {{{2|-}}} | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em .2em .1em .2em; border:1px solid #111; border-radius:3px; color:#DDD;">'''&#8592;'''</span> | {{ #ifeq: {{{2|arrowRight}}} | {{{2|-}}} | <span style="background-color:#999; background:linear-gradient(#999, #444); cursor:default; padding: .0em .2em .1em .2em; border:1px solid #111; border-radius:3px; color:#DDD;">'''&#8594;'''</span> | {{ #ifeq: }} }} }}</includeonly><noinclude>__NOTOC__


== Purpose & Usage ==
== Purpose & Usage ==
Line 21: Line 21:
== Examples ==
== Examples ==
'''Code:'''
'''Code:'''
<pre>{{InlineKey|test}} and {{InlineKey|test|arrowUp}}</pre>
<pre>{{InlineKey|test}} and {{InlineKey|test|arrowLeft}}</pre>
'''Result:'''
'''Result:'''
{{InlineKey|test}} and {{InlineKey|test|arrowUp}}
{{InlineKey|test}} and {{InlineKey|test|arrowLeft}}


== See Also ==
== See Also ==
[[:RELATED TEMPLATE NAME AND ARGUMENTS]]
[[:RELATED TEMPLATE NAME AND ARGUMENTS]]
</noinclude>
</noinclude>

Revision as of 19:02, June 20, 2015


Purpose & Usage

  • parameter 1 is the content of the key. It works with characters / strings / html code and a set of predefined buttons.

Available predefined keys :

  • Left arrow : arrowLeft
  • Right arrow : arrowRight
  • Up arrow : arrowUp
  • Down arrow : arrowDown
  • Enter : enter
  • Backspace : backspace
  • Shift : shift
  • Caps Lock : capsLock
  • Tabulation : tab
  • (optional) paddingRight parameter define the space between the content of the key and the beginning of the visual. (don't work for pre-defined keys)
  • (optional) paddingLeft parameter define the space between the content of the key and the end of the visual. (don't work for pre-defined keys)

This template is used to create an inline keyboard button, for coolness, swagginess, and awesomeness of "press this key to do this" instructions.

Examples

Code:

{{InlineKey|test}} and {{InlineKey|test|arrowLeft}}

Result:

and 

See Also

RELATED TEMPLATE NAME AND ARGUMENTS