Template:Article header: Difference between revisions
Jump to navigation
Jump to search
New template: optional eyebrow label + deck description around the page title |
No edit summary |
||
| Line 1: | Line 1: | ||
<p class="edfm-eyebrow">{{{eyebrow|{{{1|}}}}}}</p>{{#if:{{{deck|}}}|<p class="edfm-deck">{{{deck|}}}</p>}}<noinclude> | <p class="edfm-eyebrow noexcerpt">{{{eyebrow|{{{1|}}}}}}</p>{{#if:{{{deck|}}}|<p class="edfm-deck">{{{deck|}}}</p>}}<noinclude> | ||
== Usage == | == Usage == | ||
Optional. Adds a small category "eyebrow" label above the page's real | Optional. Adds a small category "eyebrow" label above the page's real | ||
Revision as of 22:24, 19 August 2026
Usage
Optional. Adds a small category "eyebrow" label above the page's real title, and/or a muted one-line description ("deck") directly under it — see the redesign brief's Article header mockup:
EDFM // COMMANDER REFERENCE TOOLS & RESOURCES Community tools, applications and services commonly used by commanders.
Placement in the wikitext doesn't matter (top of the article is conventional) — a small script in MediaWiki:Common.js moves the eyebrow line to sit visually above #firstHeading on page load. The real page title stays the genuine, semantic H1 the whole time; this only adds text before/after it, it never replaces it. If a reader has JavaScript disabled, the eyebrow still renders — directly under the title instead of above it — so nothing is lost, only the exact placement changes.
{{Article header
|eyebrow=EDFM // Commander Reference
|deck=Optional one-line description shown under the title.
}}
Both parameters are optional; using just eyebrow= or just
deck= is fine.