Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Notice: Difference between revisions

Template page
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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
notice1

The notice to be displayed

Stringrequired
max_width2

The max width of the notice

Numberoptional