Template:Notify/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 10: Line 10:
}}</nowiki>}}
}}</nowiki>}}


== Parameters and Example ==
== Parameters and Examples ==
=== Shared ===
=== Shared ===
{| class="standard-table" width="100%"
{| class="standard-table" width="100%"

Revision as of 00:37, 25 April 2023

Edit-copy.png
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.

Different types of notifications in one template. Created as a basis for other templates.

Copy and Paste

{{Notify | mode = inline | img = | text = | color = }}

Parameters and Examples

Shared

Parameter Description Example Preview
{{{1}}} or {{{text}}} Your text.
| Hello, World!
| text = Hello, World!
Hello, World!
Hello, World!
{{{mode}}} Switches the template modes. Avaliable modes: inline.
| mode = inline
Hello, World!

Inline mode

Parameter Description Example Preview
{{{img}}} Notification icon.
| img = Note.png
Hello, World!
{{{type}}} Notification type.
| type = Warning
Important template.pngImportant:Hello, World!
{{{color}}} Notification color (RGB only).
| color = 240,211,0
Important template.pngImportant:Hello, World!

Special Subpages

See Also