Misplaced Pages

Template:Auto images: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 22:17, 16 July 2013 editPeter coxhead (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers, Template editors204,414 edits Update to allow an optional footer across the bottom of all the images← Previous edit Revision as of 22:44, 18 August 2013 edit undoPeter coxhead (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers, Template editors204,414 edits trying a different allowance for paddingNext edit →
Line 6: Line 6:
|total_width={{{total_width|600}}} |total_width={{{total_width|600}}}
<!--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.
Subtract 4 from the total width for each image to allow for padding of 2px all 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}} -
round each image.-->
{{#if:{{{width6|}}}|10|0}}) /
|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}}} }} }} + {{#expr:{{#ifeq:{{{height1|0}}}|0|0|{{#expr:{{{width1|0}}}/{{{height1|1}}} }} }} +
{{#ifeq:{{{height2|0}}}|0|0|{{#expr:{{{width2|0}}}/{{{height2|1}}} }} }} + {{#ifeq:{{{height2|0}}}|0|0|{{#expr:{{{width2|0}}}/{{{height2|1}}} }} }} +

Revision as of 22:44, 18 August 2013

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.