Revision as of 22:17, 16 July 2013 editPeter coxhead (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers, Template editors203,834 edits Update to allow an optional footer across the bottom of all the images← Previous edit | Latest revision as of 06:07, 20 August 2015 edit undoOpabinia regalis (talk | contribs)Autopatrolled, Administrators16,306 edits redirect per tfd Misplaced Pages:Templates_for_discussion/Log/2015_August_11#Template:Auto_images | ||
(24 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
#REDIRECT] | |||
<includeonly>{{Auto images/aux | |||
|title={{{title|}}} | |||
|align={{{align|}}} | |||
|cont={{{cont|}}} | |||
|footer={{{footer|}}} | |||
|total_width={{{total_width|600}}} | |||
<!--Calculate ht, the common height of the images which makes the total width correct. | |||
Subtract 4 from the total width for each image to allow for padding of 2px all | |||
round each image.--> | |||
|ht={{#expr:({{{total_width|600}}} - {{#if:{{{width1|}}}|4|0}} - {{#if:{{{width2|}}}|4|0}} - {{#if:{{{width3|}}}|4|0}} - {{#if:{{{width4|}}}|4|0}} - {{#if:{{{width5|}}}|4|0}} - | |||
{{#if:{{{width6|}}}|4|0}}) / | |||
{{#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|}}} | |||
|ar1={{#expr:{{#ifeq:{{{height1|0}}}|0|1|{{#expr:{{{width1|0}}}/{{{height1|1}}}}}}}}} | |||
|width2={{{width2|}}}|image2={{{image2|}}}|caption2={{{caption2|}}}|alt2={{{alt2|}}} | |||
|ar2={{#expr:{{#ifeq:{{{height2|0}}}|0|1|{{#expr:{{{width2|0}}}/{{{height2|1}}}}}}}}} | |||
|width3={{{width3|}}}|image3={{{image3|}}}|caption3={{{caption3|}}}|alt3={{{alt3|}}} | |||
|ar3={{#expr:{{#ifeq:{{{height3|0}}}|0|1|{{#expr:{{{width3|0}}}/{{{height3|1}}}}}}}}} | |||
|width4={{{width4|}}}|image4={{{image4|}}}|caption4={{{caption4|}}}|alt4={{{alt4|}}} | |||
|ar4={{#expr:{{#ifeq:{{{height4|0}}}|0|1|{{#expr:{{{width4|0}}}/{{{height4|1}}}}}}}}} | |||
|width5={{{width5|}}}|image5={{{image5|}}}|caption5={{{caption5|}}}|alt5={{{alt5|}}} | |||
|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}}}}}}}}} | |||
}}</includeonly><noinclude> | |||
{{template doc}} | |||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | |||
</noinclude> |
Latest revision as of 06:07, 20 August 2015
Redirect to: