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 30: | Line 30: | ||
"label": "Color", |
"label": "Color", |
||
"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", |
"type": "string", |
||
"suggested": true |
"suggested": true |
||
| Line 98: | Line 98: | ||
{{Hatnote |
{{Hatnote |
||
|file=Glypht.png |
|file=Glypht.png |
||
|color=ababab |
|color=#ababab |
||
|primary=Glypht Glypht glypht |
|primary=Glypht Glypht glypht |
||
|secondary=[[Main Page|Amarant]] |
|secondary=[[Main Page|Amarant]] |
||
| Line 106: | Line 106: | ||
<pre>{{Hatnote |
<pre>{{Hatnote |
||
|file=Glypht.png |
|file=Glypht.png |
||
|color=ababab |
|color=#ababab |
||
|primary=Glypht Glypht glypht |
|primary=Glypht Glypht glypht |
||
|secondary=[[Main Page|Amarant]] |
|secondary=[[Main Page|Amarant]] |
||
Revision as of 03:25, January 9, 2025
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 |
| 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:Hatnote/styles.css has no content.
{{Hatnote
|file=Glypht.png
|color=#ababab
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
|remove_hr_top=true
}}