Picture Template

   

Template definition

<template> [{{{1}}}<if align>?align{{{align}}}.<if type>{{{type}}}<else>jpg</if></if>] </template>

Usage

including an image in the page
{{picture|url}}
aligning it to the left or right
{{picture|align=left/right|url}}
including the type (when aligning)
{{picture|align=left/right|type=gif/png/jpg|url}}

In each of these, replace url with the URL of the image

Examples

 including a picture {{picture|http://senseis.xmp.net/images/stone-hello.png}}

results in:

including a picture http://senseis.xmp.net/images/stone-hello.png


 aligning left {{picture|align=left|http://senseis.xmp.net/images/stone-hello.png}}

results in:

aligning left http://senseis.xmp.net/images/stone-hello.png?alignleft.jpg



 aligning right {{picture|align=right|http://senseis.xmp.net/images/stone-hello.png}}

results in:

aligning right http://senseis.xmp.net/images/stone-hello.png?alignright.jpg



 including the type when aligning {{picture|align=right|http://senseis.xmp.net/images/stone-hello.png|type=png}}

results in:

including the type when aligning http://senseis.xmp.net/images/stone-hello.png?alignright.png


This is a copy of the living page "Picture Template" at Sensei's Library.
(OC) 2008 the Authors, published under the OpenContent License V1.0.
[Welcome to Sensei's Library!]
StartingPoints
ReferenceSection
About