Template:HeroTabs: Difference between revisionsGive feedback
Jump to navigation
Jump to search
No edit summary |
Replace with module code. Tag: Replaced |
||
| (21 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:HeroTabs|render|{{{1|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
{{# | |||
</includeonly> | |||
<noinclude>{{Documentation}}</noinclude> | |||
Latest revision as of 17:29, 15 July 2026
This template uses CSS found at HeroTabs/styles.css.
Usage
[edit source]Adds a navigation header for a main page and its subpages. Mainly used for heroes but also works for other pages if it has the same subpages.
Place this template at the top of the relevant pages. The template automatically detects which subpages exist and highlights the current (active) page's tab.
Example
[edit source]Using the code:
{{HeroTabs}}
Will render the navigation bar. The example below shows how it appears on the "Sounds" page, with that tab highlighted as active.