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
merged with Template:Hatnote
Tags: New redirect 2017 source edit
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Template:Hatnote]]
<templatestyles src="Hatnote2/styles.css"/>
<div class="noexcerpt" style="{{#if:{{{color|}}}|--color-amaranth-legacy-scope:#{{{color}}};--color-link:#{{{color}}}|}}">
<hr/>
<div class="hatnote2">
<div>[[File:{{{file1|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><!--
--><br/><i>{{{secondary}}}</i></div>
<div>[[File:{{{file2|Unknown.png}}}|80px|class=notpageimage]]</div>
</div>
<hr/>
</div><!--
--><noinclude>
<templatedata>
{
"params": {
"file1": {
"label": "Left file",
"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": "Right file",
"description": "The file to put on the right 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
|file1=Glypht.png
|file2=Cosmoria Symbol.png
|color=cdcdcd
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
}}
{{code|<nowiki>{{Hatnote2|file1=Glypht.png|file2=Cosmoria Symbol.png|color=cdcdcd|primary=Glypht Glypht glypht|secondary=[[Main Page|Amarant]]}}</nowiki>}}
</noinclude>

Latest revision as of 17:41, January 13, 2025

Redirect to: