(Imported by PageSync) Tag: Metadata slot edit |
(Imported by PageSync) Tag: wsps-content-edit-tag |
||
| Line 4: | Line 4: | ||
<pre> | <pre> | ||
{{WSNavMenu | {{WSNavMenu | ||
|Input= | |Input=(text) enter a list of pages, with each subitem on a new line and an empty line between main menu items (see example below). Use "*" to add a linktext different from the pagetitle. | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 25: | Line 25: | ||
MediaWiki:Ws-header*Header | MediaWiki:Ws-header*Header | ||
MediaWiki:Ws-footer*Footer | MediaWiki:Ws-footer*Footer | ||
Wiki:page-types*Page types | Wiki:page-types*Page types | ||
Wiki:Wiki pages*Wiki pages | Wiki:Wiki pages*Wiki pages | ||
File:Logo.png*Logo | File:Logo.png*Logo | ||
}} | }} | ||
| Line 60: | Line 58: | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
--><div class="navbar navbar-dark navbar-expand-md bg-primary mt-3 mt-md-0" ><!-- | |||
-->{{#widget:Link |type=button |class=navbar-toggler |datatoggle=collapse |datatarget=#navbar1}}<!-- | |||
--><div class="collapse navbar-collapse justify-content-between w-100" id="navbar1"><!-- | |||
--><ul class="navbar-nav align-items-center"><!-- | |||
-->{{#invoke:WSNavMenu|innerMenu|input={{{Input|}}} }}<!-- | |||
--></ul><!-- | --></ul><!-- | ||
--><div class="d-flex justify-conent-end"><!-- | --><div class="d-flex justify-conent-end"><!-- | ||
| Line 123: | Line 68: | ||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
--></div | --></div></includeonly> | ||
| ws-base-props | |||
|---|---|---|---|
| Line 3: | Line 3: | ||
|Title=Template:WSNavMenu | |Title=Template:WSNavMenu | ||
|Version history={{Version history item | |Version history={{Version history item | ||
|Version number=2.0 | |||
|Version description=A Lua module is used to generate the inner menu, due to deprecation of Variables and WSArrays extensions | |||
|Version date=2023-6-22 09:50:58 | |||
}}{{Version history item | |||
|Version number=1.0 | |Version number=1.0 | ||
|Version description=Initial version | |Version description=Initial version | ||
| ws-class-props | |||
| Line 1: | Line 1: | ||
{{ | {{Csp class properties | ||
|Type=CSP Basis Core | |Type=CSP Basis Core | ||
|Origin=CSP Basis | |Origin=CSP Basis | ||
}} | }} | ||
Latest revision as of 09:37, 15 July 2025
This is the WSNavMenu template. It should be called in the following format:
{{WSNavMenu
|Input=(text) enter a list of pages, with each subitem on a new line and an empty line between main menu items (see example below). Use "*" to add a linktext different from the pagetitle.
}}
{{WSNavMenu
|Input=Main Page*{{Fa|home}} Home
Pages
Search*Search
{{Fa|lock}} Spaces
Special:AddSpace*Add a Space
Special:ActiveSpaces*Manage Active Spaces
Special:ArchivedSpaces*Manage Archived Spaces
{{Fa|lock}} Tools
MediaWiki:Ws-navmenu*NavMenu
MediaWiki:Ws-header*Header
MediaWiki:Ws-footer*Footer
Wiki:page-types*Page types
Wiki:Wiki pages*Wiki pages
File:Logo.png*Logo
}}
Test