Template:HeroTabs: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Moved css to styles page |
Gammaton32 (talk | contribs) added movement |
||
| Line 4: | Line 4: | ||
-->{{#ifexist:{{ROOTPAGENAME}}/Quotes{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{ROOTPAGENAME}}/Quotes{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{ROOTPAGENAME}}/Quotes{{if_lang}}|<span>{{translate|Quotes}}</span>]]</div>|{{#ifexist:{{ROOTPAGENAME}}/Quotes|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{ROOTPAGENAME}}/Quotes | hero-tab-active | hero-tab-inactive }}">[[{{ROOTPAGENAME}}/Quotes|<span>{{translate|Quotes}}</span>]]</div>}}}}<!-- | -->{{#ifexist:{{ROOTPAGENAME}}/Quotes{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{ROOTPAGENAME}}/Quotes{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{ROOTPAGENAME}}/Quotes{{if_lang}}|<span>{{translate|Quotes}}</span>]]</div>|{{#ifexist:{{ROOTPAGENAME}}/Quotes|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{ROOTPAGENAME}}/Quotes | hero-tab-active | hero-tab-inactive }}">[[{{ROOTPAGENAME}}/Quotes|<span>{{translate|Quotes}}</span>]]</div>}}}}<!-- | ||
-->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Sounds{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Sounds{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Sounds{{if_lang}}|<span>{{translate|Sounds}}</span>]]</div>|{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Sounds|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Sounds | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Sounds|<span>{{translate|Sounds}}</span>]]</div>}}}}<!-- | -->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Sounds{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Sounds{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Sounds{{if_lang}}|<span>{{translate|Sounds}}</span>]]</div>|{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Sounds|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Sounds | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Sounds|<span>{{translate|Sounds}}</span>]]</div>}}}}<!-- | ||
-->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Movement{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Movement{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Movement{{if_lang}}|<span>{{translate|Movement}}</span>]]</div>|{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Movement|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Movement | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Movement|<span>{{translate|Movement}}</span>]]</div>}}}}<!-- | |||
-->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Update_history{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Update_history{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Update_history{{if_lang}}|<span>{{translate|Update history}}</span>]]</div>|{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Update_history|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Update_history | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Update_history|<span>{{translate|Update history}}</span>]]</div>}}}}<!-- | -->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Update_history{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Update_history{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Update_history{{if_lang}}|<span>{{translate|Update history}}</span>]]</div>|{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Update_history|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Update_history | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Update_history|<span>{{translate|Update history}}</span>]]</div>}}}}<!-- | ||
--></div></includeonly><!-- | --></div></includeonly><!-- | ||
--><noinclude>{{Documentation}}</noinclude> | --><noinclude>{{Documentation}}</noinclude> | ||
Revision as of 00:34, 12 May 2026
This template uses CSS found at HeroTabs/styles.css.
Usage
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
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.