Jump to content

Template:Callout

From Swarthmore Knowledge Base
Revision as of 14:26, 9 July 2026 by Kwhiteb1 (talk | contribs) (Created page with "<includeonly> <div role="note" aria-label="{{{title|{{#switch:{{lc:{{{type|tip}}}}} |warning=Warning |important=Important |success=Success |note=Note |#default=Tip }}}}}" style=" border:1px solid {{#switch:{{lc:{{{type|tip}}}}} |warning=#d97706 |important=#b45309 |success=#15803d |note=#6b7280 |#default=#c7d8f5 }}; background:{{#switch:{{lc:{{{type|tip}}}}} |warning=#fff8e6 |important=#fff7ed |success=#f0fdf4 |note=#f9fafb |#default=#f8fbff }}; border-radi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Callout Template

Creates an accessible callout box for notes, tips, warnings, important messages, and success messages.

Preferred Usage

Use the first unnamed parameter for the body content:

{{Callout
 | type=tip
 |
You’ll know you’ve successfully logged into Drupal when you see '''My Sites''' and your name in the black menu bar.

{{Screenshot
 | DrupalMySites.png
 | 500px
 | Screenshot showing the My Sites menu
 | The Drupal toolbar after a successful login.
}}
}}

Usage with Custom Title

{{Callout
 | type=important
 | title=Before you continue
 |
Never unpublish your homepage.
}}

Supported Types

  • tip
  • note
  • important
  • warning
  • success

Parameters

  1. type — optional. Defaults to tip.
  2. title — optional. Overrides the default title.
  3. unnamed body content — required. May include text, links, lists, images, tables, and other templates.

Legacy Usage

The template also supports content=, but unnamed body content is preferred:

{{Callout
 | type=note
 | content=Profile data comes from both Drupal and MySwarthmore.
}}