Template:Menu: Difference between revisions

From KDE Wiki Sandbox
(Created page with "{{Menu|<menuchoice>{{{1}}}</menuchoice> {{#if: {{{2| }}} | → <menuchoice{{{2}}}</menuchoice> }}<noinclude> ---- * {{Menu|Test}} * {{Menu|Test|First}} Category:Templa...")
 
No edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Menu|<menuchoice>{{{1}}}</menuchoice>
<noinclude>
  {{#if: {{{2| }}} | &rarr; <menuchoice{{{2}}}</menuchoice>
}}<noinclude>
----
----
* {{Menu|Test}}
This template can be used to enter a sequence of menu choices (at most 6 levels deep, although the template can easily be expanded to allow for more). Entering
* {{Menu|Test|First}}
<nowiki>{{Menu|File|Open}}</nowiki>
will result in {{Menu|File|Open}}, while
<nowiki>{{Menu|A|very|long|sequence|of|choices}}</nowiki>
will result in {{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}}.


[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>{{#tag: menuchoice |{{{1}}}}} {{#if:
  {{{2| }}} | &rarr; {{#tag: menuchoice |{{{2}}}}} {{#if:
    {{{3| }}} | &rarr; {{#tag: menuchoice |{{{3}}}}} {{#if:
      {{{4| }}} | &rarr; {{#tag: menuchoice |{{{4}}}}} {{#if:
        {{{5| }}} | &rarr; {{#tag: menuchoice |{{{5}}}}} {{#if:
          {{{6| }}} | &rarr; {{#tag: menuchoice |{{{6}}}}}
}} }} }} }} }}

Latest revision as of 14:15, 30 June 2019


This template can be used to enter a sequence of menu choices (at most 6 levels deep, although the template can 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. {{{1}}}