m (change param name) |
(change category to lowercase to fit in line with other editing categories) |
||
(One intermediate revision by the same user not shown) | |||
Line 30: | Line 30: | ||
"type": "line", | "type": "line", | ||
"description": "The alignment of the image on the page.", | "description": "The alignment of the image on the page.", | ||
"suggestedvalues": ["left","right"], | "suggestedvalues": ["left","center","right"], | ||
"default": "inline" | "default": "inline" | ||
}, | }, | ||
Line 49: | Line 49: | ||
==Sample== | ==Sample== | ||
The following input: | The following input: | ||
<pre>{{thumb|cagedfairy.png|300| | <pre>{{thumb|cagedfairy.png|300|center|Example usage.|Hey, listen!}}</pre> | ||
Produces: | Produces: | ||
{{thumb|cagedfairy.png|300| | {{thumb|cagedfairy.png|300|center|Example usage.|Hey, listen!}}<br clear=all> | ||
Compare this to the | Compare this to the actual image thumb: | ||
[[File:cagedfairy.png|thumb|300px| | <pre>[[File:cagedfairy.png|thumb|300px|center|Example usage.]]</pre> | ||
<noinclude>__NOTOC__ [[Category:Template | This instead produces: | ||
[[File:cagedfairy.png|thumb|300px|center|Example usage.]] | |||
<noinclude>__NOTOC__ [[Category:Template documentation]]</noinclude> | |||
<includeonly>__NOEDITSECTION__</includeonly> | <includeonly>__NOEDITSECTION__</includeonly> |
Latest revision as of 22:00, 11 May 2024
Description
Mimics the function of image thumbs, but allows images to be enlarged.
Syntax
{{thumb|ext.png|width|alignment|caption|hovertext}}
or
{{thumb|File=ext.png|width=?|align=?|caption=?|hover=?}}
Usage
The only real use of the template is to allow thumbs to present enlarged images, which Mediawiki normally does not allow. Otherwise, this template acts almost exactly as normal images with mode set to "thumb."
Parameters
Parameter | Description | Type | Status | |
---|---|---|---|---|
File | 1 File | The image.
| File | required |
Image Width | 2 width size | The wanted width of the image in pixels.
| Number | optional |
Alignment | 3 align | The alignment of the image on the page.
| Line | optional |
Thumb Caption | 4 caption | A caption for the image thumb.
| Content | optional |
Hover Text | 5 hover | Text that appears when hovering over the image.
| String | optional |
Sample
The following input:
{{thumb|cagedfairy.png|300|center|Example usage.|Hey, listen!}}
Produces:
Compare this to the actual image thumb:
[[File:cagedfairy.png|thumb|300px|center|Example usage.]]
This instead produces: