Template:Callout

From smw
Jump to navigation Jump to search
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.