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" 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" style="{{#if:{{{color|}}}|--color-amaranth-legacy-scope:#{{{color}}};--color-link:#{{{color}}};--color-link--hover:#{{{color}}};--color-link--active:#{{{color}}};--color-visited:#{{{color}}}|}}">
{{#if:{{{remove_hr|}}}||<hr/>}}
{{yesno|{{yesno-no|{{{remove_hr|}}}}}|no=<hr/>|yes=}}
<div class="hatnote">
<div class="hatnote">
<div>[[File:{{{file|Unknown.png}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</div>
<div>[[File:{{{file|Unknown.png}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</div>
Line 6: Line 6:
--><i>{{{secondary}}}</i></div>
--><i>{{{secondary}}}</i></div>
</div>
</div>
{{#if:{{{remove_hr|}}}||<hr/>}}
{{yesno|{{yesno-no|{{{remove_hr|}}}}}|no=<hr/>|yes=}}
</div>
</div>
<templatestyles src="Hatnote/styles.css"/></includeonly><!--
<templatestyles src="Hatnote/styles.css"/></includeonly><!--
Line 58: Line 58:
"type": "string",
"type": "string",
"required": true
"required": true
},
"remove_hr": {
"label": "Remove lines",
"description": "If the lines at the top and bottom should be removed",
"type": "boolean",
"default": "false"
}
}
},
},
Line 69: Line 75:
"font",
"font",
"primary",
"primary",
"secondary"
"secondary",
"remove_hr"
]
]
}
}

Revision as of 18:32, December 5, 2024

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
Filesuggested
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

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]]
}}
Contents