Template:SubpageNav
Template page
More actions
SubpageNav
A compact horizontal navigation bar for projects and tutorials with deeply nested pages. Supports dropdown menus via standard wikitext bulleted lists.
Styles are loaded from Template:SubpageNav/styles.css and mobile toggling is handled by MediaWiki:Gadget-subpagenav.js.
Usage
{{SubpageNav
| name = My Project
| root = Projects/My Project
| icon = applications-system
| 1 =
* [[Projects/My Project|Overview]]
* [[Projects/My Project/Install|Installation]]
* Guides
** [[Projects/My Project/Guides/Basic|Basic Setup]]
** [[Projects/My Project/Guides/Advanced|Advanced Configuration]]
* [[Projects/My Project/API|API Reference]]
}}
Parameters
name- The display name of the project shown on the far left.
root- The root page link (where clicking the name takes you).
icon- Optional icon filename (without .png).
1- The unnamed parameter containing your standard bulleted list. Nested bullets (
**) automatically become dropdown menus!