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}}}|}}">
<templatestyles src="Hatnote/styles.css"/>
<div class="noexcerpt" style="{{#if:{{{color|}}}|--color-amaranth-legacy-scope:#{{{color}}};--color-link:#{{{color}}};--color-link--hover:#{{{color}}};--color-link--active:#{{{color}}}|}}">
<hr/>
<hr/>
<div class="hatnote">
<div class="hatnote">
<div>[[File:{{{file|Unknown.png}}}|80px|class=notpageimage]]</div>
<div>[[File:{{{file|Unknown.png}}}|80px|class=notpageimage]]</div>
<div><span style="color:var(--color-amaranth-legacy-scope);font-size:var(--font-size-xx-large);font-family:{{{font|Cinzel}}}">{{{primary}}}</span><!--
<div><span style="color:var(--color-amaranth-legacy-scope);font-size:var(--font-size-xx-large);font-family:{{{font|Cinzel}}}">{{{primary}}}</span><br/><!--
--><br/><i>{{{secondary}}}</i></div>
--><i>{{{secondary}}}</i></div>
</div>
</div>
<hr/>
<hr/>
</div><!--
</div>
<templatestyles src="Hatnote/styles.css"/></includeonly><!--
--><noinclude>
<templatedata>
--><noinclude><templatedata>
{
{
"params": {
"params": {
Line 66: Line 65:
|secondary=[[Main Page|Amarant]]
|secondary=[[Main Page|Amarant]]
}}
}}
{{code|<nowiki>{{Hatnote|file=Glypht.png|color=ababab|primary=Glypht Glypht glypht|secondary=[[Main Page|Amarant]]}}</nowiki>}}
{{code|<nowiki>{{Hatnote|file=Glypht.png|color=ababab|primary=Glypht Glypht glypht|secondary=[[Main Page|Amarant]]}}</nowiki>}}</noinclude>
</noinclude>

Revision as of 06:11, December 3, 2024

Adds a left-aligned hatnote with only one image

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Filefile

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

Default
Unknown.png
Example
Glypht.png
Filesuggested
Colorcolor

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

Example
ababab
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

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