Difference between revisions of "Template:Thumb2"

From WikiDelia
Jump to navigationJump to search
(Undo revisions 11895 and 11894)
 
Line 12: Line 12:
 
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}}}.jpg|thumb|right|{{{2|{{{1}}}}}}]]
+
-->[[Image:{{{1}}}{{#switch:{{#invoke:String|sub|{{{1}}}|-4}}|.gif=|.jpg=|.pdf=|.png=|.jpg}}|thumb|right|{{{2|{{{1}}}}}}]]

Latest revision as of 21:22, 23 May 2016

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