Revision as of 21:10, 21 February 2012 editPeter coxhead (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers, Template editors203,834 editsNo edit summary← Previous edit | Revision as of 21:21, 21 February 2012 edit undoPeter coxhead (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers, Template editors203,834 edits increased to 6 imagesNext edit → | ||
Line 3: | Line 3: | ||
|align={{{align|}}} | |align={{{align|}}} | ||
<!--Calculate ht, the common height of the images which makes the total width correct--> | <!--Calculate ht, the common height of the images which makes the total width correct--> | ||
|ht={{#expr: {{{total_width|600}}} / {{#expr: {{#ifeq: {{{height1|0}}} | 0| 0 | {{#expr: {{{width1|0}}} / {{{height1|1}}} }} }}+{{#ifeq: {{{height2|0}}} | 0| 0 | {{#expr: {{{width2|0}}} / {{{height2|1}}} }} }}+{{#ifeq: {{{height3|0}}} | 0| 0 | {{#expr: {{{width3|0}}} / {{{height3|1}}} }} }}+{{#ifeq: {{{height4|0}}} | 0| 0 | {{#expr: {{{width4|0}}} / {{{height4|1}}} }} }}+{{#ifeq: {{{height5|0}}} | 0| 0 | {{#expr: {{{width5|0}}} / {{{height5|1}}} }} }} }} }} | |ht={{#expr: {{{total_width|600}}} / {{#expr: {{#ifeq: {{{height1|0}}} | 0| 0 | {{#expr: {{{width1|0}}} / {{{height1|1}}} }} }}+{{#ifeq: {{{height2|0}}} | 0| 0 | {{#expr: {{{width2|0}}} / {{{height2|1}}} }} }}+{{#ifeq: {{{height3|0}}} | 0| 0 | {{#expr: {{{width3|0}}} / {{{height3|1}}} }} }}+{{#ifeq: {{{height4|0}}} | 0| 0 | {{#expr: {{{width4|0}}} / {{{height4|1}}} }} }}+{{#ifeq: {{{height5|0}}} | 0| 0 | {{#expr: {{{width5|0}}} / {{{height5|1}}} }} }}+{{#ifeq: {{{height6|0}}} | 0| 0 | {{#expr: {{{width6|0}}} / {{{height6|1}}} }} }} }} }} | ||
|width1={{{width1|}}}|image1={{{image1|}}}|caption1={{{caption1|}}}|alt1={{{alt1|}}} | |width1={{{width1|}}}|image1={{{image1|}}}|caption1={{{caption1|}}}|alt1={{{alt1|}}} | ||
|ar1={{#expr:{{#ifeq:{{{height1|0}}}|0|1|{{#expr:{{{width1|0}}}/{{{height1|1}}}}}}}}} | |ar1={{#expr:{{#ifeq:{{{height1|0}}}|0|1|{{#expr:{{{width1|0}}}/{{{height1|1}}}}}}}}} | ||
Line 14: | Line 14: | ||
|width5={{{width5|}}}|image5={{{image5|}}}|caption5={{{caption5|}}}|alt5={{{alt5|}}} | |width5={{{width5|}}}|image5={{{image5|}}}|caption5={{{caption5|}}}|alt5={{{alt5|}}} | ||
|ar5={{#expr:{{#ifeq:{{{height5|0}}}|0|1|{{#expr:{{{width5|0}}}/{{{height5|1}}}}}}}}} | |ar5={{#expr:{{#ifeq:{{{height5|0}}}|0|1|{{#expr:{{{width5|0}}}/{{{height5|1}}}}}}}}} | ||
|width6={{{width6|}}}|image6={{{image6|}}}|caption6={{{caption6|}}}|alt6={{{alt6|}}} | |||
|ar6={{#expr:{{#ifeq:{{{height6|0}}}|0|1|{{#expr:{{{width6|0}}}/{{{height6|1}}}}}}}}} | |||
}}<noinclude> | }}<noinclude> | ||
{{template doc}} | {{template doc}} |
Revision as of 21:21, 21 February 2012
Template documentation[create] [purge] Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.Add categories to the /doc subpage. Subpages of this template.