Difference between revisions of "Template:KeyCode"

From GeoGebra Manual
Jump to: navigation, search
(experiment with replace)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span style="border-width: 2px; border-style: solid; border-color: #CCC #999 #999 #CCC; -moz-border-radius: 4px; padding: 0 3px; background-color: #F8F8F8;">{{#replace:{{{1}}}|+|</span> + <span style="border-width: 2px; border-style: solid; border-color: #CCC #999 #999 #CCC; -moz-border-radius: 4px; padding: 0 3px; background-color: #F8F8F8;">}}</span></includeonly><noinclude>
+
<includeonly><span class="kcode">{{#ifeq:{{{1|}}}|+|+|{{#replace:{{{1}}}|+|</span> + <span class="kcode">}}}}</span></includeonly><noinclude>{{Documentation}}</noinclude>
This template is intended to help users insert keyboard shortcuts into their text.
 
 
 
== Usage ==
 
To insert a keyboard shortcut like {{KeyCode|Ctrl+A}} into a normal line you can use
 
<pre><nowiki>{{KeyCode|Ctrl}} + {{KeyCode|A}}</nowiki></pre>.
 
</noinclude>
 

Latest revision as of 07:10, 28 December 2010

[edit] [purge] Template documentation

This template is intended to help users insert keyboard shortcuts into their text.

Usage

  • {{{{{1}}}{{#if:|{{{{{1n}}}}}}}}} gives A
  • {{{{{1}}}{{#if:|{{{{{1n}}}}}}}}} gives +
  • {{{{{1}}}{{#if:|{{{{{1n}}}}}}}}} gives Ctrl + A

Parameters

1

Single key or sequence of characters divided by plus signs.

© 2024 International GeoGebra Institute