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}}}]]}} {{{name}}}==
:{{#if: {{{shortcut|}}}|Keyboard shortcut: {{KeyCode|{{{shortcut}}}}} {{#if: {{{mac|}}}|(MacOS: {{KeyCode|{{{mac}}}}})}}}}<noinclude>__NOTOC__{{Documentation}}</noinclude>
+
:{{#if: {{{shortcut|}}}|Keyboard shortcut: {{KeyCode|{{{shortcut}}}}} {{#if: {{{mac|}}}|(MacOS: {{KeyCode|{{{mac}}}}})}}}}
 +
<noinclude>{{Documentation}}__NOTOC__</noinclude>

Revision as of 22:58, 15 January 2011

{{{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