Template:HeroTabs: Difference between revisionsGive feedback
Jump to navigation
Jump to search
No edit summary |
Gammaton32 (talk | contribs) spacing |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><div style="background:rgba(0,0,0,.25); margin:0 auto 1em; display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-end; gap:1em; padding:6px 0; font-family:'Retail Demo','Radiance',sans-serif; text-transform:uppercase; font-weight:bold;"><!-- | ||
<div style="background:rgba(0,0,0,.25); margin:0 auto 1em; display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-end; gap:1em; padding:6px 0; font-family:'Retail Demo','Radiance',sans-serif; text-transform:uppercase; font-weight:bold;"> | -->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}|Overview]]</div>|}}<!-- | ||
{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}|Overview]]</div> |}} | -->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Quotes| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}/Quotes|Quotes]]</div>|}}<!-- | ||
{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Quotes| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}/Quotes|Quotes]]</div> |}} | -->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Sounds| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}/Sounds|Sounds]]</div>|}}<!-- | ||
{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Sounds| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}/Sounds|Sounds]]</div> |}} | -->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Update_history|<div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}/Update_history|Update History]]</div>|}}<!-- | ||
{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Update_history| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}/Update_history|Update History]]</div> |}} | --></div></includeonly><!-- | ||
</div> | --><noinclude>{{Documentation}}</noinclude> | ||
</includeonly> | |||
<noinclude>{{Documentation}}</noinclude> | |||
Revision as of 20:18, 26 July 2025
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.