Template:Notify/inline/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
Creates an inline note.


== Parameters and Examples ==
== Parameters and Examples ==
Line 9: Line 10:
|-
|-
| align="center" | {{Code|style=2|{{Param|1}}}} or {{Code|style=2|{{Param|text}}}}
| align="center" | {{Code|style=2|{{Param|1}}}} or {{Code|style=2|{{Param|text}}}}
| style="padding:10px" | The text of your note.
| style="padding:10px" | The text of your inline note.
 
{{ModernNote|The characters {{Code|=}} and {{Code||}} can break this template because they are special characters in template calls.}}


{{ModernTip|Use {{Param|text}} if there is a conflicting {{Code|=}} in your text. You can also use {{tl2|=}} or {{Code|=}}.}}
{{ModernTip|Use {{Param|text}} if there is a conflicting {{Code|=}} in your text. You can also use {{tl2|=}} or {{Code|=}}.}}
Line 24: Line 23:
|-
|-
|}
|}
== Known Bugs of Modern Notes ==
* The beginning of the list breaks if the note starts with it (for example, {{Code|<nowiki>{{ModernNote|* Line 1}}</nowiki>}}).
* Specifying the text inside the note will move it under the list (for example, {{Code|<nowiki># {{ModernBug|Line 1}}</nowiki>}}).


{{Doc/Sandbox other|
{{Doc/Sandbox other|

Revision as of 22:58, 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.

Creates an inline note.

Parameters and Examples

Parameter Description Example Preview
{{{1}}} or {{{text}}} The text of your inline note.

Template:ModernTip Template:ModernTip

{{Notify}} Hello, World!
{{Notify|Hello, World!}}
{{Notify|text = Gordon + Barney = Beer}}
Hello, World!
Hello, World!
Gordon + Barney = Beer

Known Bugs of Modern Notes

  • The beginning of the list breaks if the note starts with it (for example, {{ModernNote|* Line 1}}).
  • Specifying the text inside the note will move it under the list (for example, # {{ModernBug|Line 1}}).