Template:HeroTabs: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) No edit summary |
Gammaton32 (talk | contribs) added lore |
||
| 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}}}}}/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}}}}}/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}}}}}/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 15:26, 17 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.