Difference between revisions of "Template:Menuitem"

From GeoGebra Manual
Jump to: navigation, search
Line 1: Line 1:
=={{#if: {{{icon|}}}|[[Image:{{{icon}}}]]}} {{{name}}}==
+
=={{#if: {{{icon|}}}|[[Image:{{{icon}}}|24px]]}} {{{name}}}==
 
:{{#if: {{{shortcut|}}}|Keyboard shortcut: {{KeyCode|{{{shortcut}}}}} {{#if: {{{mac|}}}|(MacOS: {{KeyCode|{{{mac}}}}})}}}}
 
:{{#if: {{{shortcut|}}}|Keyboard shortcut: {{KeyCode|{{{shortcut}}}}} {{#if: {{{mac|}}}|(MacOS: {{KeyCode|{{{mac}}}}})}}}}
 
<noinclude>{{Documentation}}__NOTOC__</noinclude>
 
<noinclude>{{Documentation}}__NOTOC__</noinclude>

Revision as of 14:51, 11 October 2014

{{{name}}}

[edit] [purge] Template documentation

Usage

{{menuitem|name=New|shortcut=Ctrl+N|mac=Cmd+N|icon=Menu New.png}}

Produces

Menu New.png New

Keyboard shortcut: Ctrl + N (MacOS: Cmd + N)

Parameters

name
name to be displayed
icon
image (usually from geogebra/geogebra/gui/images)
shortcut
generic keyboard shortcut, separated by plus sign (see Template:KeyCode)
mac
MacOs specific shortcut, separated by plus sign (see Template:KeyCode)
© 2024 International GeoGebra Institute