Template:Notice: Difference between revisions
Template page
More actions
I modified he code as an experiment in order to have this template correctly on talk pages since an image does not exist. Template was copied from enwiki without the image. Undo if image arrives. |
Fulfilling edit request by Waddie96. use {{mbox}} template |
||
| (26 intermediate revisions by 13 users not shown) | |||
| Line 1: | Line 1: | ||
{| | {{mbox|type=notice|small={{{small|}}}<!-- | ||
-->|style=direction:{{#dir:{{{lang|}}}}};{{#if:{{{style|}}}|{{{style}}}}}<!-- | |||
{{#if:{{{ | -->|image={{#if:{{{image|}}}|{{!((}}File:{{{image}}}{{!}}{{{size|{{#if:{{{small|}}}|25px|40px}}}}}{{!}}link={{#if:{{{alt|}}}|{{!}}alt={{{alt}}}}}{{!}}class=noviewer{{))!}}}}<!-- | ||
-->|text={{#if:{{{heading|{{{header|}}}}}}|<div align="center">'''{{{heading|Notice: {{{header}}}}}}'''</div><br/>}}{{{1}}}}}<noinclude> | |||
<!-- -->{{ | {{documentation}} | ||
}} | |||
|align=" | |||
</noinclude> | </noinclude> | ||
Latest revision as of 03:03, 23 August 2025
This documentation is transcluded from Template:Notice/doc.
This template should be used for important comments about a page that cannot be shown using a more specific template.
Usage
{{Notice |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | content | Content of the message box | empty | required |
small | small version | Set to “yes” to show a smaller version; only works in talk namespaces | no | optional |
header | header | Additional notice header; it’s prefixed with “Notice:” | empty | optional |
heading | full header | Additional notice header, shown without the “Notice:” prefix | empty | optional |
image | icon image | Name of the icon image, without namespace | Info non-talk.svg | optional |
lang | language | Language of the notice text, used to set correct directionality | empty | optional |
style | extra CSS | Additional CSS styles for the outer box | empty | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Examples
{{Notice|Text with other parameters.|header=Example header|image=Example.svg|style=background-color:lightgreen; font-style:italic;}}
renders as:
{{Notice|Simply text.}}
renders as:
See also
Localization
This template is not intended to be localized.