Template:Menu/doc

From POV-Wiki
Revision as of 07:45, 23 September 2019 by Maurice (talk | contribs) (Created page with "This template can be used to display menu selections. Usage: <nowiki>{{Menu|<menuname>|<submenu1>|submenu2|…}}</nowiki> The menu items are formatted using <nowiki>{{Litera...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template can be used to display menu selections.

Usage:

{{Menu|<menuname>|<submenu1>|submenu2|…}}

The menu items are formatted using {{Literal}}. Between them the seperator {{Menu/sep}} (currently: '                ▶    ') is inserted. Up to 9 menu levels are supported.

Examples

Import a .obj with {{Menu|File|Import|Wavefront (.obj)…}}.

Results in:

Import a .obj with File.


If used in combination with a {{shortcut}} template, you can continue a shotcut in a menu.

{{Menu|{{shortcut|shift|a}}|Add|Mesh|Cube}}

Results in: {{#switch:shift |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:shift | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Shift}}{{#if:a|{{#switch:a |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:a | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |A}} }}{{#if:|{{#switch:{{{3}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{3}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{3}}}}} }}{{#if:|{{#switch:{{{4}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{4}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{4}}}}} }}{{#if:|{{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{5}}}}} }}{{#if:| }}


See also: Template:Shortcut