Difference between revisions of "Template:Main Page Thumbnail"
From Golly.Life Wiki
| Line 7: | Line 7: | ||
* Alternate text to describe image | * Alternate text to describe image | ||
* What page to link to | * What page to link to | ||
| + | |||
| + | It takes one optional argument: | ||
| + | |||
| + | * <code>size<code> - specify the size (in pixels) of the thumbnail | ||
For example, to create a thumbnail from [[:File:GollyLogoTransparent.png]] that links to the main page: | For example, to create a thumbnail from [[:File:GollyLogoTransparent.png]] that links to the main page: | ||
Revision as of 22:23, 5 February 2021
Basic usage: {{Main Page Thumbnail}} takes 3 required arguments:
- The name of the image file (including extension)
- Alternate text to describe image
- What page to link to
It takes one optional argument:
size- specify the size (in pixels) of the thumbnail
For example, to create a thumbnail from File:GollyLogoTransparent.png that links to the main page:
{{Main_Page_Thumbnail|GollyLogoTransparent.png|Alt Text|Main_Page}}
To specify the thumbnail size, use the size parameter and specify an integer (number of pixels):
size=50 example
size=200 example
{{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=50}}
{{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=200}}