Template:Notice: Difference between revisions
Template page
More actions
mNo edit summary |
Added max width functionality |
||
Line 1: | Line 1: | ||
<onlyinclude><div style="border: solid 1px #ff5454; border-radius: 16px; padding: 8px; display: flex; align-items: center; background: #ff333329;"> | <onlyinclude><div style="border: solid 1px #ff5454; border-radius: 16px; padding: 8px; display: flex; align-items: center; background: #ff333329; {{#if: {{{max_width|}}}|max-width: {{{max_width}}};|}}"> | ||
<div style="padding: 0px 8px 0px 8px"> | <div style="padding: 0px 8px 0px 8px"> | ||
[[File:warning_red.png|link=]] | [[File:warning_red.png|link=]] | ||
Line 14: | Line 14: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"2": { | |||
"label": "max_width", | |||
"description": "The max width of the notice", | |||
"type": "number", | |||
"required": false | |||
} | } | ||
}, | }, |
Latest revision as of 09:12, 17 November 2024
{{{1}}}
Adds a notice to the top of the page
Parameter | Description | Type | Status | |
---|---|---|---|---|
notice | 1 | The notice to be displayed | String | required |
max_width | 2 | The max width of the notice | Number | optional |