Template:Note: Difference between revisions
Appearance
| Line 17: | Line 17: | ||
== CODE == | == CODE == | ||
</noinclude>{| style=" padding-left: 5px; padding-right: 8px; border-top:5px solid | </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-notice)}}; background-color: {{#switch: {{{2|Note}}} | |||
|Warning = var(--background-color-destructive) | |||
|Important= var(--background-color-destructive) | |||
|Success = var(--background-color-success) | |||
|N/A = var(--background-color-base) | |||
|var(--background-color-notice)}}; " | |||
|- | |- | ||
| 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.}}} | ||
|} | |} | ||
Revision as of 13:57, 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. |