Difference between revisions of "Template:Main Page Thumbnail"
From Golly.Life Wiki
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| − | [[Image:{{{1}}}| | + | [[Image:{{{1}}}|{{{size|150}}}x{{{size|150}}}px|alt={{{2|}}}|link={{{3|}}}]] |
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
| − | + | Basic usage: {{Tl|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 | ||
| + | |||
| + | For example, to create a thumbnail from [[:File:GollyLogoTransparent.png]] that links to the main page: | ||
<pre> | <pre> | ||
| + | <nowiki> | ||
{{Main_Page_Thumbnail|GollyLogoTransparent.png|Alt Text|Main_Page}} | {{Main_Page_Thumbnail|GollyLogoTransparent.png|Alt Text|Main_Page}} | ||
| + | </nowiki> | ||
</pre> | </pre> | ||
| + | |||
{{Main_Page_Thumbnail|GollyLogoTransparent.png|Alt Text|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): | ||
| + | |||
| + | {| | ||
| + | | | ||
<pre> | <pre> | ||
| − | {{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas}} | + | <nowiki> |
| + | {{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=50}} | ||
| + | </nowiki> | ||
</pre> | </pre> | ||
| − | {{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas}} | + | |
| + | {{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=50}} | ||
| + | | | ||
| + | <pre> | ||
| + | <nowiki> | ||
| + | {{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=250}} | ||
| + | </nowiki> | ||
| + | </pre> | ||
| + | |||
| + | {{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=250}} | ||
| + | |} | ||
</noinclude> | </noinclude> | ||
Revision as of 22:00, 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
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):
{{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=50}}
|
{{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=250}}
|