Template:Hatnote: Difference between revisions
More actions
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<includeonly><div class="template-type-hatnote noexcerpt" role="note" {{#if:{{{color|}}}|style="--color-amaranth-legacy-scope:{{{color}}}{{yesno|{{yesno-yes|{{{color_applies_to_links|}}}}}|yes=<nowiki/>;--color-link:{{{color}}}|no=}}"|}}> |
<includeonly><div class="template-type-hatnote noexcerpt" role="note" {{#if:{{{color|}}}|style="--color-amaranth-legacy-scope:{{{color}}}{{yesno|{{yesno-yes|{{{color_applies_to_links|}}}}}|yes=<nowiki/>;--color-link:{{{color}}}|no=}}"|}}> |
||
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_top|}}}}}}}}|no=<hr/>|yes=}} |
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_top|}}}}}}}}|no=<hr/>|yes=}} |
||
<div class="hatnote"> |
<div class="hatnote{{#if:{{{file2|}}}|<nowiki/>2|}}"> |
||
{{#if:{{{file|}}}|<div>[[File:{{{file}}}|80px|class=notpageimage|link=|alt=]]</div>|}} |
{{#if:{{{file|}}}|<div>[[File:{{{file|{{{file1}}}}}}|80px|class=notpageimage|link=|alt=]]</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|var(--font-family-serif)}}}">{{{primary}}}</span><br/><!-- |
<div><span style="display:inline-block;{{#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|var(--font-family-serif)}}}">{{{primary}}}</span><br/><!-- |
||
-->{{yesno|{{yesno-yes|{{{italic_secondary|}}}}}|yes=''{{{secondary}}}''|no={{{secondary}}}}}</div> |
-->{{yesno|{{yesno-yes|{{{italic_secondary|}}}}}|yes=''{{{secondary}}}''|no={{{secondary}}}}}</div> |
||
{{#if:{{{file2|}}}|<div>[[File:{{{file2}}}|{{{file_size|80px}}}|class=notpageimage|link=|alt=]]</div>}} |
|||
</div> |
</div> |
||
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_bottom|}}}}}}}}|no=<hr/>|yes=}} |
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_bottom|}}}}}}}}|no=<hr/>|yes=}} |
||
Revision as of 17:37, January 13, 2025
Adds a left-aligned hatnote with one optional image on the left side
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| File | file | The file to put on the left as a thumbnail (80px)
| File | suggested |
| Color | color | The color of the horizontal rules, the primary text, and links inside the header
| String | suggested |
| Color applies to links | color_applies_to_links | If the color specified should apply to links as well
| Boolean | 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 |
| Italic secondary text | italic_secondary | If the secondary text should be italicized
| Boolean | optional |
| Remove lines | remove_hr | If the lines at the top and bottom should be removed
| Boolean | optional |
| Remove top line | remove_hr_top | If the line at the top should be removed
| Boolean | optional |
| Remove bottom line | remove_hr_bottom | If the line at the bottom should be removed
| Boolean | optional |
Examples
Complete
{{Hatnote
|file=Glypht.png
|color=#ababab
|primary_gradient=to right, #ababab, #ffffff
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
|italic_secondary=yes
}}
Page Template:Hatnote/styles.css has no content.
Simple
{{Hatnote
|color=red
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
}}
Page Template:Hatnote/styles.css has no content.