Img

Img

{% img %}

Shortcut to output a <img> tag for an image, optionally wrapped in a link.

{% img image attributes %}

{% img
value
 
Image object, guid, or name
attributes
 
Key:value pairs. May use the variable arguments syntax. Additional options for the image URL, img tag, and anchor tag (if applicable)
%}

attributes

preset
 
Zero or more image presets; may repeat or include space-separated list
link
 
If string, wraps image with anchor to that URL. If true and image has a URL (page), wraps to the image URL
class
 
Class attribute for the img tag. If included multiple times all of the classes will be included, separated by spaces
link_class
 
Class attribute for the wrapping anchor tag, if applicable. If included multiple times all of the classes will be included, separated by spaces
link_attribute
 
Additional attributes for the wrapping anchor tag, if applicable. Each attribute must be prefixed with "link_", may only be included once, and must have a value to be included in the anchor tag
other
 
Additional attributes for img tag. Each additional attribute may only be included once and must have a value to be included in the img tag

Related

{% gallery %}

{% articles %}