Template:Hatnote: Difference between revisions
More actions
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| Line 31: | Line 31: | ||
}, |
}, |
||
"color": { |
"color": { |
||
"label": " |
"label": "Color", |
||
"description": "The color of the horizontal rules, the primary text, and links inside the header", |
|||
"example": "ababab", |
|||
"type": "string" |
|||
}, |
}, |
||
"font": { |
"font": { |
||
" |
"label": "Font", |
||
"description": "The font to use for text inside the header", |
|||
| ⚫ | |||
"example": "Varela Round", |
|||
"type": "string", |
|||
"default": "Cinzel" |
|||
}, |
|||
"primary": { |
|||
"label": "Primary text", |
|||
"description": "The text displayed at the top (on the first line)", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
| ⚫ | |||
"label": "Secondary text", |
|||
"description": "The text displayed at the bottom (on the second line)", |
|||
"type": "string", |
|||
"required": true |
|||
} |
|||
}, |
}, |
||
"description": "Adds a [[wikipedia:Wikipedia:Hatnote|]]", |
"description": "Adds a [[wikipedia:Wikipedia:Hatnote|]]", |
||
"format": "block" |
"format": "block", |
||
"paramOrder": [ |
|||
"file", |
|||
"color", |
|||
"font", |
|||
"primary", |
|||
"secondary" |
|||
] |
|||
} |
} |
||
</templatedata> |
</templatedata> |
||
Revision as of 00:50, December 3, 2024
Page Template:Hatnote/styles.css has no content.
Example
Page Template:Hatnote/styles.css has no content.
Adds a [[wikipedia:Wikipedia:Hatnote|]]
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| File | file | The file to put on the left as a 80px thumbnail
| File | suggested |
| Color | color | The color of the horizontal rules, the primary text, and links inside the header
| 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 |
{{Hatnote|file=Glypht.png|color=ababab|primary=Glypht Glypht glypht|secondary=[[Main Page|Amarant]]}}
Adds a [[wikipedia:Wikipedia:Hatnote|]]
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| File | file | The file to put on the left as a 80px thumbnail
| File | suggested |
| Color | color | The color of the horizontal rules, the primary text, and links inside the header
| 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 |