{% load shrinkthewebtags %} django-stw Django + Shrink The Web Examples {% stwjavascript %}{% comment %} only required for stwimage template tag {% endcomment %}

shrinkthewebimage examples

When the image is clicked this template tag directs the user to a site verification page prior to visiting the specified website. This is the template tag STW requires be used by free accounts. It can also be used by PRO accounts if the redirect page is desired.

micro

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "mcr" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "mcr" %}

tiny

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "tny" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "tny" %}

very small

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "vsm" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "vsm" %}

small

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "sm" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "sm" %}

large

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "lg" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "lg" %}

extra large

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "xlg" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "xlg" %}

extra large lang=fr

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "xlg" lang=fr {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "xlg" lang=fr %}

stwimage PRO api examples

Requires purchase of appropriate options from Shrink The Web

micro

{% templatetag openblock %} stwimage "http://djangoproject.com/" "micro" stwsize=mcr {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "micro" stwsize=mcr %}

tiny

{% templatetag openblock %} stwimage "http://djangoproject.com/" "tiny" stwsize=tny {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "tiny" stwsize=tny %}

very small

{% templatetag openblock %} stwimage "http://djangoproject.com/" "very small" stwsize=vsm {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "very small" stwsize=vsm %}

small

{% templatetag openblock %} stwimage "http://djangoproject.com/" "small" stwsize=sm {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "small" stwsize=sm %}

large

{% templatetag openblock %} stwimage "http://djangoproject.com/" "large" stwsize=lg {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "large" stwsize=lg %}

extra large

{% templatetag openblock %} stwimage "http://djangoproject.com/" "extra large" stwsize=xlg {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "extra large" stwsize=xlg %}

inside page

{% templatetag openblock %} stwimage "http://djangoproject.com/community/" "inside page" stwsize=lg stwinside=1 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/community/" "inside page" stwsize=lg stwinside=1 %}

full length

{% templatetag openblock %} stwimage "http://djangoproject.com/" "full length" stwfull=1 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "full length" stwfull=1 %}

full length 150px wide

{% templatetag openblock %} stwimage "http://djangoproject.com/" "full length 150 wide" stwfull=1 stwxmax=150 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "full length 150 wide" stwfull=1 stwxmax=150 %}

full length 150px wide 50px tall

{% templatetag openblock %} stwimage "http://djangoproject.com/" "full length 150x50" stwfull=1 stwxmax=150 stwymax=50 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "full length 150x50" stwfull=1 stwxmax=150 stwymax=50 %}

widescreen 200px wide image

{% templatetag openblock %} stwimage "http://djangoproject.com/" "widescreen" stwnrx=1440 stwnry=900 stwxmax=200 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "widescreen" stwnrx=1440 stwnry=900 stwxmax=200 %}