Difference between revisions of "Template:Bc"

(Make menu paths italics type)
(Update description to reflect new arrow behavior)
 
Line 11: Line 11:
 
{{bc|Menu1|Menu2|Menu3|(...)|Menu9|Command}}
 
{{bc|Menu1|Menu2|Menu3|(...)|Menu9|Command}}
  
If the parameter '''color''' is set to white, arrows will be displayed white otherwise the default arrow is displayed filled with black for better visibility.
+
If the parameter '''color''' is set to black or white, arrows will be displayed as black or white triangles respectively, otherwise the default arrow is displayed as a smaller rightward chevron symbol.
 +
<pre>{{bc|color=black|Menu1|Menu2|Menu3|(...)|Menu9|Command}}</pre>
 +
will be rendered as:
 +
{{bc|color=black|Menu1|Menu2|Menu3|(...)|Menu9|Command}}
 
<pre>{{bc|color=white|Menu1|Menu2|Menu3|(...)|Menu9|Command}}</pre>
 
<pre>{{bc|color=white|Menu1|Menu2|Menu3|(...)|Menu9|Command}}</pre>
 
will be rendered as:
 
will be rendered as:

Latest revision as of 04:09, 26 September 2019

This template provides a BreadCrumb trail through menu paths and similar hierarchical structures.

Usage

For example, typing:

The {{key|L}} key is the shortcut for {{bc|Plugins|Utilities|Find Commands}}.

will be rendered as: The L key is the shortcut for Plugins › Utilities › Find Commands.

Up to 10 menu elements can be used:

{{bc|Menu1|Menu2|Menu3|(...)|Menu9|Command}}

will be rendered as: Menu1 › Menu2 › Menu3 › (...) › Menu9 › Command

If the parameter color is set to black or white, arrows will be displayed as black or white triangles respectively, otherwise the default arrow is displayed as a smaller rightward chevron symbol.

{{bc|color=black|Menu1|Menu2|Menu3|(...)|Menu9|Command}}

will be rendered as: Menu1 ▶ Menu2 ▶ Menu3 ▶ (...) ▶ Menu9 ▶ Command

{{bc|color=white|Menu1|Menu2|Menu3|(...)|Menu9|Command}}

will be rendered as: Menu1 ▷ Menu2 ▷ Menu3 ▷ (...) ▷ Menu9 ▷ Command

Attribution

This template is inspired by the https://wiki.documentfoundation.org, released under the Creative Commons Attribution-ShareAlike 3.0 Unported License, adjusted to match the style used in the ImageJ User Guide.