Template:Image: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 65: | Line 65: | ||
| style="background-color: white; text-align: justify; font-size: 90%;" | Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor.{{Image|Pen.png|Using <code>align=left</code>.|align=left}}{{Image|Pen.png|Using <code>align=right</code>.|align=right}}Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. | | style="background-color: white; text-align: justify; font-size: 90%;" | Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor.{{Image|Pen.png|Using <code>align=left</code>.|align=left}}{{Image|Pen.png|Using <code>align=right</code>.|align=right}}Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. | ||
|- | |- | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Resize | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Resize Width</span><br><div style="text-align: left;"><span style="font-weight: normal;">If you wish to resize the width of the image, pass <code>width=</code> with a pixel value. (e.g., <code>width=300px</code>) If <code>width=</code> is not passed, the default is 100px.</div> | ||
|- | |- | ||
! width=25%|You Type | ! width=25%|You Type | ||
| Line 72: | Line 72: | ||
| style="text-align: left; background-color: white;" |<pre>{{Image | | style="text-align: left; background-color: white;" |<pre>{{Image | ||
|Pen.png | |Pen.png | ||
|This image is | |This image is 200px wide. | ||
| | |width=200px | ||
}} | }} | ||
</pre> | </pre> | ||
| style="background-color: white;" | {{Image|Pen.png|This image is | | style="background-color: white;" | {{Image|Pen.png|This image is 200px wide.|width=200px}} | ||
|- | |- | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Resize | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Resize Height</span><br><div style="text-align: left;"><span style="font-weight: normal;">If you wish to resize the height of the image, pass <code>height=</code> with a pixel value. (e.g., <code>height=200px</code>) If <code>height=</code> is not passed, the default is 100px.<br><span style="font-size: 90%;"><br>'''Note:''' Passing <code>height=</code> will override <code>width=</code>, if both are passed.</div> | ||
|- | |- | ||
! width=25%|You Type | ! width=25%|You Type | ||
| Line 85: | Line 85: | ||
| style="text-align: left; background-color: white;" |<pre>{{Image | | style="text-align: left; background-color: white;" |<pre>{{Image | ||
|Pen.png | |Pen.png | ||
|This image is | |This image is 150px tall. | ||
| | |height=150px | ||
}} | }} | ||
</pre> | </pre> | ||
| style="background-color: white;" | {{Image|Pen.png|This image is | | style="background-color: white;" | {{Image|Pen.png|This image is 150px tall.|height=150px}} | ||
|- | |- | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Internal Link</span><br><div style="text-align: left;"><span style="font-weight: normal;">If you wish for the image itself to link to another page on the wiki, pass <code>link=</code> with the name of the page of which you wish to link.</div> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Internal Link</span><br><div style="text-align: left;"><span style="font-weight: normal;">If you wish for the image itself to link to another page on the wiki, pass <code>link=</code> with the name of the page of which you wish to link.</div> | ||
Revision as of 02:09, 9 May 2025
Description
This template is used to include a thumbnail image on a page. The preferred method of displaying images is with text wrapped around it. To do this, you must pass an alignment parameter. (See the table below for examples.)
If you desire a different format for displaying images, especially one with more granular control, see Non-Template Image Insertion.
Usage
- Note: The code of the examples below are split over multiple lines for the sake of clarity, please keep all parameters on the same line when using this template.
- For example:
{{image|FILENAME.EXTENSION|caption|artist=ARTISTNAME|align=left/right}}


