Template:Thumb2: Difference between revisions
From WikiDelia
Jump to navigationJump to search
Martinwguy (talk | contribs) No edit summary |
Martinwguy (talk | contribs) No edit summary |
||
| 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}}} | -->[[Image:{{{1}}}{{#switch:{{#invoke:String|sub|{{{1}}}|-4}}|.gif=|.jpg=|.pdf=|.png=|.jpg}}|thumb|right|{{{2|{{{1}}}}}}]] | ||
}}|thumb|right|{{{2|{{{1}}}}}}]] | |||
Revision as of 21:16, 23 May 2016
[[Image:{{{1}}}{{#switch:{{#invoke:String|sub|{{{1}}}|-4}}|.gif=|.jpg=|.pdf=|.png=|.jpg}}|thumb|right|{{{1}}}]]