Template:Menu: Difference between revisions

From KDE UserBase Wiki
No edit summary
(more optional items)
Line 1: Line 1:
<noinclude>
<noinclude>
----
----
* {{Menu|1=Test}}
This template can be used to enter a sequence of menu choices (at most 6 levels deep, although it could easily be expanded to allow for more). Entering<br /> <nowiki>{{Menu|File|Open}}</nowiki><br /> will result in {{Menu|File|Open}}, while <br />
* {{Menu|1=Test|2=First}}
<nowiki>{{Menu|A|very|long|sequence|of|choices}}</nowiki><br /> will result in {{Menu|A|very|long|sequence|of|choices}}
*{{Menu|A|very|long|sequence|of|choices}}
 
This way of specifying menu choices differs from the old "manual" way in that long sequences may split lines as in {{Menu|A|very|long|sequence|of|choices}} and that it doesn't work well with bulleted lists and similar.


[[Category:Template]]
[[Category:Template]]
Line 9: Line 10:
<span class="menuchoice">{{{1}}}</span>  
<span class="menuchoice">{{{1}}}</span>  
{{#if: {{{2| }}} | &rarr; <span class="menuchoice">{{{2}}}</span>
{{#if: {{{2| }}} | &rarr; <span class="menuchoice">{{{2}}}</span>
  {{#if: {{{3| }}} | &rarr; <span class="menuchoice">{{{3}}}</span>
{{#if: {{{3| }}} | &rarr; <span class="menuchoice">{{{3}}}</span>
    {{#if: {{{4| }}} | &rarr; <span class="menuchoice">{{{4}}}</span>
{{#if: {{{4| }}} | &rarr; <span class="menuchoice">{{{4}}}</span>
      {{#if: {{{5| }}} | &rarr; <span class="menuchoice">{{{5}}}</span>
{{#if: {{{5| }}} | &rarr; <span class="menuchoice">{{{5}}}</span>
        {{#if: {{{6| }}} | &rarr; <span class="menuchoice">{{{6}}}</span>}}
{{#if: {{{6| }}} | &rarr; <span class="menuchoice">{{{6}}}</span>}} }} }} }} }}
      }}
    }}
  }}
}}

Revision as of 15:41, 7 May 2019


This template can be used to enter a sequence of menu choices (at most 6 levels deep, although it could easily be expanded to allow for more). Entering
{{Menu|File|Open}}
will result in FileOpen, while
{{Menu|A|very|long|sequence|of|choices}}
will result in Averylongsequenceofchoices

This way of specifying menu choices differs from the old "manual" way in that long sequences may split lines as in Averylongsequenceofchoices and that it doesn't work well with bulleted lists and similar.

{{{1}}}