Difference between revisions of "Template:Bc"

(3rd attempt to fix errors)
(Make menu paths italics type)
Line 1: Line 1:
<includeonly><span>{{#if: {{{1|}}} | <span style="border-bottom:1px dotted #ccc;">{{{1}}}</span> | }}{{#if: {{{2|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{2}}}</span> | }}{{#if: {{{3|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{3}}}</span> | }}{{#if: {{{4|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{4}}}</span> | }}{{#if: {{{5|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{5}}}</span> | }}{{#if: {{{6|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{6}}}</span> | }}{{#if: {{{7|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{7}}}</span> | }}{{#if: {{{8|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{8}}}</span> | }}{{#if: {{{9|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{9}}}</span> | }}{{#if: {{{10|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{10}}}</span> | }}</span></includeonly><noinclude>This template provides a BreadCrumb trail through menu paths and similar hierarchical structures.
+
<includeonly><span><em>{{#if: {{{1|}}} | <span style="border-bottom:1px dotted #ccc;">{{{1}}}</span> | }}{{#if: {{{2|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{2}}}</span> | }}{{#if: {{{3|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{3}}}</span> | }}{{#if: {{{4|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{4}}}</span> | }}{{#if: {{{5|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{5}}}</span> | }}{{#if: {{{6|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{6}}}</span> | }}{{#if: {{{7|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{7}}}</span> | }}{{#if: {{{8|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{8}}}</span> | }}{{#if: {{{9|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{9}}}</span> | }}{{#if: {{{10|}}} | &nbsp;{{arrow | {{{color|}}}}} <span style="border-bottom:1px dotted #ccc;">{{{10}}}</span> | }}</em></span></includeonly><noinclude>This template provides a BreadCrumb trail through menu paths and similar hierarchical structures.
 
==Usage==
 
==Usage==
 
For example, typing:
 
For example, typing:

Revision as of 10:15, 18 January 2016

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 white, arrows will be displayed white otherwise the default arrow is displayed filled with black for better visibility.

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