Difference between revisions of "Template:Image Thumbnail"
Jump to navigation
Jump to search
(adjust) |
(try vertically aligning text to the center...) |
||
| Line 1: | Line 1: | ||
<div style="float:{{{2}}}; font-size:87%"> | <div style="float:{{{2}}}; font-size:87%"> | ||
| + | <p style="text-align:center;"> | ||
{| cellpadding=4 style="background:#f9f9f9; margin: 0em {{#if:{{{2|left|}}}|1.5}}{{#if:{{{2|right|}}}|0}}em 1em {{#if:{{{2|left|}}}|0}}{{#if:{{{2|right|}}}|1.5}}em; width:1px; border: 1px #cccccc solid; border-collapse: collapse; width:1px; line-height:16px" | {| cellpadding=4 style="background:#f9f9f9; margin: 0em {{#if:{{{2|left|}}}|1.5}}{{#if:{{{2|right|}}}|0}}em 1em {{#if:{{{2|left|}}}|0}}{{#if:{{{2|right|}}}|1.5}}em; width:1px; border: 1px #cccccc solid; border-collapse: collapse; width:1px; line-height:16px" | ||
|[[{{{1}}}{{!}}{{{3}}}]][[File:Image Thumbnail symbol.png|right|15px|link={{{1}}}]]{{{4}}} | |[[{{{1}}}{{!}}{{{3}}}]][[File:Image Thumbnail symbol.png|right|15px|link={{{1}}}]]{{{4}}} | ||
| − | |}</div> | + | |}</p></div> |
<noinclude> | <noinclude> | ||
The image thumbnail template is meant as a substitute for regular images in thumbnails; this is only intended if the desired image size in the thumbnail is larger than the maximum limit set by the size of the uploaded file. However, note when using the template that it has been set up as "float" and not "clear", as normal image thumbnails function in the form of "clear". | The image thumbnail template is meant as a substitute for regular images in thumbnails; this is only intended if the desired image size in the thumbnail is larger than the maximum limit set by the size of the uploaded file. However, note when using the template that it has been set up as "float" and not "clear", as normal image thumbnails function in the form of "clear". | ||
Revision as of 01:32, September 20, 2020
The image thumbnail template is meant as a substitute for regular images in thumbnails; this is only intended if the desired image size in the thumbnail is larger than the maximum limit set by the size of the uploaded file. However, note when using the template that it has been set up as "float" and not "clear", as normal image thumbnails function in the form of "clear".
{{Image Thumbnail
| (filename including the "File:" part)
| ("left" or "right")
| (size)
| (text, optional)
}}
Example: to substitute [[File:Joe Biden.jpg|thumb|right|150px|This is Joe Biden.]], enter:
{{Image Thumbnail|File:Joe Biden.jpg|right|150px|This is Joe BIden.}}