CINXE.COM

Template:SubMenuEntryAlternative - The Document Foundation Wiki

<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"/> <title>Template:SubMenuEntryAlternative - The Document Foundation Wiki</title> <script>document.documentElement.className="client-js";RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"2f0a5dc86ff52b4fe8b1412f","wgCSPNonce":false,"wgCanonicalNamespace":"Template","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":10,"wgPageName":"Template:SubMenuEntryAlternative","wgTitle":"SubMenuEntryAlternative","wgCurRevisionId":192376,"wgRevisionId":192376,"wgArticleId":13536,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Template:SubMenuEntryAlternative","wgRelevantArticleId":13536,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[], "wgVector2022PreviewPages":[],"wgULSAcceptLanguageList":[],"wgULSCurrentAutonym":"English","wgSmjUseCdn":false,"wgSmjUseChem":true,"wgSmjDisplayMath":[],"wgSmjExtraInlineMath":[],"wgSmjScale":1,"wgSmjEnableMenu":true,"wgSmjDisplayAlign":"left","wgULSPosition":"personal","wgULSisCompactLinksEnabled":true};RLSTATE={"skins.vector.user.styles":"ready","site.styles":"ready","user.styles":"ready","skins.vector.user":"ready","user":"ready","user.options":"loading","mediawiki.ui.button":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","mediawiki.ui.icon":"ready","ext.uls.pt":"ready"};RLPAGEMODULES=["ext.SimpleMathJax","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","skins.vector.es6","mediawiki.misc-authed-pref","ext.uls.compactlinks","ext.uls.interface"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.implement("user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});});});</script> <link rel="stylesheet" href="/load.php?lang=en&amp;modules=ext.uls.pt%7Cmediawiki.ui.button%2Cicon%7Cskins.vector.icons%2Cstyles&amp;only=styles&amp;skin=vector-2022"/> <script async="" src="/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""/> <link rel="stylesheet" href="/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"/> <meta name="generator" content="MediaWiki 1.39.10"/> <meta name="format-detection" content="telephone=no"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0"/> <link rel="apple-touch-icon" href="/logo.svg"/> <link rel="icon" href="/favicon.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="The Document Foundation Wiki (en)"/> <link rel="EditURI" type="application/rsd+xml" href="https://wiki.documentfoundation.org/api.php?action=rsd"/> <link rel="license" href="https://creativecommons.org/licenses/by-sa/3.0/"/> <link rel="alternate" type="application/atom+xml" title="The Document Foundation Wiki Atom feed" href="/index.php?title=Special:RecentChanges&amp;feed=atom"/> <link rel="alternate" type="application/rss+xml" title="The Document Foundation Wiki RSS feed" href="/index.php?title=Special:RecentChanges&amp;feed=rss"/> </head> <body class="skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-10 ns-subject page-Template_SubMenuEntryAlternative rootpage-Template_SubMenuEntryAlternative skin-vector-2022 action-view skin--responsive vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-language-alert-in-sidebar-disabled vector-feature-sticky-header-disabled vector-feature-sticky-header-edit-disabled vector-feature-table-of-contents-disabled vector-feature-visual-enhancement-next-disabled"><div class="mw-page-container"> <span id="top-page"></span> <a class="mw-jump-link" href="#content">Jump to content</a> <div class="mw-page-container-inner"> <input type="checkbox" id="mw-sidebar-checkbox" class="mw-checkbox-hack-checkbox" > <header class="mw-header"> <div class="mw-header-aside"> <label id="mw-sidebar-button" class="mw-checkbox-hack-button mw-ui-icon mw-ui-button mw-ui-quiet mw-ui-icon-element" for="mw-sidebar-checkbox" role="button" aria-controls="mw-panel" data-event-name="ui.sidebar" tabindex="0" title="Main menu"> <span>Toggle sidebar</span> </label> <a href="/Special:MyLanguage/Main_Page" class="mw-logo"> <span class="mw-logo-container"> <strong class="mw-logo-wordmark">The Document Foundation Wiki</strong> </span> </a> </div> <div class="mw-header-content"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/Special:Search" title="Search The Document Foundation Wiki [f]" accesskey="f" class="mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-search search-toggle"> <span>Search</span> </a> <div> <form action="/index.php" id="searchform" class="vector-search-box-form"> <div id="simpleSearch" class="vector-search-box-inner" data-search-loc="header-moved"> <input class="vector-search-box-input" type="search" name="search" placeholder="Search The Document Foundation Wiki" aria-label="Search The Document Foundation Wiki" autocapitalize="sentences" title="Search The Document Foundation Wiki [f]" accesskey="f" id="searchInput" > <input type="hidden" name="title" value="Special:Search"> <input id="mw-searchButton" class="searchButton mw-fallbackSearchButton" type="submit" name="fulltext" title="Search the pages for this text" value="Search"> <input id="searchButton" class="searchButton" type="submit" name="go" title="Go to a page with this exact name if it exists" value="Go"> </div> </form> </div> </div> <nav class="vector-user-links" aria-label="Personal tools" role="navigation" > <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet mw-portlet-vector-user-menu-overflow vector-user-menu-overflow" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="ca-uls" class="user-links-collapsible-item mw-list-item active"><a href="#" class="uls-trigger mw-ui-button mw-ui-quiet"><span class="mw-ui-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a></li></ul> </div> </div> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal vector-user-menu vector-user-menu-logged-out vector-menu-dropdown" title="More options" > <input type="checkbox" id="p-personal-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-personal" class="vector-menu-checkbox" /> <label id="p-personal-label" for="p-personal-checkbox" class="vector-menu-heading mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis" > <span class="vector-menu-heading-label">Personal tools</span> </label> <div class="vector-menu-content"> <div class="vector-user-menu-create-account"><a href="/index.php?title=Special:CreateAccount&amp;returnto=Template%3ASubMenuEntryAlternative" class="vector-menu-content-item user-links-collapsible-item" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="mw-ui-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></div> <div class="vector-user-menu-login"><a href="/index.php?title=Special:UserLogin&amp;returnto=Template%3ASubMenuEntryAlternative" class="vector-menu-content-item vector-menu-content-item-login" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="mw-ui-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></div> <ul class="vector-menu-content-list"></ul> </div> </div> </nav> </div> </header> <div class="vector-sidebar-container "> <div id="mw-navigation"> <nav id="mw-panel" class="mw-sidebar" aria-label="Site" role="navigation"> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation vector-menu-portal portal" > <div id="p-navigation-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Navigation</span> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="n-mainpage-description" class="mw-list-item"><a href="/Special:MyLanguage/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-getinvolved-description" class="mw-list-item"><a href="/Special:MyLanguage/Get_Involved"><span>Get Involved</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-donate-description" class="mw-list-item"><a href="https://www.libreoffice.org/donate/?pk_campaign=wiki"><span>Support LibreOffice!</span></a></li></ul> </div> </div> <div id="p-editinghelp" class="vector-menu mw-portlet mw-portlet-editinghelp vector-menu-portal portal" > <div id="p-editinghelp-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Editing the wiki</span> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="n-helppage-description" class="mw-list-item"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" rel="nofollow"><span>Help resources</span></a></li></ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb vector-menu-portal portal" > <div id="p-tb-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Tools</span> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="t-whatlinkshere" class="mw-list-item"><a href="/Special:WhatLinksHere/Template:SubMenuEntryAlternative" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/Special:RecentChangesLinked/Template:SubMenuEntryAlternative" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/index.php?title=Template:SubMenuEntryAlternative&amp;oldid=192376" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/index.php?title=Template:SubMenuEntryAlternative&amp;action=info" title="More information about this page"><span>Page information</span></a></li></ul> </div> </div> </nav> </div> </div> <div class="vector-sitenotice-container"> <div id="siteNotice"></div> </div> <input type="checkbox" id="vector-toc-collapsed-checkbox" class="mw-checkbox-hack-checkbox"> <div class="mw-table-of-contents-container"> <div class="vector-sticky-toc-container mw-sticky-header-element"> <nav id="mw-panel-toc" class="sidebar-toc" role="navigation" aria-labelledby="sidebar-toc-label" data-event-name="ui.sidebar-toc"> <div id="sidebar-toc-label" class="sidebar-toc-header"> <p class="sidebar-toc-title"> Contents <button class="vector-toc-uncollapse-button">move to sidebar</button> <button class="vector-toc-collapse-button">hide</button> </p> </div> <ul class="sidebar-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="sidebar-toc-list-item sidebar-toc-level-1"> <a href="#top-page" class="sidebar-toc-link"> <div class="sidebar-toc-text">Beginning</div> </a> </li> <li id="toc-Structure" class="sidebar-toc-list-item sidebar-toc-level-1 sidebar-toc-list-item-expanded"> <a class="sidebar-toc-link" href="#Structure"> <div class="sidebar-toc-text"> <span class="sidebar-toc-numb">1</span>Structure</div> </a> <ul id="toc-Structure-sublist" class="sidebar-toc-list"> </ul> </li> <li id="toc-Parameters" class="sidebar-toc-list-item sidebar-toc-level-1 sidebar-toc-list-item-expanded"> <a class="sidebar-toc-link" href="#Parameters"> <div class="sidebar-toc-text"> <span class="sidebar-toc-numb">2</span>Parameters</div> </a> <ul id="toc-Parameters-sublist" class="sidebar-toc-list"> </ul> </li> <li id="toc-Examples_and_Tips&amp;Tricks" class="sidebar-toc-list-item sidebar-toc-level-1 sidebar-toc-list-item-expanded"> <a class="sidebar-toc-link" href="#Examples_and_Tips&amp;Tricks"> <div class="sidebar-toc-text"> <span class="sidebar-toc-numb">3</span>Examples and Tips&Tricks</div> </a> <button aria-controls="toc-Examples_and_Tips&amp;Tricks-sublist" class="mw-ui-icon mw-ui-icon-wikimedia-expand mw-ui-icon-small sidebar-toc-toggle"> Toggle Examples and Tips&Tricks subsection </button> <ul id="toc-Examples_and_Tips&amp;Tricks-sublist" class="sidebar-toc-list"> <li id="toc-a_few_simple_examples" class="sidebar-toc-list-item sidebar-toc-level-2"> <a class="sidebar-toc-link" href="#a_few_simple_examples"> <div class="sidebar-toc-text"> <span class="sidebar-toc-numb">3.1</span>a few simple examples</div> </a> <ul id="toc-a_few_simple_examples-sublist" class="sidebar-toc-list"> </ul> </li> <li id="toc-RTL_languages" class="sidebar-toc-list-item sidebar-toc-level-2"> <a class="sidebar-toc-link" href="#RTL_languages"> <div class="sidebar-toc-text"> <span class="sidebar-toc-numb">3.2</span>RTL languages</div> </a> <ul id="toc-RTL_languages-sublist" class="sidebar-toc-list"> </ul> </li> <li id="toc-Highlighting_pages_with_whitespaces/underscore" class="sidebar-toc-list-item sidebar-toc-level-2"> <a class="sidebar-toc-link" href="#Highlighting_pages_with_whitespaces/underscore"> <div class="sidebar-toc-text"> <span class="sidebar-toc-numb">3.3</span>Highlighting pages with whitespaces/underscore</div> </a> <ul id="toc-Highlighting_pages_with_whitespaces/underscore-sublist" class="sidebar-toc-list"> </ul> </li> <li id="toc-multiple_pages_with_the_same_highlight" class="sidebar-toc-list-item sidebar-toc-level-2"> <a class="sidebar-toc-link" href="#multiple_pages_with_the_same_highlight"> <div class="sidebar-toc-text"> <span class="sidebar-toc-numb">3.4</span>multiple pages with the same highlight</div> </a> <ul id="toc-multiple_pages_with_the_same_highlight-sublist" class="sidebar-toc-list"> </ul> </li> </ul> </li> </ul> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body" role="main"> <a id="top"></a> <header class="mw-body-header"> <div id="p-lang-btn" class="vector-menu mw-portlet mw-portlet-lang vector-menu-dropdown" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-menu-checkbox mw-interlanguage-selector " aria-label="This article exist only in this language. Add the article for other languages" /> <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-menu-heading mw-ui-progressive mw-portlet-lang-heading-0 mw-ui-button mw-ui-quiet" > <span class="mw-ui-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span><span class="vector-menu-heading-label">Add languages</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"></ul> <div class="after-portlet after-portlet-lang"><span class="uls-after-portlet-link"></span></div> </div> </div> <label id="vector-toc-collapsed-button" class="mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-listBullet mw-checkbox-hack-button" for="vector-toc-collapsed-checkbox" role="button" aria-controls="toc-toggle-list" data-event-name="vector.toc-toggle-list" tabindex="0" title="Table of Contents"> Toggle the table of contents </label> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Template</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">SubMenuEntryAlternative</span></h1> </header> <nav class="vector-article-toolbar" aria-label="Tools" role="navigation"> <div class="mw-article-toolbar-container"> <div id="left-navigation"> <div id="p-associated-pages" class="vector-menu mw-portlet mw-portlet-associated-pages vector-menu-tabs" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="ca-nstab-template" class="selected mw-list-item"><a href="/Template:SubMenuEntryAlternative" title="View the template [c]" accesskey="c"><span>Template</span></a></li><li id="ca-talk" class="new mw-list-item"><a href="/WikiAction/edit/Template_talk:SubMenuEntryAlternative?redlink=1" rel="discussion" title="Discussion about the content page (page does not exist) [t]" accesskey="t"><span>Discussion</span></a></li></ul> </div> </div> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet vector-menu-dropdown" > <input type="checkbox" id="p-variants-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-variants" class="vector-menu-checkbox" aria-label="Change language variant" /> <label id="p-variants-label" for="p-variants-checkbox" class="vector-menu-heading " > <span class="vector-menu-heading-label">English</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"></ul> </div> </div> </div> <div id="right-navigation" class="vector-collapsible "> <div id="p-views" class="vector-menu mw-portlet mw-portlet-views vector-menu-tabs" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="ca-view" class="selected mw-list-item"><a href="/Template:SubMenuEntryAlternative"><span>Read</span></a></li><li id="ca-viewsource" class="mw-list-item"><a href="/WikiAction/edit/Template:SubMenuEntryAlternative" title="This page is protected.&#10;You can view its source [e]" accesskey="e"><span>View source</span></a></li><li id="ca-history" class="mw-list-item"><a href="/WikiAction/history/Template:SubMenuEntryAlternative" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li></ul> </div> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-menu-dropdown vector-has-collapsible-items" title="More options" > <input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-cactions" class="vector-menu-checkbox" /> <label id="p-cactions-label" for="p-cactions-checkbox" class="vector-menu-heading " > <span class="vector-menu-heading-label">More</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/Template:SubMenuEntryAlternative"><span>Read</span></a></li><li id="ca-more-viewsource" class="vector-more-collapsible-item mw-list-item"><a href="/WikiAction/edit/Template:SubMenuEntryAlternative"><span>View source</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/WikiAction/history/Template:SubMenuEntryAlternative"><span>View history</span></a></li></ul> </div> </div> </div> </div> </nav> <div id="bodyContent" class="vector-body" data-mw-ve-target-container> <div class="mw-body-subheader"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From The Document Foundation Wiki</div> </div> <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-parser-output"><li>[[|<span style="color:#023f62; border-bottom:2px solid #023f62;"></span>]] </li><div style="margin-top: 1em; clear: both; border: 1px solid #a3caff; background-color: #eaf3ff; border-radius: 2px; box-shadow: 0 1px 3px #dde6ed;"><div class="ts-doc-header" style="background-color: #c2dcff; padding: 0.5em"><span style="font-size: 120%; font-variant: all-small-caps;">Template documentation</span>&#160;<span class="plainlinks" id="doc_editlinks">[<a class="external text" href="https://wiki.documentfoundation.org/WikiAction/edit/Template:MenuEntry/doc">edit</a>]</span> </div><div style="padding: 0.6em;">This documentation is for {{<a href="/Template:MenuEntry" title="Template:MenuEntry">MenuEntry</a>}}, {{<a href="/Template:MenuEntryAlternative" title="Template:MenuEntryAlternative">MenuEntryAlternative</a>}}, {{<a href="/Template:SubMenuEntry" title="Template:SubMenuEntry">SubMenuEntry</a>}}, and {{<a class="mw-selflink selflink">SubMenuEntryAlternative</a>}}. <p>These templates generate an entry for the menus listed at the top on every page. </p> <mw:tocplace></mw:tocplace> <h3><span class="mw-headline" id="Structure">Structure</span></h3> <p>The structure of a new template is </p> <pre> {{MenuStart}} {{MenuEntryAlternative|Highlight1|Link1|Caption1|class=lang_main}} {{MenuEntry|Highlight2|Link2|Caption2}} &lt;/ul&gt;&lt;/div&gt;&lt;noinclude&gt;{{documentation|Template:TopMenu/doc}}&lt;/noinclude&gt; </pre> <p>Depending on the level (Main or sub level) the MenuStart template has to be replaced with SubMenuStart. </p> <h3><span class="mw-headline" id="Parameters">Parameters</span></h3> <p>The following table contains a matrix of supported features of the different templates. </p> <table class="wikitable" width="100%"> <tbody><tr> <th>Template name \ Parameter Name (short description) </th> <th>{{{1}}} (highlight search string) </th> <th>{{{2}}} (link) </th> <th>{{{3}}} (caption) </th> <th>{{{class}}} </th> <th>{{{background}}} </th> <th>{{{color}}} </th> <th>{{{parameter}}} </th> <th>{{{highlight}}} </th></tr> <tr> <td>{{<a href="/Template:MenuEntry" title="Template:MenuEntry">MenuEntry</a>}} </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No </td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No </td></tr> <tr> <td>{{<a href="/Template:MenuEntryAlternative" title="Template:MenuEntryAlternative">MenuEntryAlternative</a>}} </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td></tr> <tr> <td>{{<a href="/Template:SubMenuEntry" title="Template:SubMenuEntry">SubMenuEntry</a>}} </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No </td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No </td></tr> <tr> <td>{{<a class="mw-selflink selflink">SubMenuEntryAlternative</a>}} </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td></tr> </tbody></table> <p>The class parameter is used and needed for the very first list element to provide a CSS style sheet. Until now every menu template uses the <tt>class="lang_main"</tt> style sheet. </p><p>The parameter background and color (text color) are predefined, but can be overwritten per template basis (or for creating a new meta/wrapper template). </p><p>The <tt>|parameter=</tt> is used for the part of the path which is checked for the highlight, so e.g. for the path <a href="/Development/EasyHacks" title="Development/EasyHacks">Development/EasyHacks</a> parameter=3 is needed to highlight the caption (and parameter <tt>|1=Completed</tt>) instead of the default value. </p><p>The parameter <tt>|highlight</tt> has only two values at the moment: </p> <ol><li>fullpagename - to use the full article path when checking for the highlight, and</li> <li>the default value (everything other than fullpagename) - so checking against a certain part of the path (without namespace)</li></ol> <table class="wikitable" width="100%"> <tbody><tr> <th>Template name \ Parameter Name (short description) </th> <th>{{{style}}} </th> <th>{{{background}}} </th> <th>{{{solid}}} </th> <th>{{{lang}}} </th> <th>{{{dir}}} </th></tr> <tr> <td>{{<a href="/Template:MenuStart" title="Template:MenuStart">MenuStart</a>}} </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td></tr> <tr> <td>{{<a href="/Template:SubMenuStart" title="Template:SubMenuStart">SubMenuStart</a>}} </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No </td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No </td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes </td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No </td></tr></tbody></table> <h3><span id="Examples_and_Tips.26Tricks"></span><span class="mw-headline" id="Examples_and_Tips&amp;Tricks">Examples and Tips&amp;Tricks</span></h3> <h4><span class="mw-headline" id="a_few_simple_examples">a few simple examples</span></h4> <p>{{<a href="/Template:Menu/es" title="Template:Menu/es">Menu/es</a>}} includes a link to the Spanish Design start page. As you can see on this very simple example, the caption is <i>Dise帽o</i>, the actual link goes to <a href="/Design/es" title="Design/es">Design/es</a> and <i>Design</i> is checked if the link should be highlighted. </p> <pre>{{MenuEntry|Design|Design/es|Dise帽o}} </pre> <p>{{<a href="/Template:Menu.Design" title="Template:Menu.Design">Menu.Design</a>}} includes a menu entry for Blueprints. The word <i>Blueprints</i> is in the path at the second level which is the default check using SubMenuEntryAlternative. </p> <pre>{{SubMenuEntryAlternative|Blueprints|Design/Blueprints|Development Blueprints}} </pre> <p>A third example at {{<a href="/Template:Menu.Extensions" title="Template:Menu.Extensions">Menu.Extensions</a>}} shows the usage of parameter <i>parameter</i>. </p> <pre>{{SubMenuEntryAlternative|install extension|Documentation/HowTo/install extension|How to: Install an extension|parameter=3}} </pre> <h4><span class="mw-headline" id="RTL_languages">RTL languages</span></h4> <p>{{<a href="/Template:Menu/ar" title="Template:Menu/ar">Menu/ar</a>}} is the Arabic version of {{<a href="/Template:Menu" title="Template:Menu">Menu</a>}}. The template MenuStart and the very first MenuEntry templates has to be using the parameters dir, style, lang and class as showing the following example for Tight-to-Left templates. </p> <pre>{{MenuStart|dir=rtl|style=unicode-bidi: embed;|lang=ar}} {{MenuEntry|Main Page|Main Page/ar|丕賱乇卅賷爻賷丞|class=lang_main" dir="rtl}} </pre> <h4><span id="Highlighting_pages_with_whitespaces.2Funderscore"></span><span class="mw-headline" id="Highlighting_pages_with_whitespaces/underscore">Highlighting pages with whitespaces/underscore</span></h4> <p>Because of MediaWikis internal structure underscores always get translated to whitespaces, although normal wikilinks e.g. <a href="/Extensions_Repository" title="Extensions Repository">Extensions Repository</a> and <a href="/Extensions_Repository" title="Extensions Repository">Extensions_Repository</a> do both work. </p><p>When highlighting pages with a whitespace/underscore in the name the first parameter needs testing against whitespaces instead of underscores. See the following example of template {{<a href="/Template:Menu.Extensions" title="Template:Menu.Extensions">Menu.Extensions</a>}}: </p> <pre>{{SubMenuEntry|Extensions Repository|Extensions Repository|Repository}} </pre> <h4><span class="mw-headline" id="multiple_pages_with_the_same_highlight">multiple pages with the same highlight</span></h4> <p>{{<a href="/Template:Menu.Extensions" title="Template:Menu.Extensions">Menu.Extensions</a>}} includes two pages with the name "Extensions" on the last directory. To not highlight both pages you could use (in this example) two different solutions: </p> <pre>{{SubMenuEntryAlternative|Extensions|Extensions|Extensions|class=lang_main|parameter=1}} {{SubMenuEntryAlternative|QA|QA/BugReport/Extensions|How to: report a bug|parameter=1}} </pre> <p>or </p> <pre>{{SubMenuEntryAlternative|Extensions|Extensions|Extensions|class=lang_main|highlight=fullpagename}} {{SubMenuEntryAlternative|QA/BugReport/Extensions|QA/BugReport/Extensions|How to: report a bug|highlight=fullpagename}} </pre> <p>or of course any combination of the above two examples. </p> </div></div> <div id="template_doc_page_transcluded" class="plainlinks" style="margin-top: 0.25em; clear: both; border: 1px solid #a3caff; padding: 0.5em; background-color: #eaf3ff; border-radius: 2px; box-shadow: 0 1px 3px #dde6ed;"><i>This <a href="https://en.wikipedia.org/wiki/Wikipedia:Template_documentation" class="extiw" title="wikipedia:Wikipedia:Template documentation">documentation</a> is <a href="https://en.wikipedia.org/wiki/Wikipedia:Transclusion" class="extiw" title="wikipedia:Wikipedia:Transclusion">transcluded</a> from <a href="/Template:MenuEntry/doc" title="Template:MenuEntry/doc">Template:MenuEntry/doc</a>. <small>(<a href="/Template:MenuEntry/doc" title="Template:MenuEntry/doc">view</a> | <a class="external text" href="https://wiki.documentfoundation.org/WikiAction/edit/Template:MenuEntry/doc">edit</a> | <a class="external text" href="https://wiki.documentfoundation.org/WikiAction/history/Template:MenuEntry/doc">history</a>)</small></i></div> <!-- NewPP limit report Parsed by wiki Cached time: 20241124150738 Cache expiry: 1209600 Reduced expiry: false Complications: [show鈥恡oc] CPU time usage: 0.031 seconds Real time usage: 0.035 seconds Preprocessor visited node count: 279/1000000 Post鈥恊xpand include size: 25177/2097152 bytes Template argument size: 637/2097152 bytes Highest expansion depth: 7/100 Expensive parser function count: 1/100 Unstrip recursion depth: 0/20 Unstrip post鈥恊xpand size: 1168/5000000 bytes --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 24.374 1 -total 79.65% 19.413 1 Template:Documentation 65.71% 16.016 1 Template:MenuEntry/doc 22.42% 5.464 17 Template:Tl 20.09% 4.897 1 Template:MenuEntryAlternative 11.67% 2.845 35 Template:Yes 9.92% 2.418 7 Template:No 4.77% 1.162 2 Template:LibreOfficeColor2 --> </div> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://wiki.documentfoundation.org/index.php?title=Template:SubMenuEntryAlternative&amp;oldid=192376">https://wiki.documentfoundation.org/index.php?title=Template:SubMenuEntryAlternative&amp;oldid=192376</a>"</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" role="contentinfo" > <ul id="footer-info"> <li id="footer-info-credits">This page was last edited 13:39, 11 September 2019 by <a href="/User:Fito" class="mw-userlink" title="User:Fito"><bdi>Adolfo Jayme Barrientos</bdi></a>. Based on work by <a href="/User:Dennisroczek" class="mw-userlink" title="User:Dennisroczek"><bdi>Dennis Roczek</bdi></a>.</li> <li id="footer-info-copyright">Please note that all contributions to The Document Foundation Wiki are considered to be released under the <a href="https://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>, unless otherwise specified. This does not include the source code of LibreOffice, which is licensed under the GNU Lesser General Public License (<a href="https://www.libreoffice.org/download/license/">LGPLv3</a>). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="/TradeMark_Policy">trademark policy</a> (see <a href="/Project:Copyrights">Project:Copyrights</a> for details). LibreOffice was based on OpenOffice.org.<br/>If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="/Project:Privacy_Policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/Project:About">About The Document Foundation Wiki</a></li> <li id="footer-places-disclaimer"><a href="/Project:General_disclaimer">Imprint</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://creativecommons.org/licenses/by-sa/3.0/"><img src="/resources/assets/licenses/cc-by-sa.png" alt="the &lt;a href=&quot;https://creativecommons.org/licenses/by-sa/3.0/&quot;&gt;Creative Commons Attribution-ShareAlike 3.0 Unported License&lt;/a&gt;, unless otherwise specified. This does not include the source code of LibreOffice, which is licensed under the &lt;a href=&quot;https://www.libreoffice.org/download/license/&quot;&gt;Mozilla Public License v2.0&lt;/a&gt;. &quot;LibreOffice&quot; and &quot;The Document Foundation&quot; are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our &lt;a href=&quot;/TradeMark Policy&quot;&gt;trademark policy&lt;/a&gt; (see &lt;a href=&quot;/Project:Copyrights&quot;&gt;Project:Copyrights&lt;/a&gt; for details). LibreOffice was based on OpenOffice.org.&lt;br/&gt;If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here." width="88" height="31" loading="lazy"/></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/"><img src="/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31" loading="lazy"/></a></li> </ul> </footer> </div> </div> </div> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.031","walltime":"0.035","ppvisitednodes":{"value":279,"limit":1000000},"postexpandincludesize":{"value":25177,"limit":2097152},"templateargumentsize":{"value":637,"limit":2097152},"expansiondepth":{"value":7,"limit":100},"expensivefunctioncount":{"value":1,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":1168,"limit":5000000},"timingprofile":["100.00% 24.374 1 -total"," 79.65% 19.413 1 Template:Documentation"," 65.71% 16.016 1 Template:MenuEntry/doc"," 22.42% 5.464 17 Template:Tl"," 20.09% 4.897 1 Template:MenuEntryAlternative"," 11.67% 2.845 35 Template:Yes"," 9.92% 2.418 7 Template:No"," 4.77% 1.162 2 Template:LibreOfficeColor2"]},"cachereport":{"origin":"wiki","timestamp":"20241124150738","ttl":1209600,"transientcontent":false}}});});</script> <!-- Matomo --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(["disableCookies"]); _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u = (("https:" == document.location.protocol) ? "https" : "http") + "://"+"piwik.documentfoundation.org/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "44"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Matomo Code --> <!-- Matomo Image Tracker --> <noscript><img src="https://piwik.documentfoundation.org/piwik.php?idsite=44&rec=1" style="border:0" alt="" /></noscript> <!-- End Matomo --> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":100,"wgHostname":"wiki"});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10