Revision as of 20:30, 11 April 2014 editWindroff (talk | contribs)1,490 edits Use underscore in parameters as in total_width← 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 | ||
(15 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
#REDIRECT] | |||
<includeonly>{{Auto images/aux | |||
|title={{{title|}}} | |||
|float={{#if:{{{float|}}}|{{{float|}}}|{{{align|}}}}} | |||
|text_align={{{text_align|left}}} | |||
|cont={{{cont|}}} | |||
|footer={{{footer|}}} | |||
|total_width={{{total_width|600}}} | |||
<!--Calculate ht, the common height of the images which makes the total width correct. | |||
Subtract 10 from the total width for each image to allow for padding round each image.--> | |||
|ht={{#expr:({{{total_width|600}}} - {{#if:{{{width1|}}}|10|0}} - {{#if:{{{width2|}}}|10|0}} - {{#if:{{{width3|}}}|10|0}} - {{#if:{{{width4|}}}|10|0}} - {{#if:{{{width5|}}}|10|0}} - | |||
{{#if:{{{width6|}}}|10|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: