Template:Notify/doc: Difference between revisions
Jump to navigation
Jump to search
m (→Shared) |
m (→Inline mode) |
||
Line 38: | Line 38: | ||
|- | |- | ||
| align="center" | {{Code|style=2| {{Param|img}} }} | | align="center" | {{Code|style=2| {{Param|img}} }} | ||
| Notification icon. | | style="padding:8px" | Notification icon. | ||
| {{CodeBlock|margin = 5px|<nowiki>| img = Note.png</nowiki>}} | | {{CodeBlock|margin = 5px|<nowiki>| img = Note.png</nowiki>}} | ||
| style="padding:5px" | {{Notify|mode = inline|img = Note.png|text = Hello, World!}} | | style="padding:5px" | {{Notify|mode = inline|img = Note.png|text = Hello, World!}} | ||
|- | |- | ||
| align="center" | {{Code|style=2| {{Param|type}} }} | | align="center" | {{Code|style=2| {{Param|type}} }} | ||
| Notification type. | | style="padding:8px" | Notification type. | ||
| {{CodeBlock|margin = 5px|<nowiki>| type = Warning</nowiki>}} | | {{CodeBlock|margin = 5px|<nowiki>| type = Warning</nowiki>}} | ||
| style="padding:5px" | {{Notify|mode = inline|img = Note.png|type = Warning|text = Hello, World!}} | | style="padding:5px" | {{Notify|mode = inline|img = Note.png|type = Warning|text = Hello, World!}} | ||
|- | |- | ||
| align="center" | {{Code|style=2| {{Param|color}} }} | | align="center" | {{Code|style=2| {{Param|color}} }} | ||
| Notification color (RGB only). | | style="padding:8px" | Notification color (RGB only). | ||
| {{CodeBlock|margin = 5px|<nowiki>| color = 240,120,80</nowiki>}} | | {{CodeBlock|margin = 5px|<nowiki>| color = 240,120,80</nowiki>}} | ||
| style="padding:5px" | {{Notify|mode = inline|img = Note.png|type = Warning|text = Hello, World!|color = 240,120,80}} | | style="padding:5px" | {{Notify|mode = inline|img = Note.png|type = Warning|text = Hello, World!|color = 240,120,80}} |
Revision as of 00:05, 25 April 2023

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.
Copy and Paste
Parameters and Example
Parameter | Description | Example | Preview |
---|---|---|---|
{{{1}}} or {{{text}}} | Your text. | Hello, World! Hello, World!
| |
{{{mode}}} | Switches the template modes. Avaliable modes:
|
Hello, World!
|
Inline mode
Parameter | Description | Example | Preview |
---|---|---|---|
{{{img}}} | Notification icon. | Hello, World!
| |
{{{type}}} | Notification type. | ![]() | |
{{{color}}} | Notification color (RGB only). | ![]() |
Special Subpages
- /inline/doc - Documentation for inline note templates.