Jump to content

Template:Notice: Difference between revisions

From Computerwhz Wiki
Created page with "<includeonly> <div class="cw-messagebox cw-messagebox-notice" style="border:1px solid #a2a9b1; background:#f8f9fa; margin:1em 0; padding:0.75em 1em; display:flex; align-items:flex-start; gap:0.8em;"> <div style="font-size:26px; line-height:1;">ℹ️</div> <div> '''Notice:''' {{{1|}}} </div> </div> </includeonly><noinclude> == Usage == <pre> {{Notice|This page is a draft and may be updated.}} </pre> </noinclude>"
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="cw-messagebox cw-messagebox-notice" style="border:1px solid #a2a9b1; background:#f8f9fa; margin:1em 0; padding:0.75em 1em; display:flex; align-items:flex-start; gap:0.8em;">
<div class="cw-messagebox cw-messagebox-notice">
<div style="font-size:26px; line-height:1;">ℹ️</div>
<div class="cw-messagebox-icon">
<div>
{{#if:{{{image|}}}
'''Notice:''' {{{1|}}}
| [[File:{{{image}}}|32px|link=|alt=]]
| ℹ️
}}
</div>
<div class="cw-messagebox-content">
'''{{{title|Notice}}}:''' {{{body|}}}
</div>
</div>
</div>
</div>
Line 9: Line 14:
== Usage ==
== Usage ==
<pre>
<pre>
{{Notice|This page is a draft and may be updated.}}
{{Notice
| title = Notice
| body = This page is a draft and may be updated.
| image =
}}
</pre>
</pre>
<templatedata>
{
"description": "Displays a notice message box with a title, body text, and optional image.",
"params": {
"title": {
"label": "Title",
"description": "The bold text shown before the colon.",
"example": "Notice",
"type": "string",
"default": "Notice",
"suggested": true
},
"body": {
"label": "Body text",
"description": "The main notice message.",
"example": "This page is a draft and may be updated.",
"type": "content",
"required": true,
"suggested": true
},
"image": {
"label": "Image",
"description": "Optional image filename without the File: prefix. Leave blank to use the default information icon.",
"example": "Information-icon.png",
"type": "wiki-file-name",
            "suggested": true
}
}
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 16:30, 1 June 2026

Usage

{{Notice
| title = Notice
| body = This page is a draft and may be updated.
| image =
}}

Displays a notice message box with a title, body text, and optional image.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

The bold text shown before the colon.

Default
Notice
Example
Notice
Stringsuggested
Body textbody

The main notice message.

Example
This page is a draft and may be updated.
Contentrequired
Imageimage

Optional image filename without the File: prefix. Leave blank to use the default information icon.

Example
Information-icon.png
Filesuggested