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 2: | Line 2: | ||
{ |
{ |
||
"params": { |
"params": { |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
"file2": { |
"file2": { |
||
"label": "Right image", |
"label": "Right image", |
||
| Line 30: | Line 23: | ||
}, |
}, |
||
"primary_gradient": { |
"primary_gradient": { |
||
"label": "Primary gradient", |
"label": "Primary text gradient", |
||
"description": "The CSS linear-gradient of the primary text", |
"description": "The CSS linear-gradient of the primary text", |
||
"example": "to bottom, #ffffff, #36454f", |
"example": "to bottom, #ffffff, #36454f", |
||
| Line 36: | Line 29: | ||
}, |
}, |
||
"font": { |
"font": { |
||
"label": " |
"label": "Primary text font", |
||
"description": "The font to use for |
"description": "The font to use for the primary text", |
||
"example": "Varela Round", |
"example": "Varela Round", |
||
"type": "string", |
"type": "string", |
||
| Line 84: | Line 77: | ||
"type": "boolean", |
"type": "boolean", |
||
"default": "true" |
"default": "true" |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}, |
|||
"primary_font_size": { |
|||
"label": "Primary text font size", |
|||
"description": "The size of the primary text", |
|||
"example": "x-large", |
|||
"type": "string", |
|||
"default": "xxx-large" |
|||
} |
} |
||
}, |
}, |
||
| Line 89: | Line 96: | ||
"format": "block", |
"format": "block", |
||
"paramOrder": [ |
"paramOrder": [ |
||
" |
"file1", |
||
"file2", |
"file2", |
||
"file_size", |
"file_size", |
||
| Line 95: | Line 102: | ||
"color_applies_to_links", |
"color_applies_to_links", |
||
"primary_gradient", |
"primary_gradient", |
||
| ⚫ | |||
"primary", |
"primary", |
||
| ⚫ | |||
"primary_font_size", |
|||
"secondary", |
"secondary", |
||
"italic_secondary", |
"italic_secondary", |
||
Revision as of 18:49, January 13, 2025
Adds a left-aligned hatnote with one optional image on the left side
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Left image | file1 | The file to put on the left as a thumbnail (80px or custom size)
| File | suggested |
| Right image | file2 | The file to put on the right as a thumbnail (80px or custom size)
| File | optional |
| File size | file_size | The size of the images (only works with two images)
| 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 text gradient | primary_gradient | The CSS linear-gradient of the primary text
| String | optional |
| Primary text | primary | The text displayed at the top (on the first line) | String | required |
| Primary text font | font | The font to use for the primary text
| String | optional |
| Primary text font size | primary_font_size | The size of the primary text
| String | optional |
| 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
{{Hatnote
|file=Glypht.png
|color=#ababab
|primary_gradient=to right, #ababab, #ffffff
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
|italic_secondary=yes
}}
{{Hatnote
|color=red
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
}}
{{Hatnote
|file1=Glypht.png
|file2=Cosmoria Symbol.png
|color=#cdcdcd
|primary=Glypht Glypht glypht
|secondary=[[Main Page|Amarant]]
}}