Difference between revisions of "Template:Menu"

From Audacity Wiki
Jump to: navigation, search
(added some explanation)
m (Correcting a error in the usage examples)
Line 12: Line 12:
 
'''Usage of Menu Template''':<br>
 
'''Usage of Menu Template''':<br>
  
  <nowiki>{{</nowiki>menu:''text to be formatted''<nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki>menu|''text to be formatted''<nowiki>}}</nowiki>
  
 
For example, typing this:  
 
For example, typing this:  
  <nowiki>Click {{</nowiki>menu:View > Toolbars > Show "Meter Toolbar"<nowiki>}}.</nowiki>
+
  <nowiki>Click {{</nowiki>menu|View > Toolbars > Show "Meter Toolbar"<nowiki>}}.</nowiki>
  
 
will cause the following to be displayed:
 
will cause the following to be displayed:

Revision as of 14:37, 17 July 2007

The Menu Template can be used to format a string of text in a consistent way across the Wiki with a background and foreground colour which will make it stand out amongst surrounding text. It should be used only for menu paths (either in programs or in operating system dialogues), for emphasising the route to the menu item the user needs to reach.

Menu Template can be used for any program or part of an operating system such as a control panel. It should not be used for file paths like C:\Program Files\Audacity, or for programming code. For file paths and code, red is suggested as a suitable colour. Programming code can be enclosed inside font, code and nowiki tags to give a grey background for the code e.g.

<span style="color:red"><code><nowiki>$run{7[[xparameter]]}</nowiki></code></span>

produces:

$run{7[[xparameter]]}


Usage of Menu Template:

{{menu|text to be formatted}}

For example, typing this:

Click {{menu|View > Toolbars > Show "Meter Toolbar"}}.

will cause the following to be displayed:

Click View > Toolbars > Show "Meter Toolbar".



Ignore the following, it's only a representation of formatting and a parameter dummy.

{{{1}}}