Difference between revisions of "Template:ScaleImage"

From Wythepedia: The George Wythe Encyclopedia
Jump to: navigation, search
(Adding link=)
Line 1: Line 1:
<includeonly>[[File:{{{imagename}}}|link={{{link}}}|{{#expr: {{#imgw: {{{imagename}}} }} * {{{newwidth}}} / 100 round 0 }}px|{{{caption}}}]]</includeonly>
+
<includeonly>[[File:{{{imagename}}}|{{ #if:{{#pos:{{{newwidth|100}}}|px}}|{{{newwidth|100}}}| {{#expr: {{#expr: ({{#imgw: {{{imagename}}} }} * {{{newwidth|100}}}) / 100 }} round 0 }}px }}|{{{caption}}}]]</includeonly>

Revision as of 13:05, 2 October 2013