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 80: | Line 80: | ||
"label": "Italic secondary text", |
"label": "Italic secondary text", |
||
"description": "If the secondary text should be italicized", |
"description": "If the secondary text should be italicized", |
||
"type": "boolean", |
|||
"default": "true" |
|||
}, |
|||
"color_applies_to_links": { |
|||
"label": "Color applies to links", |
|||
"description": "If the color specified should apply to links as well", |
|||
"example": "false", |
|||
"type": "boolean", |
"type": "boolean", |
||
"default": "true" |
"default": "true" |
||
| Line 90: | Line 97: | ||
"file_size", |
"file_size", |
||
"color", |
"color", |
||
"color_applies_to_links", |
|||
"primary_gradient", |
"primary_gradient", |
||
"font", |
"font", |
||
Revision as of 17:08, 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
| File | suggested |
| 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 |
| 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 |
| 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 |
| Italic secondary text | italic_secondary | If the secondary text should be italicized
| Boolean | optional |
Examples
{{Hatnote
|file=Glypht.png
|color=#ababab
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
|remove_hr_top=true
}}
Page Template:Hatnote/styles.css has no content.
{{Hatnote
|color=red
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
}}
Page Template:Hatnote/styles.css has no content.