Difference between revisions of "Template:Thumb2"

From WikiDelia
Jump to navigationJump to search
(Created page with "<!-- Template for thumbnails of larger images with optional alternative title. If the alternative title is omitted, the basename of the Image filename is used. -- Usage...")
 
Line 11: Line 11:
 
   -- It doesn't work, I think because the {{#switch is processed too early,
 
   -- It doesn't work, I think because the {{#switch is processed too early,
 
   -- before the calling page has supplied the parameter value to switch on.
 
   -- before the calling page has supplied the parameter value to switch on.
[[Image:{{{1}}}{{#switch: {{#invoke:String|sub|{{{1}}}|-4}}
+
-->[[Image:{{{1}}}{{#switch: {{#invoke:String|sub|{{{1}}}|-4}}
 
  | .jpg =
 
  | .jpg =
 
  | .pdf =
 
  | .pdf =

Revision as of 21:03, 23 May 2016

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