Template:Note: Difference between revisions
Appearance
No edit summary |
|||
| (8 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
== CODE == | == CODE == | ||
</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}}} | </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) | |Warning= var(--color-destructive) | ||
|Important= var(--color-destructive) | |Important= var(--color-destructive) | ||
|Success= var(--color-success) | |Success= var(--color-success) | ||
|N/A= var(--color-base) | |N/A= var(--color-base) | ||
|var(--color- | |var(--color-progressive)}}; background-color: {{#switch: {{{2|Note}}} | ||
|Warning= var(--background-color-destructive) | |Warning= var(--background-color-destructive-subtle) | ||
|Important= var(--background-color-destructive) | |Important= var(--background-color-destructive-subtle) | ||
|Success= var(--background-color-success) | |Success= var(--background-color-success-subtle) | ||
|N/A= var(--background-color- | |N/A= var(--background-color-disabled) | ||
|var(--background-color- | |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. |