Template:HeroTabs: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) added color, font size, text shadow, round corners |
Gammaton32 (talk | contribs) color |
||
| Line 1: | Line 1: | ||
<includeonly><div style="border-radius: 8px;background-image: linear-gradient(#987556, # | <includeonly><div style="border-radius: 8px;background-image: linear-gradient(#987556, #483728); color:#FFF5E8; margin:0 auto 1em; display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-end; gap:1em; padding:0px; font-family:'Retail Demo','Radiance',sans-serif; text-transform:uppercase; font-weight:bold; font-size:17px;"><!-- | ||
-->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}|<span style="color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black;>Overview</span>]]</div>|}}<!-- | -->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}|<span style="color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black;>Overview</span>]]</div>|}}<!-- | ||
-->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Quotes| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}/Quotes|<span style="color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black;>Quotes</span>]]</div>|}}<!-- | -->{{#ifexist:{{{1|{{ROOTPAGENAME}}}}}/Quotes| <div style="padding:4px 8px; cursor:pointer">[[{{{1|{{ROOTPAGENAME}}}}}/Quotes|<span style="color:#FFF0D6; text-shadow: 0px 2px 2px black, 0px 0px 2px black;>Quotes</span>]]</div>|}}<!-- | ||
Revision as of 01:39, 27 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.