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 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="hatnote2"> |
<div class="hatnote2"> |
||
<div>[[File:{{{file1}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</div> |
<div>[[File:{{{file1}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</div> |
||
| Line 7: | Line 7: | ||
<div>[[File:{{{file2}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</div> |
<div>[[File:{{{file2}}}|{{{file_size|80px}}}|class=notpageimage|link=]]</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="Hatnote2/styles.css"/></includeonly><!-- |
<templatestyles src="Hatnote2/styles.css"/></includeonly><!-- |
||
| Line 71: | Line 71: | ||
"label": "Remove lines", |
"label": "Remove lines", |
||
"description": "If the lines at the top and bottom should be removed", |
"description": "If the lines at the top and bottom should be removed", |
||
"type": "boolean", |
|||
"default": "false" |
|||
}, |
|||
"remove_hr_top": { |
|||
"label": "Remove top line", |
|||
"description": "If the line at the top should be removed", |
|||
"type": "boolean", |
|||
"default": "false" |
|||
}, |
|||
"remove_hr_bottom": { |
|||
"label": "Remove bottom line", |
|||
"description": "If the line at the bottom should be removed", |
|||
"type": "boolean", |
"type": "boolean", |
||
"default": "false" |
"default": "false" |
||
| Line 86: | Line 98: | ||
"primary", |
"primary", |
||
"secondary", |
"secondary", |
||
"remove_hr" |
"remove_hr", |
||
"remove_hr_top", |
|||
"remove_hr_bottom" |
|||
] |
] |
||
} |
} |
||
| Line 98: | Line 112: | ||
|primary=Glypht Glypht glypht |
|primary=Glypht Glypht glypht |
||
|secondary=[[Main Page|Amarant]] |
|secondary=[[Main Page|Amarant]] |
||
|remove_hr_bottom=y |
|||
}} |
}} |
||
| Line 106: | Line 121: | ||
|primary=Glypht Glypht glypht |
|primary=Glypht Glypht glypht |
||
|secondary=[[Main Page|Amarant]] |
|secondary=[[Main Page|Amarant]] |
||
|remove_hr_bottom=y |
|||
}}</nowiki></pre> |
}}</nowiki></pre> |
||
Revision as of 05:22, December 9, 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 | required |
| Right file | file2 | The file to put on the right as a thumbnail
| File | required |
| File size | file_size | The files' 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 |
| 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 |
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]]
|remove_hr_bottom=y
}}