Template:Callout

From smw
Revision as of 22:46, 28 November 2020 by Wf (talk | contribs) (pushed from smw by wikipush)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.