Template:Hatnote: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
<hr/> |
<hr/> |
||
<div class="hatnote"> |
<div class="hatnote"> |
||
<div>[[File:{{{file|Unknown.png}}}|80px|class=notpageimage|link=]]</div> |
<div>[[File:{{{file|Unknown.png}}}|{{{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/><!-- |
<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> |
--><i>{{{secondary}}}</i></div> |
||
| Line 14: | Line 14: | ||
"file": { |
"file": { |
||
"label": "File", |
"label": "File", |
||
"description": "The file to put on the left as a |
"description": "The file to put on the left as a thumbnail", |
||
"example": "Glypht.png", |
"example": "Glypht.png", |
||
"type": "wiki-file-name", |
"type": "wiki-file-name", |
||
"default": "Unknown.png", |
"default": "Unknown.png", |
||
"suggested": true |
"suggested": true |
||
}, |
|||
"file_size": { |
|||
"label": "File size", |
|||
"description": "The file thumbnail's size", |
|||
"example": "120px", |
|||
"type": "string", |
|||
"default": "80px" |
|||
}, |
}, |
||
"color": { |
"color": { |
||
| Line 57: | Line 64: | ||
"paramOrder": [ |
"paramOrder": [ |
||
"file", |
"file", |
||
"file_size", |
|||
"color", |
"color", |
||
"primary_gradient", |
"primary_gradient", |
||
Revision as of 17:50, December 5, 2024
Adds a left-aligned hatnote with one image on the left side
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| File | file | The file to put on the left as a thumbnail
| File | suggested |
| File size | file_size | The file thumbnail's size
| String | optional |
| Color | color | The color of the horizontal rules, the primary text, and links inside the header
| String | suggested |
| Primary gradient | primary_gradient | The CSS linear-gradient of the primary text
| String | optional |
| Font | font | The font to use for text inside the header
| String | optional |
| Primary text | primary | The text displayed at the top (on the first line) | String | required |
| Secondary text | secondary | The text displayed at the bottom (on the second line) | String | required |
Example
Page Template:Hatnote/styles.css has no content.
{{Hatnote
|file=Glypht.png
|color=ababab
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
}}