Template:Notice: Difference between revisions
Template page
More actions
Fulfilling edit request by Waddie96. implement with the help of {{mbox}} template |
|||
| Line 1: | Line 1: | ||
{ | {| class="{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}|{{#ifeq:{{{small|}}}|yes|small|standard}}-talk}} messagebox" style="direction:{{#dir:{{{lang|}}}}}; {{{style|}}}" | ||
| {{#if:{{{heading|{{{header|}}}}}}|rowspan="2"}} align="center" style="width:53px;"|[[File:{{{image|Info {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||}}non-talk.svg}}}|{{{size|{{#ifeq:{{{small|}}}|yes|25px|53px}}}}}|link=|Notice]] | |||
{{ | |||
| | |||
{{#if:{{{heading|{{{header|}}}}}}| | {{#if:{{{heading|{{{header|}}}}}}| | ||
<!-- -->! {{{heading|Notice: {{{header}}}}}} | <!-- -->! {{{heading|Notice: {{{header}}}}}} | ||
<!-- -->{{!}}- | <!-- -->{{!}}- | ||
}} | }} | ||
{{{1}}} | |{{{1}}} | ||
|}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 02:53, 21 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.