Template:Image: Difference between revisions

No edit summary
mNo edit summary
Line 15: Line 15:
|-
|-
| ''Caption'' || File name and caption are passed. || <pre>{{Image|Pen.png|This is a caption}}</pre> || {{Image|Pen.png|This is a caption}}
| ''Caption'' || File name and caption are passed. || <pre>{{Image|Pen.png|This is a caption}}</pre> || {{Image|Pen.png|This is a caption}}
|-
| <code>artist=</code> || Specifies the artist's name for the image. || <pre>{{Image|Pen.png|This is a caption|artist=John Doe}}</pre> || {{Image|Pen.png|This is a caption|artist=John Doe}}
|-
|-
| <code>side=left</code> || Pushes the image over to the left, allowing text to flow around it. || <pre>{{Image|Pen.png|This is a caption|side=left}}</pre> || {{Image|Pen.png|This is a caption|side=left}}
| <code>side=left</code> || Pushes the image over to the left, allowing text to flow around it. || <pre>{{Image|Pen.png|This is a caption|side=left}}</pre> || {{Image|Pen.png|This is a caption|side=left}}
Line 25: Line 27:
|-
|-
| <code>link=URL</code> || Makes the image clickable, linking it to a specific URL. || <pre>{{Image|Pen.png|Click here for more details|link=http://example.com}}</pre> || {{Image|Pen.png|Click here for more details|link=http://example.com}}
| <code>link=URL</code> || Makes the image clickable, linking it to a specific URL. || <pre>{{Image|Pen.png|Click here for more details|link=http://example.com}}</pre> || {{Image|Pen.png|Click here for more details|link=http://example.com}}
|-
| <code>artist=John Doe</code> || Specifies the artist's name for the image. || <pre>{{Image|Pen.png|This is a caption|artist=John Doe}}</pre> || {{Image|Pen.png|This is a caption|artist=John Doe}}
|}
|}


; Notes: The <code>height</code> parameter overrides the <code>width</code> parameter. To specify both width and height, pass <code>width=WxHpx</code> where <code>W</code> is the width and <code>H</code> is the height.
; Notes: The <code>height</code> parameter overrides the <code>width</code> parameter. To specify both width and height, pass <code>width=WxHpx</code> where <code>W</code> is the width and <code>H</code> is the height.