Template:Notify/inline/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 12: Line 12:
{{!}} 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 inline note.
{{!}} style="padding:10px" {{!}} The text of your inline note.
       {{ModernImportant|Use {{Param|text}} if there is a conflicting {{Code|=}} in your text (for example, some YouTube links). You can also use {{tl2|=}} or {{Code|=}}.}}
       {{ModernImportant|Use {{Param|text}} if there is a conflicting {{Code|=}} in your text '''''(for example, some YouTube links)'''''. You can also use {{tl2|=}} or {{Code|=}}.}}
       {{ModernImportant|Use {{tl2|!}} or {{Code||}} if there is a conflicting {{Code||}} character in your text.}}
       {{ModernImportant|Use {{tl2|!}} or {{Code||}} if there is a conflicting {{Code||}} character in your text.}}
{{!}} {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki> This is an example text.}}
{{!}} {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki> This is an example text.}}

Revision as of 10:59, 27 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.
Icon-Important.pngImportant:Use {{{text}}} if there is a conflicting = in your text (for example, some YouTube links). You can also use {{=}} or &#61;.
Icon-Important.pngImportant:Use {{!}} or &#124; if there is a conflicting | character in your text.
{{Notify}} This is an example text.
{{Notify|This is an example text.}}
{{Notify|text = Gordon + Barney = Beer}}
This is an example text.
This is an example text.
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}}).