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
m Protected "Template:Hatnote2" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]
No edit summary
Line 1: Line 1:
<templatestyles src="Hatnote2/styles.css"/>
<templatestyles src="Hatnote2/styles.css"/>
<div class="noexcerpt" style="{{#if:{{{color|}}}|--color-amaranth-legacy-scope:#{{{color}}}|}}">
<hr/>
<hr/>
<div class="hatnote2 noexcerpt">
<div class="hatnote2">
<div>[[File:{{{file1|Unknown.png}}}|80px|class=notpageimage]]</div>
<div>[[File:{{{file|Unknown.png}}}|80px|class=notpageimage]]</div>
<div><span style="color:{{{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/><i>{{{secondary}}}</i></div>
--><br/><i>{{{secondary}}}</i></div>
<div>[[File:{{{file2|Unknown.png}}}|80px|class=notpageimage]]</div>
<div>[[File:{{{file2|Unknown.png}}}|80px|class=notpageimage]]</div>
</div>
</div>
<hr/><!--
<hr/>
</div><!--
--><noinclude>
--><noinclude>
<templatedata>
== Examples ==
{
"params": {
"file1": {
"label": "File 1",
"description": "The file to put on the left as a 80px thumbnail",
"example": "Glypht.png",
"type": "wiki-file-name",
"default": "Unknown.png",
"suggested": true
},
"file2": {
"label": "File 1",
"description": "The file to put on the left as a 80px thumbnail",
"example": "Glypht.png",
"type": "wiki-file-name",
"default": "Unknown.png",
"suggested": true
},
"color": {
"label": "Color",
"description": "The color of the horizontal rules, the primary text, and links inside the header",
"example": "ababab",
"type": "string"
},
"font": {
"label": "Font",
"description": "The font to use for text inside the header",
"example": "Varela Round",
"type": "string",
"default": "Cinzel"
},
"primary": {
"label": "Primary text",
"description": "The text displayed at the top (on the first line)",
"type": "string",
"required": true
},
"secondary": {
"label": "Secondary text",
"description": "The text displayed at the bottom (on the second line)",
"type": "string",
"required": true
}
},
"description": "Adds a center-aligned hatnote with two images on each side",
"format": "block",
"paramOrder": [
"file1",
"file2",
"color",
"font",
"primary",
"secondary"
]
}
</templatedata>

== Example ==
{{Hatnote2
{{Hatnote2
|file1=Glypht.png
|file1=Glypht.png
|file2=Glypht.png
|file2=Cosmoria Symbol.png
|color=cdcdcd
|primary=Glypht Glypht glypht
|primary=Glypht Glypht glypht
|secondary=Amarant
|secondary=[[Main Page|Amarant]]
}}
{{Hatnote2
|file1=Glypht.png
|file2=Glypht.png
|primary=Glypht Glypht glypht Glypht Glypht glypht Glypht Glypht glypht Glypht Glypht glypht
|secondary=Amarant
}}
}}
{{code|<nowiki>{{Hatnote2|file1=Glypht.png|file2=Cosmoria Symbol.png|color=cdcdcd|primary=Glypht Glypht glypht|secondary=[[Main Page|Amarant]]}}</nowiki>}}
</noinclude>
</noinclude>

Revision as of 00:55, December 3, 2024

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


{{{primary}}}
{{{secondary}}}

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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
File 1file1

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

Default
Unknown.png
Example
Glypht.png
Filesuggested
File 1file2

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

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


Glypht Glypht glypht
Amarant

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

Contents