Template:CallToAction
A prominent invitation to take an action, with an optional heading, supporting text and a link styled as a button. Colours adapt to the wiki's light and dark themes.
Usage
Internal wiki link
{{CallToAction
|title=Need a hand?
|content=Find answers to common questions and ways to contact ITS.
|link=Help desk
|label=Get help
}}
Need a hand?
Find answers to common questions and ways to contact ITS.
External link
{{CallToAction
|title=Explore Swarthmore
|content=Visit the college website for news, events and information.
|url=https://www.swarthmore.edu/
|label=Visit Swarthmore
}}
Explore Swarthmore
Visit the college website for news, events and information.
With an icon
{{CallToAction
|icon=lightbulb
|title=Have a suggestion?
|content=Tell us what's missing from the knowledge base.
|link=Feedback
|label=Send feedback
}}
Have a suggestion?
Tell us what's missing from the knowledge base.
Parameters
| Parameter | Default | Description |
|---|---|---|
title |
— | Optional heading text. |
1 / content |
— | Supporting content. Supports wikitext, including paragraphs and lists. Use 1= or content= when the text contains an equals sign.
|
link |
— | Internal wiki page name, without link brackets. |
url |
— | External URL, including https://. Takes precedence over link when both are supplied.
|
label |
Learn more |
Action link text. Prefer a specific description such as “Get help” or “Request access”. Use plain text, not another link. |
icon |
— | Any name from Template:Icon. Shown large, in the brand colour, to the left of the heading. |
Notes
- Provide either
linkorurlto display the action. - External links open in the same tab.
- The action remains a normal link: it supports keyboard navigation, opening in another tab and copying the destination.
- On narrow screens, the action appears below the supporting text.