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

Template:Hatnote2: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tag: 2017 source edit
No edit summary
Line 1: Line 1:
<includeonly><div class="noexcerpt" style="{{#if:{{{color|}}}|--color-amaranth-legacy-scope:#{{{color}}};--color-link:#{{{color}}};--color-link--hover:#{{{color}}};--color-link--active:#{{{color}}};--color-visited:#{{{color}}}|}}">
<includeonly><div class="noexcerpt" {{#if:{{{color|}}}|style="color:{{{color}}};--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="hatnote2">
<div class="hatnote2">
Line 39: Line 39:
"label": "Color",
"label": "Color",
"description": "The color of the horizontal rules, the primary text, and links inside the header",
"description": "The color of the horizontal rules, the primary text, and links inside the header",
"example": "ababab",
"example": "#cdcdcd",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 109: Line 109:
|file1=Glypht.png
|file1=Glypht.png
|file2=Cosmoria Symbol.png
|file2=Cosmoria Symbol.png
|color=cdcdcd
|color=#cdcdcd
|primary=Glypht Glypht glypht
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
|secondary=[[Main Page|Amarant]]
Line 118: Line 118:
|file1=Glypht.png
|file1=Glypht.png
|file2=Cosmoria Symbol.png
|file2=Cosmoria Symbol.png
|color=cdcdcd
|color=#cdcdcd
|primary=Glypht Glypht glypht
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
|secondary=[[Main Page|Amarant]]

Revision as of 03:25, January 9, 2025

Adds a center-aligned hatnote with two images on each side

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Left filefile1

The file to put on the left as a 80px thumbnail

Default
Unknown.png
Example
Glypht.png
Filerequired
Right filefile2

The file to put on the right as a thumbnail

Default
Unknown.png
Example
Glypht.png
Filerequired
File sizefile_size

The files' thumbnail size

Default
80px
Example
120px
Stringoptional
Colorcolor

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

Example
#cdcdcd
Stringsuggested
Primary gradientprimary_gradient

The CSS linear-gradient of the primary text

Example
#ff0072, #df0049
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:Hatnote2/styles.css has no content.

{{Hatnote2
|file1=Glypht.png
|file2=Cosmoria Symbol.png
|color=#cdcdcd
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
|remove_hr_bottom=y
}}

See also