Template:Callout: Difference between revisions
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..." |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><templatestyles src="Template:Callout/styles.css" /><div class="callout-wrapper"><div class="callout callout--{{lc:{{{type|tip}}}}}" role="note" aria-label="{{{title|{{#switch:{{lc:{{{type|tip}}}}}|warning=Warning|important=Important|success=Success|note=Note|#default=Tip}}}}}"><div class="callout__title">{{{title|{{#switch:{{lc:{{{type|tip}}}}}|warning=Warning|important=Important|success=Success|note=Note|#default=Tip}}}}}</div><div class="callout__content">{{{content|{{{1|}}}}}}</div></div></div></includeonly> | ||
<div | <noinclude> | ||
}} | |||
"> | |||
<div | |||
"> | |||
{{{title|{{#switch:{{lc:{{{type|tip}}}}} | |||
}}}}} | |||
</div> | |||
<div | |||
{{{ | |||
</div> | |||
== Callout Template == | == Callout Template == | ||
Creates | Creates a styled, accessible callout for documentation. | ||
=== | === Usage === | ||
<pre> | <pre> | ||
| Line 67: | Line 12: | ||
| type=tip | | type=tip | ||
| | | | ||
You'll know you've successfully logged into Drupal when you see '''My Sites''' and your username in the black menu bar. | |||
{{Screenshot | {{Screenshot | ||
| DrupalMySites.png | | DrupalMySites.png | ||
| 500px | | 500px | ||
| Screenshot showing the My Sites menu | | Screenshot showing the My Sites menu. | ||
| The Drupal toolbar after a successful login. | | The Drupal toolbar after a successful login. | ||
}} | }} | ||
| Line 78: | Line 23: | ||
</pre> | </pre> | ||
=== | === Custom Title === | ||
<pre> | <pre> | ||
{{Callout | {{Callout | ||
| type=important | | type=important | ||
| title= | | title=Drupal Training | ||
| | | | ||
'''You must complete Drupal training before being given editing access to any website.''' | |||
If you have questions about user permissions, contact [mailto:web-update@swarthmore.edu web-update@swarthmore.edu]. | |||
}} | }} | ||
</pre> | </pre> | ||
=== | === Types === | ||
* <code>tip</code> | * <code>tip</code> (default) | ||
* <code>note</code> | * <code>note</code> | ||
* <code>important</code> | * <code>important</code> | ||
| Line 99: | Line 46: | ||
=== Parameters === | === Parameters === | ||
# '''type''' — | # '''type''' — Optional. | ||
# '''title''' — | # '''title''' — Optional. | ||
# ''' | # '''Body''' — The first unnamed parameter. Supports wiki markup, templates, images, tables, lists, links, and other standard MediaWiki content. | ||
</noinclude> | </noinclude> | ||
Latest revision as of 15:15, 10 July 2026
Callout Template
Creates a styled, accessible callout for documentation.
Usage
{{Callout
| type=tip
|
You'll know you've successfully logged into Drupal when you see '''My Sites''' and your username in the black menu bar.
{{Screenshot
| DrupalMySites.png
| 500px
| Screenshot showing the My Sites menu.
| The Drupal toolbar after a successful login.
}}
}}
Custom Title
{{Callout
| type=important
| title=Drupal Training
|
'''You must complete Drupal training before being given editing access to any website.'''
If you have questions about user permissions, contact [mailto:web-update@swarthmore.edu web-update@swarthmore.edu].
}}
Types
tip(default)noteimportantwarningsuccess
Parameters
- type — Optional.
- title — Optional.
- Body — The first unnamed parameter. Supports wiki markup, templates, images, tables, lists, links, and other standard MediaWiki content.