Template:Image: Difference between revisions
mNo edit summary |
m Text replacement - "| style="background-color: white;" |" to "|" |
||
| Line 35: | Line 35: | ||
| style="text-align: center; background-color: white;" |<pre>{{Image|Pen.png}} | | style="text-align: center; background-color: white;" |<pre>{{Image|Pen.png}} | ||
</pre> | </pre> | ||
| {{Image|Pen.png}} | |||
|- | |- | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Caption</span><br><div style="text-align: left;"><span style="font-weight: normal;">In order to add a caption to the image thumbnail, pass a second unnamed parameter.</div> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Caption</span><br><div style="text-align: left;"><span style="font-weight: normal;">In order to add a caption to the image thumbnail, pass a second unnamed parameter.</div> | ||
| Line 47: | Line 47: | ||
}} | }} | ||
</pre> | </pre> | ||
| {{Image|Pen.png|This is a caption.}} | |||
|- | |- | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Artist Attribution</span><br><div style="text-align: left;"><span style="font-weight: normal;">Artist Attribution is passed automatically if an artist has been assigned to a specific image. To assign an artist to an image, you must use the {{t|Art}} template on an image's [[:Special:AllPages/File:|File page]]. If an artist has not been assigned, no artist attribution will be shown. If the artist has been assigned, the artist's name will link to that [[:Category:Artists|artist's page]].</div> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Artist Attribution</span><br><div style="text-align: left;"><span style="font-weight: normal;">Artist Attribution is passed automatically if an artist has been assigned to a specific image. To assign an artist to an image, you must use the {{t|Art}} template on an image's [[:Special:AllPages/File:|File page]]. If an artist has not been assigned, no artist attribution will be shown. If the artist has been assigned, the artist's name will link to that [[:Category:Artists|artist's page]].</div> | ||
| Line 60: | Line 60: | ||
}} | }} | ||
</pre> | </pre> | ||
| {{Image|Beth Brower-2.jpg|This is a caption.|width=150px}} | |||
|- | |- | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Alignment</span><br><div style="text-align: left;"><span style="font-weight: normal;">In order to have an Image align to either margin, pass <code>align=</code>, with the input of either <code>left</code> or <code>right</code>. The default alignment is center. '''If you wish to have text wrap around the image thumbnail, you MUST pass <code>align=</code>, otherwise the image will be centered as a block element. (i.e., Text will not wrap around it.)'''</div> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Alignment</span><br><div style="text-align: left;"><span style="font-weight: normal;">In order to have an Image align to either margin, pass <code>align=</code>, with the input of either <code>left</code> or <code>right</code>. The default alignment is center. '''If you wish to have text wrap around the image thumbnail, you MUST pass <code>align=</code>, otherwise the image will be centered as a block element. (i.e., Text will not wrap around it.)'''</div> | ||
| Line 86: | Line 86: | ||
}} | }} | ||
</pre> | </pre> | ||
| {{Image|Pen.png|This image is 200px wide.|width=200px}} | |||
|- | |- | ||
! 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> | ! 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> | ||
| Line 99: | Line 99: | ||
}} | }} | ||
</pre> | </pre> | ||
| {{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> | ||
| Line 112: | Line 112: | ||
}} | }} | ||
</pre> | </pre> | ||
| {{Image|Pen.png|Click here for more details on Emma M. Lion.|link=Emma M. Lion}} | |||
|- | |- | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">External 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 outside of the wiki, pass <code>link=</code> with the url of the webpage of which you wish to link.</div> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">External 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 outside of the wiki, pass <code>link=</code> with the url of the webpage of which you wish to link.</div> | ||
| Line 125: | Line 125: | ||
}} | }} | ||
</pre> | </pre> | ||
| {{Image|Pen.png|Click here for more details on Beth Brower.|link=https://www.bethbrower.com}} | |||
|} | |} | ||