Template:Notify
来自Valve Developer Community
跳转到导航
跳转到搜索
This template is used on many pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.Consider discussing changes on the talk page before implementing them.
文档页面 Template:Notify/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
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:
{{Notify
| parameter 1 = value
| parameter 2 = value
}}
Copy and Paste
{{Notify
| mode = inline
| size = 10px
| 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!
|
{{{size}}}
|
Notification icon size (Highly recommended to specify since most icons support high DPI.) | | size = 16px |
|
{{{type}}}
|
Notification type. | | type = Warning |
|
{{{color}}}
|
Notification color (RGB only). RGBA may also work. |
| color = 240,211,0 |
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.
See also