Template:Notice: Difference between revisions
Template page
More actions
TheMysterys (talk | contribs) Created a notice template |
Added max width functionality |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <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=]] | ||
</div> | </div> | ||
<p style="font-weight: 600;">{{{ | <p style="font-weight: 600;">{{{1}}}</p> | ||
</div></ | </div></onlyinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "1": { | ||
"label": " | "label": "notice", | ||
"description": "The notice to be displayed", | "description": "The notice to be displayed", | ||
"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 |