Difference between revisions of "Template:Thumb"

From WikiDelia
Jump to navigationJump to search
 
Line 1: Line 1:
 
<!-- Template for thumbnails of larger images with optional alternative title.
 
<!-- Template for thumbnails of larger images with optional alternative title.
 
     If the alternative title is omitted, the basename of the Image filename is used.
 
     If the alternative title is omitted, the basename of the Image filename is used.
    If the image filename is given without an extension, ".jpg" is automatically added.
 
 
   -- Usage: {{Thumb|DD160123}} displays DD160123.jpg with DD160123 as the image title
 
   -- Usage: {{Thumb|DD160123}} displays DD160123.jpg with DD160123 as the image title
 
   --        {{Thumb|DD160123|The Impromptu of Muswell Hill}} gives a different title
 
   --        {{Thumb|DD160123|The Impromptu of Muswell Hill}} gives a different title
 
   --        {{Thumb|DD160123|}} gives no title
 
   --        {{Thumb|DD160123|}} gives no title
  --[[Image:{{{1}}}.jpg|thumb|right|{{{2|{{{1}}}}}}]]
+
   -->[[Image:{{{1}}}.jpg|thumb|right|{{{2|{{{1}}}}}}]]
   -->[[Image:{{{1}}}{{#switch: {{#invoke:String|sub|{{{1}}}|-4}}
 
| .jpg
 
| .pdf
 
| .png = ""
 
| default .jpg
 
}}|thumb|right|{{{2|{{{1}}}}}}]]
 

Latest revision as of 21:01, 23 May 2016

[[Image:{{{1}}}.jpg|thumb|right|{{{1}}}]]