Jump to content

Template:Note: Difference between revisions

From Resco's Wiki
 
(20 intermediate revisions by the same user not shown)
Line 3: Line 3:
<nowiki> {{Note| ''text'' | ''type''}} </nowiki>
<nowiki> {{Note| ''text'' | ''type''}} </nowiki>
* ''text'' is the text of the note
* ''text'' is the text of the note
* ''type'' is type: Warning, Success, Note (default)
* ''type'' is an optional parameter that affects the type of the note: '''Warning''' (red), '''Success''' (green), '''Note''' (default, blue), '''N/A''' (grey)
 
{{Bulb|See also [[Template:Bulb]].}}


== EXAMPLES ==
== EXAMPLES ==
Line 9: Line 11:
* {{Note|Good job! Use '''<nowiki>{{Note|Good job!|Success}}</nowiki>''' to create similar notes.|Success}}
* {{Note|Good job! Use '''<nowiki>{{Note|Good job!|Success}}</nowiki>''' to create similar notes.|Success}}
* {{Note|This is really important. Also, it shows how it wraps. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi placerat lectus non odio consequat blandit. Nullam auctor iaculis nisl, ut elementum nulla viverra vestibulum. Nunc maximus lectus quis metus eleifend cursus. Aenean nec bibendum elit. Praesent a orci scelerisque, accumsan lectus eu, feugiat ante. Morbi imperdiet ipsum a felis mollis, sed venenatis neque blandit. Morbi non egestas nisl. In hac habitasse platea dictumst. Nam et magna mi. |Warning}}
* {{Note|This is really important. Also, it shows how it wraps. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi placerat lectus non odio consequat blandit. Nullam auctor iaculis nisl, ut elementum nulla viverra vestibulum. Nunc maximus lectus quis metus eleifend cursus. Aenean nec bibendum elit. Praesent a orci scelerisque, accumsan lectus eu, feugiat ante. Morbi imperdiet ipsum a felis mollis, sed venenatis neque blandit. Morbi non egestas nisl. In hac habitasse platea dictumst. Nam et magna mi. |Warning}}
* {{Note|This function is unavailable.|N/A}}


== CATEGORIZATION ==
== CATEGORIZATION ==
Line 14: Line 17:


== CODE ==
== CODE ==
</noinclude>{| style="height: 45px; padding-left: 5px; border-top:5px solid white; border-bottom:5px solid white; border-left:5px solid {{#switch: {{{2|Note}}} |Warning=red |Success=green | RoyalBlue}}; background-color: {{#switch: {{{2|Note}}} |Warning=lightpink |Success=lightgreen | LightCyan}}; "
</noinclude>{| style=" padding-left: 5px; padding-right: 8px; border-top:5px solid var(--background-color-base); border-bottom:5px solid var(--background-color-base); border-left:5px solid {{#switch: {{{2|Note}}}
|Warning= var(--color-destructive)
|Important= var(--color-destructive)
|Success= var(--color-success)
|N/A= var(--color-base)
|var(--color-progressive)}}; background-color: {{#switch: {{{2|Note}}}
|Warning= var(--background-color-destructive-subtle)
|Important= var(--background-color-destructive-subtle)
|Success= var(--background-color-success-subtle)
|N/A= var(--background-color-disabled)
|var(--background-color-content-added)}}; "
|-  
|-  
| style="width: 70px;" | <span style="font-weight: bold;">{{{2|Note}}}</span>  
| style="width: 70px;" | <span style="font-weight: bold;">{{{2|Note}}}</span>  
| {{{1|This is the default note.}}}
| {{{1|This is the default note.}}}
|}
|}

Latest revision as of 14:11, 10 February 2026

USAGE

{{Note| ''text'' | ''type''}}

  • text is the text of the note
  • type is an optional parameter that affects the type of the note: Warning (red), Success (green), Note (default, blue), N/A (grey)
See also Template:Bulb.

EXAMPLES

Note This is the default note.
Success Good job! Use {{Note|Good job!|Success}} to create similar notes.
Warning This is really important. Also, it shows how it wraps. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi placerat lectus non odio consequat blandit. Nullam auctor iaculis nisl, ut elementum nulla viverra vestibulum. Nunc maximus lectus quis metus eleifend cursus. Aenean nec bibendum elit. Praesent a orci scelerisque, accumsan lectus eu, feugiat ante. Morbi imperdiet ipsum a felis mollis, sed venenatis neque blandit. Morbi non egestas nisl. In hac habitasse platea dictumst. Nam et magna mi.
N/A This function is unavailable.

CATEGORIZATION

This template belongs to Category:Templates.

CODE

Note This is the default note.