Template:SubpageNav: Difference between revisions
Template page
More actions
Changing format to work with a style page and gadget |
Trying to simply the template to only need "{{SubpageNav}}" |
||
| Line 7: | Line 7: | ||
</div> | </div> | ||
<div class="subpage-nav-links"> | <div class="subpage-nav-links"> | ||
{{{1|}}} | {{#if:{{{1|}}} | ||
| {{{1}}} | |||
| <div class="subpage-auto-list">{{Special:PrefixIndex/{{{root|{{FULLPAGENAME}}}}}/ |stripprefix=1}}</div> | |||
}} | |||
</div> | </div> | ||
</div> | </div> | ||
</div><noinclude> | </div><noinclude> | ||
== SubpageNav == | == SubpageNav == | ||
A compact horizontal navigation bar for projects and tutorials with | A compact horizontal navigation bar for projects and tutorials. Can be populated manually with a bulleted list, or left entirely blank to auto-populate based on subpages. | ||
=== Auto-Populate Usage === | |||
Just drop this at the top of your page: | |||
=== Usage === | |||
<pre> | <pre> | ||
{{SubpageNav | {{SubpageNav}} | ||
}} | |||
</pre> | </pre> | ||
It will automatically fetch all subpages. The Javascript gadget will parse paths containing slashes (like <code>Guides/Basic</code>) and automatically turn them into dropdown menus! | |||
</noinclude> | </noinclude> | ||
Revision as of 12:29, 22 March 2026
SubpageNav
A compact horizontal navigation bar for projects and tutorials. Can be populated manually with a bulleted list, or left entirely blank to auto-populate based on subpages.
Auto-Populate Usage
Just drop this at the top of your page:
{{SubpageNav}}
It will automatically fetch all subpages. The Javascript gadget will parse paths containing slashes (like Guides/Basic) and automatically turn them into dropdown menus!