Template:Notify: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Doc}} <includeonly> <onlyinclude>{{#switch:{{{mode|}}} | inline = <{{#if:{{{text|}}}{{{1|}}}|div|span}} style="margin:{{#if:{{{text|{{{1|}}}}}}|.5em 0|0}}; margin-{{text-dir|ltr=left|rtl=right}}:calc(2em * {{#expr:{{{offset|0}}}.}}); display:{{#if:{{{text|{{{1|}}}}}}|flex|inline-flex}}; {{#if:{{{text|{{{1|}}}}}}|gap:4px;|}}{{#if:{{{text|{{{1|}}}}}}|background:linear-gradient(90deg, rgba({{{color|240,240,240}}},.04) 0%, transparent 100%); border-left:2px solid rgb({{{..." |
(No difference)
|
Latest revision as of 05:44, 21 July 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Different types of notifications in one template. Created as a basis for other templates.
Copy and Paste
Parameters and Examples
| Parameter | Description | Example | Preview |
|---|---|---|---|
| {{{1}}} or {{{text}}} | Your text.
File:Icon-Important.pngTemplate:Dictionary/Important/en: Do not use {{{text}}} in other templates that are based on this template. The named parameter breaks the lists.
|
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.) | File:Important template.pngImportant:Hello, World!
| |
| {{{type}}} | Notification type. | File:Important template.pngImportant:Hello, World!
| |
| {{{color}}} | Notification color (RGB only). RGBA may also work. |
File:Important template.pngImportant:Hello, World!
|
Offset
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
Custom styles
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
- File:Important template.pngImportant:Hello, World!
Special Subpages
- /inline/doc - Documentation for inline note templates.
See also