Template:Notify/inline/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 14: Line 14:
       {{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|=}}.}}
       {{ModernTip|Use {{tl2|!}} or {{Code||}} if there is a conflicting {{Code||}} character in your text.}}
       {{ModernTip|Use {{tl2|!}} or {{Code||}} if there is a conflicting {{Code||}} character in your text.}}
{{!}} {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki> Hello, World!}}
{{!}} {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki> This is an example text.}}
       {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|Hello, World!}}</nowiki>}}
       {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|This is an example text.}}</nowiki>}}
       {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|text = Gordon + Barney = Beer}}</nowiki>}}
       {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|text = Gordon + Barney = Beer}}</nowiki>}}
{{!}} {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|}} Hello, World! }}
{{!}} {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|}} This is an example text. }}
       {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|Hello, World!}} }}
       {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|This is an example text.}} }}
       {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer}} }}
       {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer}} }}


Line 25: Line 25:
{{!}} align="center" {{!}} {{Code|style=2|{{Param|code}}}}
{{!}} align="center" {{!}} {{Code|style=2|{{Param|code}}}}
{{!}} style="padding:10px" {{!}} Switching mode to code.
{{!}} style="padding:10px" {{!}} Switching mode to code.
{{!}} {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>||code}}</nowiki> Hello, World!}}
{{!}} {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>||code}}</nowiki> This is an example text.}}
       {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|Hello, World!|code}}</nowiki>}}
       {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|This is an example text.|code}}</nowiki>}}
       {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|text = Gordon + Barney = Beer|code}}</nowiki>}}
       {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|text = Gordon + Barney = Beer|code}}</nowiki>}}
{{!}} {{Capsule|margin=5px| {{{{ROOTPAGENAME}}||code}} Hello, World! }}
{{!}} {{Capsule|margin=5px| {{{{ROOTPAGENAME}}||code}} This is an example text. }}
       {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|Hello, World!|code}} }}
       {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|This is an example text.|code}} }}
       {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer|code}} }}
       {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer|code}} }}
|}}}}
|}}}}

Revision as of 23:49, 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}} 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}}).