Template:Notify/doc: Difference between revisions
Jump to navigation
Jump to search
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Doc/subpage}} | {{Doc/subpage}} | ||
Different types of notifications in one template. Created as a basis for other templates. | Different types of notifications in one template. Created as a basis for other templates. | ||
== Usage == | |||
{{Template usage example|column}} | |||
== Copy and Paste == | == Copy and Paste == | ||
| Line 55: | Line 58: | ||
|- | |- | ||
| align="center" | {{Code|style=2| {{Param|color}} }} | | align="center" | {{Code|style=2| {{Param|color}} }} | ||
| style="padding:8px" | Notification color (RGB only).<br> RGBA may also | | style="padding:8px" | Notification color (RGB only).<br> RGBA may also work. | ||
| {{CodeBlock|margin = 5px|<nowiki>| color = 240,211,0</nowiki>}} | | {{CodeBlock|margin = 5px|<nowiki>| color = 240,211,0</nowiki>}} | ||
| style="padding:8px" | {{Notify|mode = inline|size=10px|img = Important template.png|type = Important|text = Hello, World!|color = 240,211,0}} | | style="padding:8px" | {{Notify|mode = inline|size=10px|img = Important template.png|type = Important|text = Hello, World!|color = 240,211,0}} | ||
| Line 90: | Line 93: | ||
* {{Code|[[/inline/doc]]}} - Documentation for inline note templates. | * {{Code|[[/inline/doc]]}} - Documentation for inline note templates. | ||
== See | == See also == | ||
* [[:Category:Modern Templates]] | * [[:Category:Modern Templates]] | ||
* [[:Category:Inline note templates]] | * [[:Category:Inline note templates]] | ||
Latest revision as of 10:32, 5 October 2025
This is a documentation subpage for Template:Notify.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Different types of notifications in one template. Created as a basis for other templates.
Usage
This template is usually written in a column. To use it, insert {{Notify}} on the desired page and specify the parameters under the template name in the following format:
Copy and Paste
Parameters and Examples
| Parameter | Description | Example | Preview |
|---|---|---|---|
{{{1}}} or {{{text}}}
|
Your text.
|
Hello, World! Hello, World!
| |
{{{mode}}}
|
Switches the template modes. Avaliable modes: inline.
|
Hello, World!
|
Inline mode
| Parameter | Description | Example | Preview |
|---|---|---|---|
{{{img}}}
|
Notification icon. | Hello, World!
| |
{{{size}}}
|
Notification icon size (Highly recommended to specify since most icons support high DPI.) | ||
{{{type}}}
|
Notification type. | ||
{{{color}}}
|
Notification color (RGB only). RGBA may also work. |
Offset
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Custom styles
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Important:Hello, World!
Special Subpages
/inline/doc- Documentation for inline note templates.