Figure Class

Summary

Generates HTML5 figure elements.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Shortcodes.Html
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IShortcode"] click Interface0 "/api/Wyam.Common.Shortcodes/IShortcode" Type["Figure"] class Type type-node

Syntax

public class Figure : IShortcode

Examples

Example usage:

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

Example output:

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

Remarks

The content of this shortcode specifies a caption to output inside a nested figcaption element.

Methods

Name Value Summary
Execute(KeyValuePair<string, string>[], string, IDocument, IExecutionContext) IShortcodeResult
Executes the shortcode and returns an Wyam.Common.Shortcodes.IShortcodeResult.
GitHub