Picture2 Template
Template definition
<template><if leftframe>=<</if><if rightframe>=></if>[<if alt>{{{alt}}}|</if>{{{1}}}<if align>?align{{{align}}}.<if type>{{{type}}}<else>jpg</if></if>]
<if leftframe>=<</if><if rightframe>=></if>
<if leftframe>=<</if><if rightframe>=></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
aligning left {{picture|align=left|http://senseis.xmp.net/images/stone-hello.png}}
results in:
aligning left
aligning right {{picture|align=right|http://senseis.xmp.net/images/stone-hello.png}}
results in:
aligning right
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
including caption, author and license