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
Created a notice template
 
Added max width functionality
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><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=]]   
</div>
</div>
<p style="font-weight: 600;">{{{notice}}}.</p>
<p style="font-weight: 600;">{{{1}}}</p>
</div></includeonly>
</div></onlyinclude>


<templatedata>
<templatedata>
{
{
"params": {
"params": {
"notice": {
"1": {
"label": "Notice",
"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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
notice1

The notice to be displayed

Stringrequired
max_width2

The max width of the notice

Numberoptional