Difference between revisions of "Template:Callout"
Jump to navigation
Jump to search
(pushed from smw by wikipush) |
(No difference)
|
Latest revision as of 21:46, 28 November 2020
| Table of Contents | |
|---|---|
Usage
{{Callout|Some text|callout type}}
To add some text to the Callout template is mandatory. Specifying the callout type is optional though "warning" will be assumed if nothing was specified. Other types are: "success", "error" and "info".
This template is a modern alternative to the "Note" template and it can easily be reused on wikis which have Template:Extend installed.
Examples
Default
- syntax
{{Callout|Example text.}}
- result
Example text.
Warning
- syntax
{{Callout|Example text.|warning}}
- result
Example text.
Info
- syntax
{{Callout|Example text.|info}}
- result
Example text.
Success
- syntax
{{Callout|Example text.|success}}
- result
Example text.
Error
- syntax
{{Callout|Example text.|error}}
- result
Example text.