{{%noticeicon="skull-crossbones"style="primary"title="There may be pirates"%}}Itisallabouttheboxes.{{%/notice%}}
{{%notice"primary""There may be pirates""skull-crossbones"%}}Itisallabouttheboxes.{{%/notice%}}
{{partial"shortcodes/notice.html"(dict"page"."content""It is all about the boxes.""icon""skull-crossbones""style""primary""title""There may be pirates")}}
If you want to display a transparent expandable box without any border, you can also use the expand shortcode.
Parameters
Name
Position
Default
Notes
groupid
<empty>
Arbitrary name of the group the box belongs to.
Expandable boxes with the same groupid synchronize their open state.
style
1
default
The style scheme used for the box.
- by severity: caution, important, info, note, tip, warning - by brand color: primary, secondary, accent - by color: blue, cyan, green, grey, magenta, orange, red - by special color: default, transparent, code, link, action, inline
The CSS color value to be used. If not set, the chosen color depends on the style. Any given value will overwrite the default.
- for severity styles: a nice matching color for the severity - for all other styles: the corresponding color
This is not available using Markdown callout syntax.
title
2
see notes
Arbitrary text for the box title. Depending on the style there may be a default title. Any given value will overwrite the default.
- for severity styles: the matching title for the severity - for all other styles: <empty>
If you want no title for a severity style, you have to set this parameter to " " (a non empty string filled with spaces)
icon
3
see notes
Font Awesome icon name set to the left of the title. Depending on the style there may be a default icon. Any given value will overwrite the default.
- for severity styles: a nice matching icon for the severity - for all other styles: <empty>
If you want no icon for a severity style, you have to set this parameter to " " (a non empty string filled with spaces)
This is not available using Markdown callout syntax.
expanded
<empty>
Whether to draw an expander and how the content is displayed.
- <empty>: no expander is drawn and the content is permanently shown - true: the expander is drawn and the content is initially shown - false: the expander is drawn and the content is initially hidden
<content>
<empty>
Arbitrary text to be displayed in box.
Settings
Defining own Styles
Option Besides the predefined style values from above, you are able to define your own.
This must match the style parameter used in a shortcode.
style
<empty>
If you define this optional parameter, this is where default values for title, icon and color are taken from if style exists beforehand. You can reference predefined styles as also your own styles.
title
<empty>
The default title used. If you have set style and don’t want any title at all, you have to set this parameter to " “. See the parameter i18n if you use multiple languages in your site.
i18n
<empty>
If no title is given but i18n is set, the title will be taken from the translation files by that key.
icon
<empty>
The default icon used. If you have set style and don’t want any icon at all, you have to set this parameter to " “.
color
<empty>
The default color used. If you have set style and don’t want any color at all, you have to set this parameter to " “.
{{partial"shortcodes/notice.html"(dict"page"."content""Advises about risks or negative outcomes of certain actions.""style""caution")}}{{partial"shortcodes/notice.html"(dict"page"."content""Key information users need to know to achieve their goal.""style""important")}}{{partial"shortcodes/notice.html"(dict"page"."content""Information that users <ins>_might_</ins> find interesting.""style""info")}}{{partial"shortcodes/notice.html"(dict"page"."content""Useful information that users should know, even when skimming content.""style""note")}}{{partial"shortcodes/notice.html"(dict"page"."content""Helpful advice for doing things better or more easily.""style""tip")}}{{partial"shortcodes/notice.html"(dict"page"."content""Urgent info that needs immediate user attention to avoid problems.""style""warning")}}
Caution
Advises about risks or negative outcomes of certain actions.
Important
Key information users need to know to achieve their goal.
Info
Information that users might find interesting.
Note
Useful information that users should know, even when skimming content.
Tip
Helpful advice for doing things better or more easily.
Warning
Urgent info that needs immediate user attention to avoid problems.
{{partial"shortcodes/notice.html"(dict"page"."content""Just some default color.""icon""skull-crossbones""style""default""title""Default")}}{{partial"shortcodes/notice.html"(dict"page"."content""No visible borders.""icon""skull-crossbones""style""transparent""title""Transparent")}}{{partial"shortcodes/notice.html"(dict"page"."content""Colored like a code fence.""icon""skull-crossbones""style""code""title""Code")}}{{partial"shortcodes/notice.html"(dict"page"."content""Style of topbar buttons""icon""skull-crossbones""style""link""title""Link")}}{{partial"shortcodes/notice.html"(dict"page"."content""Style of action buttons like Mermaid zoom or block code copy-to-clipboard""icon""skull-crossbones""style""action""title""Action")}}{{partial"shortcodes/notice.html"(dict"page"."content""Style of inline buttons like inline code copy-to-clipboard""icon""skull-crossbones""style""inline""title""Inline")}}
Default
Just some default color.
Transparent
No visible borders.
Code
Colored like a code fence.
Link
Style of topbar buttons
Action
Style of action buttons like Mermaid zoom or block code copy-to-clipboard
Inline
Style of inline buttons like inline code copy-to-clipboard
Various Features
With User-Defined Color, Font Awesome Brand Icon and Markdown in Title and Content
>[!default]**Hugo**is_awesome_>{{%include"shortcodes/include/INCLUDE_ME.md"%}}{color="fuchsia"icon="fa-fw fab fa-hackerrank"}
{{%noticecolor="fuchsia"icon="fa-fw fab fa-hackerrank"title="**Hugo** is _awesome_"%}}{{%include"shortcodes/include/INCLUDE_ME.md"%}}{{%/notice%}}
{{partial"shortcodes/notice.html"(dict"page"."color""fuchsia""content""{{% include \"shortcodes/include/INCLUDE_ME.md\" %}}""icon""fa-fw fab fa-hackerrank""title""**Hugo** is _awesome_")}}
the possibilities are endless (almost - including other shortcodes may or may not work) (almost - including other shortcodes may or may not work)
Et Cetera (English: /ɛtˈsɛtərə/), abbreviated to etc., etc, et cet., is a Latin expression that is used in English to mean “and other similar things”, or “and so forth” ↩︎
Expandable Content Area with groupid
If you give multiple expandable boxes the same groupid, at most one will be open at any given time. If you open one of the boxes, all other boxes of the same group will close.
{{partial"shortcodes/notice.html"(dict"page"."content""No need to press you!""expanded""true""groupid""notice-toggle""style""green""title""Expand me...")}}{{partial"shortcodes/notice.html"(dict"page"."content""Thank you!""expanded""false""groupid""notice-toggle""style""red""title""Expand me...")}}
Expand me…
No need to press you!
Expand me…
Thank you!
No Content or No Title
>[!accent]Justabar>[!accent]>Justabox
{{%noticestyle="accent"title="Just a bar"%}}{{%/notice%}}{{%noticestyle="accent"%}}Justabox{{%/notice%}}
{{%notice"accent""Just a bar"%}}{{%/notice%}}{{%notice"accent"%}}Justabox{{%/notice%}}
{{partial"shortcodes/notice.html"(dict"page"."style""accent""title""Just a bar")}}{{partial"shortcodes/notice.html"(dict"page"."content""Just a box""style""accent")}}
{{%noticestyle="caution"title="Callouts can have custom titles"%}}Likethisone.{{%/notice%}}{{%noticestyle="caution"title="Title-only callout"%}}{{%/notice%}}{{%noticeexpanded="false"style="note"title="Are callouts foldable?"%}}Yes!Inafoldablecallout,thecontentsarehiddenwhenthecalloutiscollapsed{{%/notice%}}{{%noticeexpanded="true"style="note"title="Are callouts foldable?"%}}Yes!Inafoldablecallout,thecontentsarehiddenwhenthecalloutiscollapsed{{%/notice%}}{{%noticestyle="info"title="Can callouts be nested?"%}}>[!important]Yes!,theycan.>>[!tip]Youcanevenusemultiplelayersofnesting.{{%/notice%}}
{{%notice"caution""Callouts can have custom titles"%}}Likethisone.{{%/notice%}}{{%notice"caution""Title-only callout"%}}{{%/notice%}}{{%notice"note""Are callouts foldable?"%}}Yes!Inafoldablecallout,thecontentsarehiddenwhenthecalloutiscollapsed{{%/notice%}}{{%notice"note""Are callouts foldable?"%}}Yes!Inafoldablecallout,thecontentsarehiddenwhenthecalloutiscollapsed{{%/notice%}}{{%notice"info""Can callouts be nested?"%}}>[!important]Yes!,theycan.>>[!tip]Youcanevenusemultiplelayersofnesting.{{%/notice%}}
{{partial"shortcodes/notice.html"(dict"page"."content""Like this one.""style""caution""title""Callouts can have custom titles")}}{{partial"shortcodes/notice.html"(dict"page"."style""caution""title""Title-only callout")}}{{partial"shortcodes/notice.html"(dict"page"."content""Yes! In a foldable callout, the contents are hidden when the callout is collapsed""expanded""false""style""note""title""Are callouts foldable?")}}{{partial"shortcodes/notice.html"(dict"page"."content""Yes! In a foldable callout, the contents are hidden when the callout is collapsed""expanded""true""style""note""title""Are callouts foldable?")}}{{partial"shortcodes/notice.html"(dict"page"."content""> [!important] Yes!, they can.\n> > [!tip] You can even use multiple layers of nesting.""style""info""title""Can callouts be nested?")}}
Callouts can have custom titles
Like this one.
Title-only callout
Are callouts foldable?
Yes! In a foldable callout, the contents are hidden when the callout is collapsed
Are callouts foldable?
Yes! In a foldable callout, the contents are hidden when the callout is collapsed