Template:Image: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 16: | Line 16: | ||
| ''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= | | <code>artist=</code> || Specifies the artist's name for the image. || <pre>{{Image|Pen.png|This is a caption|artist=Declan Lion}}</pre> || {{Image|Pen.png|This is a caption|artist=Declan Lion}} | ||
|- | |- | ||
| <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 26: | Line 26: | ||
| <code>width=200px</code> || Sets the width of the image. If set, the height will adjust automatically to maintain aspect ratio. || <pre>{{Image|Pen.png|This is a caption|width=200px}}</pre> || {{Image|Pen.png|This is a caption|width=200px}} | | <code>width=200px</code> || Sets the width of the image. If set, the height will adjust automatically to maintain aspect ratio. || <pre>{{Image|Pen.png|This is a caption|width=200px}}</pre> || {{Image|Pen.png|This is a caption|width=200px}} | ||
|- | |- | ||
| <code>link=URL</code> || Makes the image clickable, linking it to a specific URL. || <pre>{{Image|Pen.png|Click here for more details|link= | ! colspan="4" style="text-align: center;" | '''Note:''' 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. | ||
|- | |||
| <code>link=URL</code> (Internal)|| Makes the image clickable, linking it to a specific URL. || <pre>{{Image|Pen.png|Click here for more details|link=Emma M. Lion}}</pre> || {{Image|Pen.png|Click here for more details|link=Emma M. Lion}} | |||
|- | |||
| <code>link=URL</code> (External) || Makes the image clickable, linking it to a specific URL. || <pre>{{Image|Pen.png|Click here for more details|link=https://www.bethbrower.com}}</pre> || {{Image|Pen.png|Click here for more details|link=https://www.bethbrower.com}} | |||
|} | |} | ||
Revision as of 19:32, 13 March 2025
Image Usage Examples
- Notes
- The
heightparameter overrides thewidthparameter. To specify both width and height, passwidth=WxHpxwhereWis the width andHis the height.

