Template:HeroTabs: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) No edit summary |
Gammaton32 (talk | contribs) fixed an issue with lore namespace |
||
| Line 5: | Line 5: | ||
-->{{#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>{{#invoke:Lang|get_string|Citadel_ShopFilter_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>{{#invoke:Lang|get_string|Citadel_ShopFilter_Movement}}</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>{{#invoke:Lang|get_string|Citadel_ShopFilter_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>{{#invoke:Lang|get_string|Citadel_ShopFilter_Movement}}</span>]]</div>}}}}<!-- | ||
-->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Lore{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Lore{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Lore{{if_lang}}|<span>{{translate|Lore}}</span>]]</div>|{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Lore|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Lore | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Lore|<span>{{translate|Lore}}</span>]]</div>}}}}<!-- | -->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Lore{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Lore{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Lore{{if_lang}}|<span>{{translate|Lore}}</span>]]</div>|{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Lore|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Lore | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAME}}}}}/Lore|<span>{{translate|Lore}}</span>]]</div>}}}}<!-- | ||
-->{{#ifexist:{{ROOTPAGENAME}}/Quotes{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{ | -->{{#ifexist::{{{1|{{ROOTPAGENAME}}}}}/Quotes{{if_lang}}|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Quotes{{if_lang}} | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAMEE}}}}}/Quotes{{if_lang}}|<span>{{translate|Quotes}}</span>]]</div>|{{#ifexist:{{{1|{{ROOTPAGENAMEE}}}}}/Quotes|<div class="hero-tab {{#ifeq: {{FULLPAGENAMEE}} | {{{1|{{ROOTPAGENAMEE}}}}}/Quotes | hero-tab-active | hero-tab-inactive }}">[[{{{1|{{ROOTPAGENAMEE}}}}}/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>}}}}<!-- | ||
--></div></includeonly><!-- | --></div></includeonly><!-- | ||
--><noinclude>{{Documentation}}</noinclude> | --><noinclude>{{Documentation}}</noinclude> | ||
Revision as of 04:21, 28 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.