Picture Template

    Keywords: SL description

Template definition

<template>[<if alt>{{{alt}}}|</if>{{{1}}}<if align>?align{{{align}}}.<if type>{{{type}}}<else>jpg</if></if>] <if caption><if align>{{{{{align}}}|{{{caption}}}}}<else>{{{caption}}}</if> <if author><if align>{{{{{align}}}|
(Image by: {{{author}}}}}<else>(Image by: {{{author}}}</if><if license> ([{{{license}}}])</if>) <else><if license><if align>{{{{{align}}}|([{{{license}}}}}])<else>([{{{license}}}])</if></if></if> <else><if author><if align>{{{{{align}}}|(Image by: {{{author}}}}}<else>(Image by: {{{author}}}</if><if license> ([{{{license}}}])</if>) <else><if license><if align>{{{{{align}}}|([{{{license}}}}}])<else>({{{license}}})</if></if></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}}
adding an alt text
{{picture|alt=your text}}
adding a caption
{{picture|caption=your text}}
adding a license
{{picture|license=GFDL/CC-BY/etc}}
adding an author
{{picture|caption=Author name}}

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



including caption, author and license http://senseis.xmp.net/images/stone-hello.png?alignright.jpg


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

Stones (comic)
(Image by: Andreas Fecke)


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


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

Stones (comic)
(Image by: Andreas Fecke (CC-BY))


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

(CC-BY)


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

(Image by: Andreas Fecke)


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

(Image by: Andreas Fecke (CC-BY))



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