Template:Image: Difference between revisions
mNo edit summary |
|||
| Line 24: | Line 24: | ||
== Image Usage Examples == | == Image Usage Examples == | ||
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | {| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | ||
|- class="title" | |- class="title" | ||
! style="width: 10%;" | Parameter !! style="width: 15%;" | Description !! style="width: 20%;" | Code !! style="width: 55%;" | Example | ! style="width: 10%;" | Parameter !! style="width: 15%;" | Description !! style="width: 20%;" | Code !! style="width: 55%;" | Example | ||
Revision as of 03:38, 19 March 2025
Summary
This template should be used on pages to include a thumbnail of an image on a page.
- Usage
The file name parameter is required. The caption is technically optional, but is strongly encouraged. There are also several other optional parameters. (See below.)
{{image
|file-name.extension
|caption
|artist=Artist Name
}}
When copy-pasting the template above, it might be more readable to put it all on the same line; it is split across multiple ones just for clarity. If an optional parameter is not set, it defaults to the first value listed on its line above (height defaults to preserve ratio with the 100px default width).
Image Usage Examples
| Parameter | Description | Code | Example |
|---|---|---|---|
| Common Parameters | |||
| None | Only the file name is passed. | {{Image|Pen.png}} |
|
| Caption | File name and caption are passed. | {{Image|Pen.png|This is a caption}} |
|
artist= |
Specifies the artist's name for the image. | {{Image|Pen.png|This is a caption|artist=Declan Lion}} |
by Declan Lion This is a caption |
| Alignment Parameters | |||
side=left |
Pushes the image over to the left, allowing text to flow around it. | {{Image|Pen.png|This is a caption|side=left}} |
|
side=right |
Pushes the image over to the right, allowing text to flow around it. | {{Image|Pen.png|This is a caption|side=right}} |
|
| Resizing Parameters | |||
height= |
Sets the height of the image. If set, the width will adjust automatically to maintain aspect ratio. | {{Image|Pen.png|This is a caption|height=150px}} |
|
width= |
Sets the width of the image. If set, the height will adjust automatically to maintain aspect ratio. | {{Image|Pen.png|This is a caption|width=200px}} |
|
| Link Parameters | |||
link= (Internal) |
Makes the image clickable, linking it to a specific internal URL. | {{Image|Pen.png|Click here for more details on [[Emma M. Lion]]|link=Emma M. Lion}} |
|
link= (External) |
Makes the image clickable, linking it to a specific external URL. | {{Image|Pen.png|Click here for more details on [https://www.bethbrower.com Beth Brower]|link=https://www.bethbrower.com}} |
|


