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
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Template:Hatnote]]
<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}}}|}}">
{{yesno|{{yesno-no|{{{remove_hr|}}}}}|no=<hr/>|yes=}}
<div class="hatnote2">
<div>[[File:{{{file1}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</div>
<div><span style="{{#if:{{{primary_gradient|}}}|color:transparent;background-image:linear-gradient({{{primary_gradient}}});-webkit-background-clip:text;background-clip:text|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}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</div>
</div>
{{yesno|{{yesno-no|{{{remove_hr|}}}}}|no=<hr/>|yes=}}
</div>
<templatestyles src="Hatnote2/styles.css"/></includeonly><!--
--><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",
"required": true
},
"file2": {
"label": "Right file",
"description": "The file to put on the right as a thumbnail",
"example": "Glypht.png",
"type": "wiki-file-name",
"default": "Unknown.png",
"required": true
},
"file_size": {
"label": "File size",
"description": "The files' thumbnail size",
"example": "120px",
"type": "string",
"default": "80px"
},
"color": {
"label": "Color",
"description": "The color of the horizontal rules, the primary text, and links inside the header",
"example": "ababab",
"type": "string",
"suggested": true
},
"primary_gradient": {
"label": "Primary gradient",
"description": "The CSS linear-gradient of the primary text",
"example": "#ff0072, #df0049",
"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
},
"remove_hr": {
"label": "Remove lines",
"description": "If the lines at the top and bottom should be removed",
"type": "boolean",
"default": "false"
}
},
"description": "Adds a center-aligned hatnote with two images on each side",
"format": "block",
"paramOrder": [
"file1",
"file2",
"file_size",
"color",
"primary_gradient",
"font",
"primary",
"secondary",
"remove_hr"
]
}
</templatedata>

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

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

== See also ==
* [[Template:Hatnote]]
</noinclude>

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

Redirect to: