Template:Hatnote2: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
<div class="hatnote2"> |
<div class="hatnote2"> |
||
<div>[[File:{{{file1|Unknown.png}}}|80px|class=notpageimage|link=]]</div> |
<div>[[File:{{{file1|Unknown.png}}}|80px|class=notpageimage|link=]]</div> |
||
<div><span style="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> |
||
<div>[[File:{{{file2|Unknown.png}}}|80px|class=notpageimage|link=]]</div> |
<div>[[File:{{{file2|Unknown.png}}}|80px|class=notpageimage|link=]]</div> |
||
| Line 33: | Line 33: | ||
"description": "The color of the horizontal rules, the primary text, and links inside the header", |
"description": "The color of the horizontal rules, the primary text, and links inside the header", |
||
"example": "ababab", |
"example": "ababab", |
||
"type": "string" |
|||
}, |
|||
"primary_gradient": { |
|||
"label": "Primary gradient", |
|||
"description": "The CSS linear-gradient of the primary text", |
|||
"example": "#ff0072, #df0049", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
| Line 61: | Line 67: | ||
"file2", |
"file2", |
||
"color", |
"color", |
||
"primary_gradient", |
|||
"font", |
"font", |
||
"primary", |
"primary", |
||
Revision as of 17:38, December 5, 2024
Adds a center-aligned hatnote with two images on each side
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Left file | file1 | The file to put on the left as a 80px thumbnail
| File | suggested |
| Right file | file2 | The file to put on the right as a 80px thumbnail
| File | suggested |
| Color | color | The color of the horizontal rules, the primary text, and links inside the header
| String | optional |
| 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:Hatnote2/styles.css has no content.
{{Hatnote2
|file1=Glypht.png
|file2=Cosmoria Symbol.png
|color=cdcdcd
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
}}