Vorlage:Multiple image: Unterschied zwischen den Versionen

[unmarkierte Version][gesichtete Version]
imported>Tony64
K nope
K 20 Versionen importiert: Fehlende Vorlagen
 
(8 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 1: Zeile 1:
{{#if:{{{image1|}}}{{{image2|}}}{{{image3|}}}{{{image4|}}}{{{image5|}}}{{{image6|}}}{{{image7|}}}{{{image8|}}}{{{image9|}}}{{{image10|}}}|<div class="thumb {{#switch: {{{align|}}} | left = tleft | center|centre = tnone | right|#default = tright}}" style="width: {{#switch:{{{direction|}}}<!--
{{#if:{{{image1|}}}{{{image2|}}}{{{image3|}}}{{{image4|}}}{{{image5|}}}{{{image6|}}}{{{image7|}}}{{{image8|}}}{{{image9|}}}{{{image10|}}}|<div class="thumb {{#switch: {{{align|}}} | left = tleft|none | center|centre = tnone | right|#default = tright}}" style="max-width: {{#switch:{{{direction|}}}
If stacked vertically, box width = largest width + 12 px (6 px margin on left and right) -->
| vertical              = {{#expr:
| vertical              = {{#expr:
     {{#if:{{{width|}}}
     {{#if:{{{width|}}}
       | {{{width}}}
       | {{{width}}}
       | {{Max/27 | {{{width1|200}}} | {{{width2|}}} | {{{width3|}}} | {{{width4|}}} | {{{width5|}}} | {{{width6|}}} | {{{width7|}}} | {{{width8|}}} | {{{width9|}}} | {{{width10|}}} | 0 }}
       | {{Max/12 | {{{width1|200}}} | {{{width2|}}} | {{{width3|}}} | {{{width4|}}} | {{{width5|}}} | {{{width6|}}} | {{{width7|}}} | {{{width8|}}} | {{{width9|}}} | {{{width10|}}} | 0 }}
     }}
     }}
     + 12
     + 12
   }}
   }}
| horizontal | #default  = {{#if:{{{width|}}}<!--
| horizontal | #default  = {{#if:{{{width|}}}
  If stacked horizontally and a single common width was passed for use in all images,
  box width = (common width + 4px) * number of images + 8.
  This creates a 4px margin between the images, and a 6px margin on each side -->
   |{{#expr:
   |{{#expr:
       ({{{width}}}+4)
       ({{{width}}}+4)
Zeile 17: Zeile 13:
       {{Template:Multiple image/numImgs | {{{image1|}}} | {{{image2|}}} | {{{image3|}}} | {{{image4|}}} | {{{image5|}}} | {{{image6|}}} | {{{image7|}}} | {{{image8|}}} | {{{image9|}}} | {{{image10|}}} }}
       {{Template:Multiple image/numImgs | {{{image1|}}} | {{{image2|}}} | {{{image3|}}} | {{{image4|}}} | {{{image5|}}} | {{{image6|}}} | {{{image7|}}} | {{{image8|}}} | {{{image9|}}} | {{{image10|}}} }}
       +
       +
       8
       9
       }}<!--
       }}
  If stacked horizontally and a custom width was passed for each image,
  box width = sum of all widths + 4 pixels of margin between each pair of images + 16 pixels of margin (8 on each side of the box) (why not 6px as in other cases?...)-->
   |{{#expr:
   |{{#expr:
       {{#if:{{{image1|}}} |{{{width1|200}}}}}+
       {{#if:{{{image1|}}} |{{{width1|200}}}}}+
Zeile 35: Zeile 29:
       4 * ({{Template:Multiple image/numImgs | {{{image1|}}} | {{{image2|}}} | {{{image3|}}} | {{{image4|}}} | {{{image5|}}} | {{{image6|}}} | {{{image7|}}} | {{{image8|}}} | {{{image9|}}} | {{{image10|}}} }} - 2)
       4 * ({{Template:Multiple image/numImgs | {{{image1|}}} | {{{image2|}}} | {{{image3|}}} | {{{image4|}}} | {{{image5|}}} | {{{image6|}}} | {{{image7|}}} | {{{image8|}}} | {{{image9|}}} | {{{image10|}}} }} - 2)
       +
       +
       16
       17
       }}
       }}
   }}
   }}
Zeile 131: Zeile 125:
</div>
</div>
</div>
</div>
}}<noinclude>
}}<noinclude>See [[wikipedia:Template:Multiple image]] for documentation. This [[Template:Multiple image/numImgs|sub-page]] is an extended part for this template and should not be edited.
See [[wikipedia:Template:Multiple image]] for documentation.
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>