Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Hatnote: Difference between revisions

Template page
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="noexcerpt" {{#if:{{{color|}}}|style="color:{{{color}}};--color-amaranth-legacy-scope:{{{color}}};--color-link:{{{color}}}"|}}>
<includeonly><div class="noexcerpt" {{#if:{{{color|}}}|style="--color-amaranth-legacy-scope:{{{color}}};--color-link:{{{color}}}"|}}>
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_top|}}}}}}}}|no=<hr/>|yes=}}
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_top|}}}}}}}}|no=<hr/>|yes=}}
<div class="hatnote">
<div class="hatnote">

Revision as of 03:36, January 9, 2025

Adds a left-aligned hatnote with one image on the left side

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Filefile

The file to put on the left as a thumbnail

Default
Unknown.png
Example
Glypht.png
Filerequired
File sizefile_size

The file's thumbnail size

Default
80px
Example
120px
Stringoptional
Colorcolor

The color of the horizontal rules, the primary text, and links inside the header

Example
#ababab
Stringsuggested
Primary gradientprimary_gradient

The CSS linear-gradient of the primary text

Example
to bottom, #ffffff, #36454f
Stringoptional
Fontfont

The font to use for text inside the header

Default
Cinzel
Example
Varela Round
Stringoptional
Primary textprimary

The text displayed at the top (on the first line)

Stringrequired
Secondary textsecondary

The text displayed at the bottom (on the second line)

Stringrequired
Remove linesremove_hr

If the lines at the top and bottom should be removed

Default
false
Booleanoptional
Remove top lineremove_hr_top

If the line at the top should be removed

Default
false
Booleanoptional
Remove bottom lineremove_hr_bottom

If the line at the bottom should be removed

Default
false
Booleanoptional

Example

Glypht Glypht glypht
Amarant

Page Template:Hatnote/styles.css has no content.

{{Hatnote
|file=Glypht.png
|color=#ababab
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
|remove_hr_top=true
}}

See also