Jump to content

Template:Notice: Difference between revisions

From MineMania Wiki
Created page with "<includeonly> <div class="cw-messagebox cw-messagebox-notice"> <div class="cw-messagebox-icon"> {{#if:{{{image|}}} | [[File:{{{image}}}|32px|link=|alt=]] | ℹ️ }} </div> <div class="cw-messagebox-content"> '''{{{title|Notice}}}:''' {{{body|}}} </div> </div> </includeonly><noinclude> == Usage == <pre> {{Notice | title = Notice | body = This page is a draft and may be updated. | image = }} </pre> <templatedata> { "description": "Displays a notice message box with a..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<div class="cw-messagebox-icon">
<div class="cw-messagebox-icon">
{{#if:{{{image|}}}
{{#if:{{{image|}}}
| [[File:{{{image}}}|32px|link=|alt=]]
| [[File:{{{image}}}|32px|link=|alt=]]
| ℹ️
| <span class="cw-messagebox-default-icon">ℹ️</span>
}}
}}
</div>
</div>
Line 46: Line 46:
"example": "Information-icon.png",
"example": "Information-icon.png",
"type": "wiki-file-name",
"type": "wiki-file-name",
            "suggested": true
"suggested": true
}
}
}
}

Latest revision as of 16:55, 4 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