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 editContent deleted Content addedVisualWikitext
Revision as of 00:43, 24 January 2015 editSardanaphalus (talk | contribs)119,752 edits less homogenous code layout, moved |cont to top and |footer to foot of code, imageN parameter order per File: syntax, template name← 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 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
#REDIRECT]
<includeonly>{{Auto images/aux
| cont = {{{cont|}}}
| float = {{ #if:{{{float|}}} |{{{float|}}} |{{{align|}}} }}
| title = {{{title|}}}
| text_align = {{{text_align|{{{text-align|left}}}}}}

| 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}}}}} }}<!--
-->}}<!-- -->}}

|image1={{{image1|}}} |width1={{{width1|}}} |alt1={{{alt1|}}} |caption1={{{caption1|}}}
| ar1 = {{ #expr:{{ #ifeq:{{{height1|0}}}|0 |1 |{{#expr:{{{width1|0}}}/{{{height1|1}}}}} }} }}

|image2={{{image2|}}} |width2={{{width2|}}} |alt2={{{alt2|}}} |caption2={{{caption2|}}}
| ar2 = {{ #expr:{{ #ifeq:{{{height2|0}}}|0 |1 |{{#expr:{{{width2|0}}}/{{{height2|1}}}}} }} }}

|image3={{{image3|}}} |width3={{{width3|}}} |alt3={{{alt3|}}} |caption3={{{caption3|}}}
| ar3 = {{ #expr:{{ #ifeq:{{{height3|0}}}|0 |1 |{{#expr:{{{width3|0}}}/{{{height3|1}}}}} }} }}

|image4={{{image4|}}} |width4={{{width4|}}} |alt4={{{alt4|}}} |caption4={{{caption4|}}}
| ar4 = {{ #expr:{{ #ifeq:{{{height4|0}}}|0 |1 |{{#expr:{{{width4|0}}}/{{{height4|1}}}}} }} }}

|image5={{{image5|}}} |width5={{{width5|}}} |alt5={{{alt5|}}} |caption5={{{caption5|}}}
| ar5 = {{ #expr:{{ #ifeq:{{{height5|0}}}|0 |1 |{{#expr:{{{width5|0}}}/{{{height5|1}}}}} }} }}

|image6={{{image6|}}} |width6={{{width6|}}} |alt6={{{alt6|}}} |caption6={{{caption6|}}}
| ar6 = {{ #expr:{{ #ifeq:{{{height6|0}}}|0 |1 |{{#expr:{{{width6|0}}}/{{{height6|1}}}}} }} }}

| footer = {{{footer|}}}

}}</includeonly><noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 06:07, 20 August 2015

Redirect to: