Template:Article header: Difference between revisions

Current answers. Practical procedures. Reliable reference.
Jump to navigation Jump to search
Resolve article eyebrow sections dynamically
Remove obsolete manual article eyebrow parameter
Line 6: Line 6:


<pre>
<pre>
{{Article header
{{Article header|deck=Optional one-line description shown under the title.
|deck=Optional one-line description shown under the title.
}}
}}
</pre>
</pre>
Line 14: Line 13:


<pre>
<pre>
{{Article header
{{Article header|section=Combat
|section=Combat
  |deck=Optional one-line description shown under the title.
  |deck=Optional one-line description shown under the title.
}}
}}

Revision as of 21:25, 24 August 2026

EDFM // Reference

Usage

Adds the EDFM section eyebrow and/or a muted one-line description ("deck") near the article title.

Normal pages should not provide an eyebrow manually. The section is resolved centrally by Module:PageContext using structured page data, centralized page-family rules, limited exceptions in Module:Data/PageSections, and a safe fallback.

{{Article header|deck=Optional one-line description shown under the title.
}}

Use section= only for genuine exceptions that cannot be resolved from structured data or family rules:

{{Article header|section=Combat
 |deck=Optional one-line description shown under the title.
}}

The rendered eyebrow is presentation text such as EDFM // Ships & Equipment. The real page title remains the semantic H1. MediaWiki:Common.js moves the eyebrow above the H1 visually when JavaScript is available; without JavaScript it remains in article content below the H1.