Template:Main Page Thumbnail: Difference between revisions

From Golly.Life Wiki

(Created page with "<includeonly> [[Image:{{{1}}}|150x150px|alt={{{2|}}}|link={{{link|}}}]] </includeonly> <noinclude> Example usage: <pre> {{Main_Page_Thumbnail|GollyLogoTransparent.png|Alt Text...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
[[Image:{{{1}}}|150x150px|alt={{{2|}}}|link={{{link|}}}]]
[[Image:{{{1}}}|{{{size|100}}}x{{{size|100}}}px|alt={{{2|}}}|link={{{3|}}}]]
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Example usage:
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
 
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:
 
<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):
{|
|+
!<code>size=50</code> example
!<code>size=200</code> example
|-
|<pre>
<nowiki>
{{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=50}}
</nowiki>
</pre>
|<pre>
<nowiki>
{{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=200}}
</nowiki>
</pre>
|-
|{{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=50}}
|{{Main_Page_Thumbnail|BTX.png|Baltimore Texas|Baltimore Texas|size=200}}
|}
</noinclude>
</noinclude>

Latest revision as of 01:22, 6 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}}


Alt Text


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}}

Baltimore Texas


Baltimore Texas