Figure

Generates HTML5 figure elements.
The content of this shortcode specifies a caption to output inside a nested figcaption element.

Examples

Example usage:

<?# Figure Src="/assets/wyam.jpg" ?>
Wyam Logo
<?#/ Figure ?>

Example output:

<figure>
  <img src="/assets/wyam.jpg" />
  <figcaption>Wyam Logo</figcaption>
</figure>

Parameters

The following parameters can be used without names in the order below or with names (provided they are named) in any order. When using named parameters, the syntax should be `Name=Value` or `Name="Value"`.

  • Src

    URL of the image to be displayed.

  • Link

    If the image needs to be hyperlinked, URL of the destination.

  • Target

    Optional target attribute for the URL if Link parameter is set.

  • Rel

    Optional rel attribute for the URL if Link parameter is set.

  • Alt

    Alternate text for the image if the image cannot be displayed.

  • Class

    class attribute to apply to the figure element.

  • Height

    height attribute of the image.

  • Width

    width attribute of the image.

GitHub