Template:Section Header
The UESPWiki – Your source for The Elder Scrolls since 1995
This article is currently undergoing a major expansion or revamping by Salamangkero. However, you are free to help in the construction of this page by improving it—use the talk page to do so. Please review the edit history if you would like to see whether the page is still being worked on. If the editor who placed this notice has not made any changes in a while, please contact the editor or, if they're inactive, remove this template. This WIP notice was originally posted on 08:31, 14 February 2025 (UTC). |
Summary[edit]
Dynamically generates a section header. Section headers that use different levels based on how they're shown or transcluded.
Parameters[edit]
Parameter | Scope | Description |
---|---|---|
1 or title | optional | The title of the section header. A blank or missing value results in no header. |
2 or sectionlevel | optional | A value from 1 to 5, which generates <h1> to <h5> section headers, respectively; any other value results in no header. Typically inherited from the transcluding page. |
Examples[edit]
{{Section Header|}}
No title, no section header.
{{Section Header|No Level}}
No level, no section header.
Level 3
{{#define:sectionlevel|3}}{{Section Header|Level 3}}
Level 3, <h3>
.
Level 4
{{#local:sectionlevel|4}}{{Section Header|Level 4}}
Level 4, <h4>
.
Notes[edit]
This is too clever
{{Section Header|This is too clever|3}}
Explicitly providing a fixed sectionlevel
parameter is usually a symptom of over-engineering.
This is much better[edit]
===This is much better===
If the sectionlevel
is unchanging, just use regular section headers like so.