{% load shrinkthewebtags %}

django-stw

Django + Shrink The Web Examples

Simple syntax. At the top of each template file load the templatetags:

{% templatetag openblock %} load shrinkthewebtags {% templatetag closeblock %}

At each place you'd like a screen shot insert the stwimage template tag with the two mandatory arguments: the url and the alt text:

{% templatetag openblock %} stwimage "https://djangoproject.com/" "Django website" {% templatetag closeblock %}

The following examples demonstrate adding additional key=value options. Some require purchasing and enabling additional features on the shrinktheweb.com site.

micro

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

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

tiny

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

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

very small

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

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

small

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

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

large

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

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

extra large

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

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

inside page

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

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

full length

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

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

full length 150px wide

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

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

full length 150px wide 50px tall

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

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

widescreen 400px wide image

{% templatetag openblock %} stwimage "https://djangoproject.com/" "widescreen" stwxmax=400 stwscreen=1440x900 {% templatetag closeblock %}

{% stwimage "https://djangoproject.com/" "widescreen" stwxmax=400 stwscreen=1440x900 %}

smallscreen 400px wide image

{% templatetag openblock %} stwimage "https://djangoproject.com/" "small screen" stwxmax=400 stwscreen=440 {% templatetag closeblock %}

{% stwimage "https://djangoproject.com/" "widescreen" stwxmax=400 stwscreen=440 %}