{layout="cypress/layout"} {exp:channel:entries dynamic="no" entry_id="2" limit="1"}

Image tag

Image tag with single quotes

image

Image tae wrap="image"

{news_image wrap="image"}

Image tag with modifier

Image tag as pair (inside src attribute)

Image tag as pair (outside img)

{news_image}{/news_image}

Image tag pair, single quotes

Image tag as pair (outside img, single quotes)

{news_image}{/news_image}

Image info as pair with modifier used twice, no tag

{news_image}src="{news_image:thumb}" data-src="{news_image:thumb}"{/news_image}

Image info as pair with modifier used twice, with other attributes

{news_image}alt="{description}" src="{news_image:thumb}" data-src="{news_image:thumb}"{/news_image}

Image tag as pair with modifier used twice, with other attributes

{news_image}{description}{/news_image}

Image tag as pair with modifier used twice, with other attributes, multi line

{news_image} {description} {/news_image}

CSS background, single tag

Css background, tag pair

CSS background, tag pair wrapped inside attribute

CSS background, tag pair wrapped around attribute

{/exp:channel:entries}
{exp:channel:entries dynamic="no" entry_id="2" limit="1"}

Image info as pair with modifier used twice, no tag

{news_image}src="{news_image:thumb}" data-src="{news_image:thumb}"{/news_image}

Image info as pair with modifier used twice, with other attributes

{news_image}alt="{description}" src="{news_image:thumb}" data-src="{news_image:thumb}"{/news_image}

Image tag as pair with modifier used twice, with other attributes

{news_image}{description}{/news_image}

Image tag as pair with modifier used twice, with other attributes, multi line

{news_image} {description} {/news_image}
{/exp:channel:entries}