Template:Notice/doc: Difference between revisions
Template page
More actions
mh:wikigenius>Parvej Husen Talukder Created page with "<noinclude>{{Documentation subpage}}</noinclude> == Description == This template is used as a base for notice templates. == Usage == Type {{tlx|Notice|2=parameter=value|3=...}} on a page. This template can be used standalone, or as a base for other notice templates. '''Note:''' This template does '''not''' show up on mobile. === Syntax === <pre> {{Notice |image = |border = |style = |type = |info = |id = }} </pre> == Parameters == ; Id (<code>id</code>) : Custo..." |
mh:wikigenius>Parvej Husen Talukder m Protected "Template:Notice/doc" ([Edit=Allow only administrators] (indefinite)) |
(No difference)
| |
Latest revision as of 14:15, 26 July 2023
| Error creating thumbnail: | Template:Strong for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
Description
This template is used as a base for notice templates.
Usage
Type {{Notice|parameter=value|...}} on a page. This template can be used standalone, or as a base for other notice templates.
Note: This template does not show up on mobile.
Syntax
{{Notice
|image =
|border =
|style =
|type =
|info =
|id =
}}
Parameters
- Id (
id) - Custom HTML Id, used for styling in CSS.
- Image (
image) - A custom image added at the left side. See Help:Adding images for additional information. (default: ℹ️)
- Header (
type) - The main header for the notice template. Shows up in bold. (default: Header)
- Border color (
border) - The color of the separator between the Header and the body text. Has several types (type in lowercase):
- Red
- Orange
- Yellow
- Green
- Blue
- Purple
- Grey (Default)
- Text (
info) - The main text of the template. (default: Notice text)
- CSS Style (
style) - Custom CSS styles for the base template container.
Notice borders
| Code | Result |
|---|---|
{{Notice|border=red}}
|
ℹ️️ Header
Notice text
|
{{Notice|border=orange}}
|
ℹ️️ Header
Notice text
|
{{Notice|border=yellow}}
|
ℹ️️ Header
Notice text
|
{{Notice|border=green}}
|
ℹ️️ Header
Notice text
|
{{Notice|border=blue}}
|
ℹ️️ Header
Notice text
|
{{Notice|border=grey}}
|
ℹ️️ Header
Notice text
|
{{Notice}} (Default: Grey)
|
ℹ️️ Header
Notice text
|
Examples
| Code | Result |
|---|---|
{{Notice|type=Header text}}
|
ℹ️️ Header text
Notice text
|
{{Notice|type=Header text here|info=Body text here}}
|
ℹ️️ Header text here
Body text here
|
{{Notice|type=Header text here|info=Body text here|border=red}}
|
ℹ️️ Header text here
Body text here
|
{{Notice|type=Header text here|info=Body text here|border=yellow|image=[[File:Site-logo.png|40px]]}}
|
Header text here
Body text here
|
{{Notice|type=Header text here|info=Body text here|border=green|image=[[File:Site-logo.png|40px]]|style=box-shadow: 5px 10px 8px #888888; border:1px solid #888;}}
|
Header text here
Body text here
|
See also
{{Notice/small}}, the notice template without the heading parameter, and is more suitable for small messages.{{Mbox}}