Template:Notify/inline/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
! Example
! Example
! width="20%" | Preview
! width="20%" | Preview
|-
|- {{#ifeq:{{FULLPAGENAME}}|Template:ModernBugfix||
| align="center" | {{Code|style=2|{{Param|1}}}} or {{Code|style=2|{{Param|text}}}}
{{!}}
| style="padding:10px" | The text of your inline note.
{{!}} align="center" {{!}} {{Code|style=2|{{Param|1}}}} or {{Code|style=2|{{Param|text}}}}
  {{ModernTip|Use {{Param|text}} if there is a conflicting {{Code|=}} in your text. You can also use {{tl2|=}} or {{Code|=}}.}}
{{!}} style="padding:10px" {{!}} The text of your inline note.
  {{ModernTip|Use {{tl2|!}} or {{Code||}} if there is a conflicting {{Code||}} character in your text.}}
      {{ModernTip|Use {{Param|text}} if there is a conflicting {{Code|=}} in your text. You can also use {{tl2|=}} or {{Code|=}}.}}
| {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki> Hello, World!}}
      {{ModernTip|Use {{tl2|!}} or {{Code|&#38;#124;}} if there is a conflicting {{Code|&#124;}} character in your text.}}
  {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|Hello, World!}}</nowiki>}}
{{!}} {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki> Hello, World!}}
  {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|text = Gordon + Barney = Beer}}</nowiki>}}
      {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|Hello, World!}}</nowiki>}}
| {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|}} Hello, World! }}
      {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|text = Gordon + Barney = Beer}}</nowiki>}}
  {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|Hello, World!}} }}
{{!}} {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|}} Hello, World! }}
  {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer}} }}
      {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|Hello, World!}} }}
      {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|text = Gordon + Barney = Beer}} }}


|- {{#ifeq:{{FULLPAGENAME}}|Template:ModernFix|
|- {{#ifeq:{{FULLPAGENAME}}|Template:ModernFix|
Line 25: Line 26:
{{!}} 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> 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}} }}
|}}}}
 
|- {{#ifeq:{{FULLPAGENAME}}|Template:ModernBugfix|
{{!}}
{{!}} align="center" {{!}} {{Code|style=2|{{Param|1}}}} and {{Code|style=2|{{Param|2}}}}
{{!}} style="padding:10px" {{!}} Bug and its fix.
{{!}} {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki> Hello, World!}}
      {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|This is an example text.}}</nowiki>}}
      {{CodeBlock|margin=5px|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|This is an example text.|This is an example text.}}</nowiki>}}
{{!}} {{Capsule|margin=5px| {{{{ROOTPAGENAME}}||}} Hello, World! }}
      {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|This is an example text.}} }}
      {{Capsule|margin=5px| {{{{ROOTPAGENAME}}|This is an example text.|This is an example text.}} }}
|}}
|}}



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