Template:Notify/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 55: Line 55:
== Special Subpages ==
== Special Subpages ==
* {{Code|[[/inline/doc]]}} - Documentation for inline note templates.
* {{Code|[[/inline/doc]]}} - Documentation for inline note templates.
== Tests ==
{{Notify| '''Test:''' {{Lorem ipsum}} }}
I think Windows 8 is a catastrophe for everyone in the PC space.
{{Notify
| mode = inline
| type = Test
| color = 180,180,140
}}
[[Gabe Newell]].
{{Notify
| mode = inline
| type = Test
| text = {{Lorem ipsum}}
| color = 240,120,80
}}
{{Notify
| mode = inline
| img = Note.png
| type = Test
| text = {{Lorem ipsum}}
| color = 140,180,270
}}
<hr>
<span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> {{ModernNote}} {{ModernWarning}} <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> {{ModernTip|Hi}} <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span> <span style="font-family:Times New Roman; color:#707070">THE END IS NEVER THE END IS NEVER THE END IS <span style="color:#FFF">LOADING</span> NEVER</span>
<hr>
: {{ModernNote|Hello, World!}}
: {{ModernNote}} Hello, World!
: {{Note|Hello, World!}}
<hr>
[[File:Team Fortress Wiki Logo.png|256px|right]]
{{ModernWorkaround|
* {{hl|4}}
* {{cg|4}}
* {{hl2|4}}
* ...
}}
{{ModernNote|
{{Lorem ipsum}}
}}
{{ModernImportant|
{{Lorem ipsum}}
}}
{{Bug|
* [[Gabe Newell]]
* Mike Harrington
}}


== See Also ==
== See Also ==
* [[:Category:Modern Templates]]
* [[:Category:Modern Templates]]
* [[:Category:Inline note templates]]
* [[:Category:Inline note templates]]

Revision as of 23:59, 24 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 Example

Shared

Parameter Description Example Preview
{{{1}}} or {{{text}}} Your text. Template:ModernWarning
| 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
Note.pngWarning:Hello, World!
{{{color}}} Notification color (RGB only).
| color = 240,120,80
Note.pngWarning:Hello, World!

Special Subpages

See Also