(Imported by WSPageSync) |
(Imported by PageSync) Tag: wsps-content-edit-tag |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
This is the '''WSNavMenu''' template. It should be called in the following format: | This is the '''WSNavMenu''' template. It should be called in the following format: | ||
<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 36: | 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 71: | 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 135: | Line 68: | ||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
− | --></div | + | --></div></includeonly> |
− | |||
ws-base-props | |||
---|---|---|---|
Line 1: | Line 1: | ||
− | + | {{Base properties | |
+ | |Class=Application page | ||
+ | |Title=Template:WSNavMenu | ||
+ | |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 description=Initial version | ||
+ | |Version date=2022-12-02 09:14:43 | ||
+ | }} | ||
+ | }} | ||
ws-class-props | |||
Line 1: | Line 1: | ||
− | + | {{Csp class properties | |
+ | |Type=CSP Basis Core | ||
+ | |Origin=CSP Basis | ||
+ | }} |
Latest revision as of 10: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