Template:Notify/inline/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 11: Line 11:
| 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.
 
  {{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> Hello, World!}}
   {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|Hello, World!}}</nowiki>}}
   {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|Hello, World!}}</nowiki>}}
Line 21: Line 19:
   {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|Hello, World!}} }}
   {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|Hello, World!}} }}
   {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer}} }}
   {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer}} }}
|-{{#ifeq:{{FULLPAGENAME}}|Template:ModernFix|
| align="center" | {{Code|style=2|{{Param|code}}}}
| style="padding:10px" | Switching mode to code.


| {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>||code}}</nowiki> Hello, World!}}
|- {{#ifeq:{{FULLPAGENAME}}|Template:ModernFix|
{{!}}
{{!}} align="center" {{!}} {{Code|style=2|{{Param|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>|Hello, World!|code}}</nowiki>}}
   {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|Hello, World!|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}} Hello, World! }}
   {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|Hello, World!|code}} }}
   {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|Hello, World!|code}} }}
   {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer|code}} }}|}}
   {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer|code}} }}
|-
|}}
 
|}
|}



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