Template:Image: Difference between revisions
mNo edit summary |
m Cleaning up content of some cells of the table. |
||
| Line 12: | Line 12: | ||
! 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 | ||
|- | |- | ||
| | ! colspan="4" style="text-align: center;" | Common Parameters | ||
|- | |- | ||
| '' | | style="text-align: center;" | ''None'' || Only the file name is passed. || <pre>{{Image|Pen.png}}</pre> || {{Image|Pen.png}} | ||
|- | |- | ||
| | | style="text-align: center;" | ''Caption'' || File name and caption are passed. || <pre>{{Image|Pen.png|This is a caption}}</pre> || {{Image|Pen.png|This is a caption}} | ||
|- | |- | ||
| <code> | | style="text-align: center;" | <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}} | ||
|- | |- | ||
! colspan="4" style="text-align: center;" | Alignment Parameters | |||
|- | |- | ||
| <code> | | style="text-align: center;" | <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> | | style="text-align: center;" | <code>side=right</code> || Pushes the image over to the right, allowing text to flow around it. || <pre>{{Image|Pen.png|This is a caption|side=right}}</pre> || {{Image|Pen.png|This is a caption|side=right}} | ||
|- | |- | ||
! colspan="4" style="text-align: center;" | | ! colspan="4" style="text-align: center;" | Resizing Parameters | ||
|- | |- | ||
| <code> | | style="text-align: center;" | <code>height=</code> || Sets the height of the image. If set, the width will adjust automatically to maintain aspect ratio. || <pre>{{Image|Pen.png|This is a caption|height=150px}}</pre> || {{Image|Pen.png|This is a caption|height=150px}} | ||
|- | |- | ||
| <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}} | | style="text-align: center;" | <code>width=</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}} | ||
|- | |||
! colspan="4" style="text-align: center;" | Link Parameters | |||
|- | |||
| style="text-align: center;" | <code>link=</code> <br>'''(Internal)'''|| Makes the image clickable, linking it to a specific internal URL. || <pre>{{Image|Pen.png|Click here for more details on [[Emma M. Lion]]|link=Emma M. Lion}}</pre> || {{Image|Pen.png|Click here for more details on [[Emma M. Lion]]|link=Emma M. Lion}} | |||
|- | |||
| style="text-align: center;" | <code>link=</code> <br>'''(External)''' || Makes the image clickable, linking it to a specific external URL. || <pre>{{Image|Pen.png|Click here for more details on [https://www.bethbrower.com Beth Brower]|link=https://www.bethbrower.com}}</pre> || {{Image|Pen.png|Click here for more details on [https://www.bethbrower.com Beth Brower]|link=https://www.bethbrower.com}} | |||
|} | |} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
Revision as of 19:55, 13 March 2025
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}} |
|


