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 1: | Line 1: | ||
<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}}}|}}"> |
<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=}} |
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_top|}}}}}}}}|no=<hr/>|yes=}} |
||
<div class="hatnote"> |
<div class="hatnote"> |
||
<div>[[File:{{{file}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</div> |
<div>[[File:{{{file}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</div> |
||
| Line 6: | Line 6: | ||
--><i>{{{secondary}}}</i></div> |
--><i>{{{secondary}}}</i></div> |
||
</div> |
</div> |
||
{{yesno|{{yesno-no|{{{remove_hr|}}}}}|no=<hr/>|yes=}} |
{{yesno|{{yesno-no|{{{remove_hr|{{{remove_hr_bottom|}}}}}}}}|no=<hr/>|yes=}} |
||
</div> |
</div> |
||
<templatestyles src="Hatnote/styles.css"/></includeonly><!-- |
<templatestyles src="Hatnote/styles.css"/></includeonly><!-- |
||
Revision as of 05:20, December 9, 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 | required |
| File size | file_size | The file's thumbnail 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 |
| Remove lines | remove_hr | If the lines at the top and bottom should be removed
| Boolean | optional |
Example
Page Template:Hatnote/styles.css has no content.
{{Hatnote
|file=Glypht.png
|color=ababab
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
}}