Template:Notice: Difference between revisions
Template page
More actions
m use #dir parser function |
Fulfilling edit request by Waddie96. implement with the help of {{mbox}} template |
||
| Line 1: | Line 1: | ||
{| | {{mbox|type=notice|small={{{small}}} | ||
| {{#if:{{{heading|{{{header|}}}}}}| | |style="direction:{{#dir:{{{lang|}}}}}; {{{style|}}}" | ||
{{#if:{{{image|}}}|[[File:{{{image}}}|{{{size|{{#ifeq:{{{small|}}}|yes|25px|40px}}}}}|link={{#if:{{{alt|}}}|{{!}}alt={{{alt}}}|}}]]|}} | |||
|text={{#if:{{{heading|{{{header|}}}}}}|<div align="center" style="width:40px;">{{{heading|{{{header}}}}}}</div><br/>|}} | |||
{{#if:{{{heading|{{{header|}}}}}}| | {{#if:{{{heading|{{{header|}}}}}}| | ||
<!-- -->! {{{heading|Notice: {{{header}}}}}} | <!-- -->! {{{heading|Notice: {{{header}}}}}} | ||
<!-- -->{{!}}- | <!-- -->{{!}}- | ||
}} | }} | ||
{{{1}}} | |||
}}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 02:43, 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.