Vorlage:Multiple image: Unterschied zwischen den Versionen

Aus Touhou Wiki
Zur Navigation springen Zur Suche springen
[unmarkierte Version][unmarkierte Version]
imported>Tony64
KKeine Bearbeitungszusammenfassung
imported>Tony64
KKeine Bearbeitungszusammenfassung
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 | center|centre = tnone | right|#default = tright}}" style="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|}}}
Zeile 8: Zeile 7:
     + 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 18: Zeile 14:
       +
       +
       8
       8
       }}<!--
       }}
  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}}}}}+

Version vom 20. Oktober 2011, 16:23 Uhr

See wikipedia:Template:Multiple image for documentation.