The shortcodes for Wmk Story take a single argument, info, which may be
specified directly as a Python dict or as the name of a YAML file containing a
representation of that dict.
There are five shortcodes corresponding to each of the section types in the original Story template:
banner, generally used at the top of the page for a hero-like effect.spotlight, which is similar to banner but smaller and intended for use
anywhere on the page.gallery, a gallery of clickable thumbnail images.items, a grid of short items.simple, generic content of a mainly textual nature.The banner shortcode expects the following keys in info:
title, required.image, required.subtitle.content.button (a dict with the keys label and link, and optionally class).style (a string or dict - see below).If style is a string, it contains the css classes characterizing the banner
instance, e.g. style3 orient-left content-align-left image-position-center
fullscreen onload-image-fade-in onload-content-fade-right.
If it is a dict, it describes the wished-for characteristics which then are transformed into a css class string by the shortcode, e.g.
{'subtype': 'circle',
'orient': 'left',
'align': 'left',
'imgpos': 'center',
'fullscreen': True,
'onload': ['img-fadein', 'faderight']}
When style is specified as a dict, the following keys and values are
supported for banner:
The spotlight shortcode is similar to banner and mostly has the same arguments.
The style keys supported are also the same, with the following exceptions:
halfscreen, which is False by default.subtype is circle, not split.onscroll is img-fadein.imgpos is center.The gallery shortcode expects the following keys in info:
title, optional.intro, optional.images, required. This is a list of dicts with the keys img (required), thumb, title, caption and button_text.wrapper_style: Styling for the wrapper, see the simple shortcode for options.gallery_style: Styling for the gallery itself; string or dict.If gallery_style is specified as a dict, it supports the following keys and values:
The items shortcode expects the following keys in info:
title, optionalintro, optional,items, a list of items (required). Each item may be either a string or a dict containing the keys fa_icon, title and text. The fa_icon represents a Fontawesome icon; it is a dict with the keys name and solid (a boolean, default False).wrapper_style: Styling for the wrapper, see the simple shortcode for options.items_style: Styling for the items container and items.If items_style is specified as a dict, it may contain the following keys:
The simple shortcode expects the following keys in info:
title, required.subtitlecontent, required.style: string or dict.It accepts an extra optional argument in addition to info, namely
heading_tag, which by default is h1.
If style is specified as a dict, it makes use of the following keys: