Difference between revisions of "Template:MontageBox"

From EvaWiki
Jump to: navigation, search
(Major changes to 30 image table + add 5 column mode)
Line 1: Line 1:
 
<includeonly>{|style="float: {{#if:{{{float|}}}|{{{float|}}}|left}}; width: 1px; text-align: center; vertical-align: center; font-size: 90%; border: 1px solid #aaaaaa;" cellspacing="0" cellpadding="2" border="0"
 
<includeonly>{|style="float: {{#if:{{{float|}}}|{{{float|}}}|left}}; width: 1px; text-align: center; vertical-align: center; font-size: 90%; border: 1px solid #aaaaaa;" cellspacing="0" cellpadding="2" border="0"
 
{{#if:{{{title|}}}|{{!}}-
 
{{#if:{{{title|}}}|{{!}}-
{{!}}style="background: tan; font-size: 120%; text-align: center" colspan="{{{columns|1}}}" {{!}} '''{{{title}}}''' }}
+
{{!}}style="background: {{#if:{{{colour|}}}|{{{colour|}}}|tan}}; font-size: 120%; text-align: center" colspan="{{{columns|1}}}" {{!}} '''{{{title}}}''' }}
 
{{#ifeq:{{{columns|1}}}|1|{{!}}-
 
{{#ifeq:{{{columns|1}}}|1|{{!}}-
 
{{!}} {{{image1}}}
 
{{!}} {{{image1}}}
Line 17: Line 17:
 
{{#if:{{{image11|}}}|{{!}}-
 
{{#if:{{{image11|}}}|{{!}}-
 
{{!}} {{{image11|}}} {{!}}{{!}} {{{image12|}}} }}
 
{{!}} {{{image11|}}} {{!}}{{!}} {{{image12|}}} }}
 +
{{#if:{{{image13|}}}|{{!}}-
 +
{{!}} {{{image13|}}} {{!}}{{!}} {{{image14|}}} }}
 +
{{#if:{{{image15|}}}|{{!}}-
 +
{{!}} {{{image15|}}} {{!}}{{!}} {{{image16|}}} }}
 +
{{#if:{{{image17|}}}|{{!}}-
 +
{{!}} {{{image17|}}} {{!}}{{!}} {{{image18|}}} }}
 +
{{#if:{{{image19|}}}|{{!}}-
 +
{{!}} {{{image19|}}} {{!}}{{!}} {{{image20|}}} }}
 +
{{#if:{{{image21|}}}|{{!}}-
 +
{{!}} {{{image21|}}} {{!}}{{!}} {{{image22|}}} }}
 +
{{#if:{{{image23|}}}|{{!}}-
 +
{{!}} {{{image23|}}} {{!}}{{!}} {{{image24|}}} }}
 +
{{#if:{{{image25|}}}|{{!}}-
 +
{{!}} {{{image25|}}} {{!}}{{!}} {{{image26|}}} }}
 +
{{#if:{{{image27|}}}|{{!}}-
 +
{{!}} {{{image27|}}} {{!}}{{!}} {{{image28|}}} }}
 +
{{#if:{{{image29|}}}|{{!}}-
 +
{{!}} {{{image29|}}} {{!}}{{!}} {{{image30|}}} }}
 
}} {{#ifeq:{{{columns}}}|3|
 
}} {{#ifeq:{{{columns}}}|3|
 
{{#if:{{{image1|}}}|{{!}}-
 
{{#if:{{{image1|}}}|{{!}}-
Line 26: Line 44:
 
{{#if:{{{image10|}}}|{{!}}-
 
{{#if:{{{image10|}}}|{{!}}-
 
{{!}} {{{image10|}}} {{!}}{{!}} {{{image11|}}} {{!}}{{!}} {{{image12|}}} }}
 
{{!}} {{{image10|}}} {{!}}{{!}} {{{image11|}}} {{!}}{{!}} {{{image12|}}} }}
 +
{{#if:{{{image13|}}}|{{!}}-
 +
{{!}} {{{image13|}}} {{!}}{{!}} {{{image14|}}} {{!}}{{!}} {{{image15|}}} }}
 +
{{#if:{{{image16|}}}|{{!}}-
 +
{{!}} {{{image16|}}} {{!}}{{!}} {{{image17|}}} {{!}}{{!}} {{{image18|}}} }}
 +
{{#if:{{{image19|}}}|{{!}}-
 +
{{!}} {{{image19|}}} {{!}}{{!}} {{{image20|}}} {{!}}{{!}} {{{image21|}}} }}
 +
{{#if:{{{image22|}}}|{{!}}-
 +
{{!}} {{{image22|}}} {{!}}{{!}} {{{image23|}}} {{!}}{{!}} {{{image24|}}} }}
 +
{{#if:{{{image25|}}}|{{!}}-
 +
{{!}} {{{image25|}}} {{!}}{{!}} {{{image26|}}} {{!}}{{!}} {{{image27|}}} }}
 +
{{#if:{{{image28|}}}|{{!}}-
 +
{{!}} {{{image28|}}} {{!}}{{!}} {{{image29|}}} {{!}}{{!}} {{{image30|}}} }}
 +
}} {{#ifeq:{{{columns}}}|5|
 +
{{#if:{{{image1|}}}|{{!}}-
 +
{{!}} {{{image1|}}} {{!}}{{!}} {{{image2|}}} {{!}}{{!}} {{{image3|}}} {{!}}{{!}} {{{image4|}}} {{!}}{{!}} {{{image5|}}} }}
 +
{{#if:{{{image6|}}}|{{!}}-
 +
{{!}} {{{image6|}}} {{!}}{{!}} {{{image7|}}} {{!}}{{!}} {{{image8|}}} {{!}}{{!}} {{{image9|}}} {{!}}{{!}} {{{image10|}}} }}
 +
{{#if:{{{image11|}}}|{{!}}-
 +
{{!}} {{{image11|}}} {{!}}{{!}} {{{image12|}}} {{!}}{{!}} {{{image13|}}} {{!}}{{!}} {{{image14|}}} {{!}}{{!}} {{{image15|}}} }}
 +
{{#if:{{{image16|}}}|{{!}}-
 +
{{!}} {{{image16|}}} {{!}}{{!}} {{{image17|}}} {{!}}{{!}} {{{image18|}}} {{!}}{{!}} {{{image19|}}} {{!}}{{!}} {{{image20|}}} }}
 +
{{#if:{{{image21|}}}|{{!}}-
 +
{{!}} {{{image21|}}} {{!}}{{!}} {{{image22|}}} {{!}}{{!}} {{{image23|}}} {{!}}{{!}} {{{image24|}}} {{!}}{{!}} {{{image25|}}} }}
 +
{{#if:{{{image26|}}}|{{!}}-
 +
{{!}} {{{image26|}}} {{!}}{{!}} {{{image27|}}} {{!}}{{!}} {{{image28|}}} {{!}}{{!}} {{{image29|}}} {{!}}{{!}} {{{image30|}}} }}
 
}}
 
}}
 
|-
 
|-
Line 33: Line 76:
 
This template is intended to make the presentation of multiple images in one gallery group easier.
 
This template is intended to make the presentation of multiple images in one gallery group easier.
  
The MontageBox can handle up to 12 images, in a 2 or three column format. The format creates a new row if a column is full, and fills up the next row from left to right.
+
The MontageBox can handle up to 30 images, in a 2, 3  or 5 column format. The format creates a new row if a column is full, and fills up the next row from left to right.
  
 
The MontageBox is also capable of displaying a single image.
 
The MontageBox is also capable of displaying a single image.
  
 
In all cases, a title and caption may be provided, and floating behavior specified.
 
In all cases, a title and caption may be provided, and floating behavior specified.
 +
 +
The header background colour may be specified using the colour parameter. Tye colour defaults to 'tan'
  
 
== How To Use This ==
 
== How To Use This ==
Line 46: Line 91:
 
|columns =
 
|columns =
 
|title  =
 
|title  =
 +
|colour  =
 
|image1  =
 
|image1  =
 
|image2  =
 
|image2  =
Line 58: Line 104:
 
|image11 =
 
|image11 =
 
|image12 =
 
|image12 =
 +
|image13 =
 +
|image14 =
 +
|image15 =
 +
|image16 =
 +
|image17 =
 +
|image18 =
 +
|image19 =
 +
|image20 =
 +
|image21 =
 +
|image22 =
 +
|image23 =
 +
|image24 =
 +
|image25 =
 +
|image26 =
 +
|image27 =
 +
|image28 =
 +
|image29 =
 +
|image30 =
 
|caption =
 
|caption =
  
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
Here is a shorter template provided for convenience
 +
 +
<pre>{{MontageBox
 +
|float  =
 +
|columns =
 +
|title  =
 +
|colour  =
 +
|image1  =
 +
|image2  =
 +
|image3  =
 +
|image4  =
 +
|image5  =
 +
|image6  =
 +
|image7  =
 +
|image8  =
 +
|image9  =
 +
|image10 =
 +
|image11 =
 +
|image12 =
 +
|caption =
 +
 +
}}
 +
</pre>
 +
  
 
Not all images need be supplied. The title and caption are optional. The default float behaviour is "left".
 
Not all images need be supplied. The title and caption are optional. The default float behaviour is "left".
Line 104: Line 193:
 
<pre>{{MontageBox
 
<pre>{{MontageBox
 
|title  =3 Images of Rei (3 column table)
 
|title  =3 Images of Rei (3 column table)
 +
|colour  =LightPink
 
|columns = 3
 
|columns = 3
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
Line 111: Line 201:
 
*text here
 
*text here
 
*and here
 
*and here
}}</pre>
+
}}
 +
</pre>
 
{{-}}
 
{{-}}
  
 
{{MontageBox
 
{{MontageBox
 
|title  =3 Images of Rei (3 column table)
 
|title  =3 Images of Rei (3 column table)
 +
|colour  =LightPink
 
|columns = 3
 
|columns = 3
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
Line 130: Line 222:
 
|title  =3 Images of Rei (2 column table)
 
|title  =3 Images of Rei (2 column table)
 
|columns = 2
 
|columns = 2
 +
|colour  = LightBlue
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image2  =[[Image:Reimoon1a.jpg|150px]]
 
|image2  =[[Image:Reimoon1a.jpg|150px]]
Line 142: Line 235:
 
|title  =3 Images of Rei (2 column table)
 
|title  =3 Images of Rei (2 column table)
 
|columns = 2
 
|columns = 2
 +
|colour  = LightBlue
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image2  =[[Image:Reimoon1a.jpg|150px]]
 
|image2  =[[Image:Reimoon1a.jpg|150px]]
Line 154: Line 248:
 
<pre>{{MontageBox
 
<pre>{{MontageBox
 
|title  =4 Images (2 column table)
 
|title  =4 Images (2 column table)
 +
|colour  = LightBlue
 
|columns = 2
 
|columns = 2
 
|image1  =[[Image:Shinji Rei Escalator.jpg|200px]]
 
|image1  =[[Image:Shinji Rei Escalator.jpg|200px]]
Line 167: Line 262:
 
{{MontageBox
 
{{MontageBox
 
|title  =4 Images (2 column table)
 
|title  =4 Images (2 column table)
 +
|colour  = LightBlue
 
|columns = 2
 
|columns = 2
 
|image1  =[[Image:Shinji Rei Escalator.jpg|200px]]
 
|image1  =[[Image:Shinji Rei Escalator.jpg|200px]]
Line 214: Line 310:
 
===Example 7===
 
===Example 7===
 
<pre>{{MontageBox
 
<pre>{{MontageBox
|title  =12 Images (3 column table)
+
|title  =8 Images (5 column table)
 +
|columns = 5
 +
|image1  =[[Image:Reimoon2.jpg|150px]]
 +
|image2  =[[Image:Reimoon1a.jpg|150px]]
 +
|image3  =[[Image:Reimoon4.jpg|150px]]
 +
|image4  =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image5  =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image6  =[[Image: Japan Blackout.jpg|150px]]
 +
|image7  =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image8  =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|caption =
 +
Various Images in a Table
 +
}}</pre>
 +
{{-}}
 +
 
 +
{{MontageBox
 +
|title  =8 Images (5 column table)
 +
|columns = 5
 +
|image1  =[[Image:Reimoon2.jpg|150px]]
 +
|image2  =[[Image:Reimoon1a.jpg|150px]]
 +
|image3  =[[Image:Reimoon4.jpg|150px]]
 +
|image4  =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image5  =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image6  =[[Image: Japan Blackout.jpg|150px]]
 +
|image7  =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image8  =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|caption =
 +
Various Images in a Table
 +
}}
 +
{{-}}
 +
 
 +
===Example 8===
 +
 
 +
<pre>{{MontageBox
 +
|title  =30 Images (2 column table)
 +
|columns = 2|image1  =[[Image:Reimoon2.jpg|150px]]
 +
|image2  =[[Image:Reimoon1a.jpg|150px]]
 +
|image3  =[[Image:Reimoon4.jpg|150px]]
 +
|image4  =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image5  =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image6  =[[Image: Japan Blackout.jpg|150px]]
 +
|image7  =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image8  =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
 +
|image11 =[[Image:Reimoon2.jpg|150px]]
 +
|image12 =[[Image:Reimoon1a.jpg|150px]]
 +
|image13 =[[Image:Reimoon4.jpg|150px]]
 +
|image14 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image15 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image16 =[[Image: Japan Blackout.jpg|150px]]
 +
|image17 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image18 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image19 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image20 =[[Image:FGC 01 C076d.jpg|150px]]
 +
|image21 =[[Image:Reimoon2.jpg|150px]]
 +
|image22 =[[Image:Reimoon1a.jpg|150px]]
 +
|image23 =[[Image:Reimoon4.jpg|150px]]
 +
|image24 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image25 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image26 =[[Image: Japan Blackout.jpg|150px]]
 +
|image27 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image28 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image29 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image30 =[[Image:FGC 01 C076d.jpg|150px]]
 +
 
 +
|caption =
 +
The maximimum number of images in a table with two columns.
 +
}}</pre>
 +
{{-}}
 +
 
 +
{{MontageBox
 +
|title  =30 Images (2 column table)
 +
|columns = 2|image1  =[[Image:Reimoon2.jpg|150px]]
 +
|image2  =[[Image:Reimoon1a.jpg|150px]]
 +
|image3  =[[Image:Reimoon4.jpg|150px]]
 +
|image4  =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image5  =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image6  =[[Image: Japan Blackout.jpg|150px]]
 +
|image7  =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image8  =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
 +
|image11 =[[Image:Reimoon2.jpg|150px]]
 +
|image12 =[[Image:Reimoon1a.jpg|150px]]
 +
|image13 =[[Image:Reimoon4.jpg|150px]]
 +
|image14 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image15 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image16 =[[Image: Japan Blackout.jpg|150px]]
 +
|image17 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image18 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image19 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image20 =[[Image:FGC 01 C076d.jpg|150px]]
 +
|image21 =[[Image:Reimoon2.jpg|150px]]
 +
|image22 =[[Image:Reimoon1a.jpg|150px]]
 +
|image23 =[[Image:Reimoon4.jpg|150px]]
 +
|image24 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image25 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image26 =[[Image: Japan Blackout.jpg|150px]]
 +
|image27 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image28 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image29 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image30 =[[Image:FGC 01 C076d.jpg|150px]]
 +
|caption =
 +
The maximimum number of images in a table with two columns.
 +
}}
 +
{{-}}
 +
===Example 9===
 +
 
 +
<pre>{{MontageBox
 +
|title  =30 Images (3 column table)
 
|columns = 3
 
|columns = 3
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
Line 226: Line 432:
 
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
 
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
|image11 =[[Image:FGC 01 C219b.jpg|150px]]
+
|image11 =[[Image:Reimoon2.jpg|150px]]
|image12 =[[Image:FGC 01 C284r.jpg|150px]]
+
|image12 =[[Image:Reimoon1a.jpg|150px]]
 +
|image13 =[[Image:Reimoon4.jpg|150px]]
 +
|image14 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image15 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image16 =[[Image: Japan Blackout.jpg|150px]]
 +
|image17 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image18 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image19 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image20 =[[Image:FGC 01 C076d.jpg|150px]]
 +
|image21 =[[Image:Reimoon2.jpg|150px]]
 +
|image22 =[[Image:Reimoon1a.jpg|150px]]
 +
|image23 =[[Image:Reimoon4.jpg|150px]]
 +
|image24 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image25 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image26 =[[Image: Japan Blackout.jpg|150px]]
 +
|image27 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image28 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image29 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image30 =[[Image:FGC 01 C076d.jpg|150px]]
 
|caption =
 
|caption =
 
The maximimum number of images in a table with three columns.
 
The maximimum number of images in a table with three columns.
Line 235: Line 459:
  
 
{{MontageBox
 
{{MontageBox
|title  =12 Images (3 column table)
+
|title  =30 Images (3 column table)
 
|columns = 3
 
|columns = 3
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
Line 247: Line 471:
 
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
 
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
|image11 =[[Image:FGC 01 C219b.jpg|150px]]
+
|image11 =[[Image:Reimoon2.jpg|150px]]
|image12 =[[Image:FGC 01 C284r.jpg|150px]]
+
|image12 =[[Image:Reimoon1a.jpg|150px]]
 +
|image13 =[[Image:Reimoon4.jpg|150px]]
 +
|image14 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image15 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image16 =[[Image: Japan Blackout.jpg|150px]]
 +
|image17 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image18 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image19 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image20 =[[Image:FGC 01 C076d.jpg|150px]]
 +
|image21 =[[Image:Reimoon2.jpg|150px]]
 +
|image22 =[[Image:Reimoon1a.jpg|150px]]
 +
|image23 =[[Image:Reimoon4.jpg|150px]]
 +
|image24 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image25 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image26 =[[Image: Japan Blackout.jpg|150px]]
 +
|image27 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image28 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image29 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image30 =[[Image:FGC 01 C076d.jpg|150px]]
 
|caption =
 
|caption =
 
The maximimum number of images in a table with three columns.
 
The maximimum number of images in a table with three columns.
Line 255: Line 497:
 
{{-}}
 
{{-}}
  
===Example 8===
+
===Example 10===
 
 
 
<pre>{{MontageBox
 
<pre>{{MontageBox
|title  =12 Images (2 column table)
+
|title  =30 Images (5 column table)
|columns = 2
+
|columns = 5
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image2  =[[Image:Reimoon1a.jpg|150px]]
 
|image2  =[[Image:Reimoon1a.jpg|150px]]
Line 270: Line 511:
 
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
 
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
|image11 =[[Image:FGC 01 C219b.jpg|150px]]
+
|image11 =[[Image:Reimoon2.jpg|150px]]
|image12 =[[Image:FGC 01 C284r.jpg|150px]]
+
|image12 =[[Image:Reimoon1a.jpg|150px]]
 +
|image13 =[[Image:Reimoon4.jpg|150px]]
 +
|image14 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image15 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image16 =[[Image: Japan Blackout.jpg|150px]]
 +
|image17 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image18 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image19 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image20 =[[Image:FGC 01 C076d.jpg|150px]]
 +
|image21 =[[Image:Reimoon2.jpg|150px]]
 +
|image22 =[[Image:Reimoon1a.jpg|150px]]
 +
|image23 =[[Image:Reimoon4.jpg|150px]]
 +
|image24 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image25 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image26 =[[Image: Japan Blackout.jpg|150px]]
 +
|image27 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image28 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image29 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image30 =[[Image:FGC 01 C076d.jpg|150px]]
 
|caption =
 
|caption =
The maximimum number of images in a table with two columns.
+
The maximimum number of images in a table with five columns.
 
}}</pre>
 
}}</pre>
 
{{-}}
 
{{-}}
  
 
{{MontageBox
 
{{MontageBox
|title  =12 Images (2 column table)
+
|title  =30 Images (5 column table)
|columns = 2
+
|columns = 5
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image2  =[[Image:Reimoon1a.jpg|150px]]
 
|image2  =[[Image:Reimoon1a.jpg|150px]]
Line 290: Line 549:
 
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
 
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
 
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
|image11 =[[Image:FGC 01 C219b.jpg|150px]]
+
|image11 =[[Image:Reimoon2.jpg|150px]]
|image12 =[[Image:FGC 01 C284r.jpg|150px]]
+
|image12 =[[Image:Reimoon1a.jpg|150px]]
 +
|image13 =[[Image:Reimoon4.jpg|150px]]
 +
|image14 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image15 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image16 =[[Image: Japan Blackout.jpg|150px]]
 +
|image17 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image18 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image19 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image20 =[[Image:FGC 01 C076d.jpg|150px]]
 +
|image21 =[[Image:Reimoon2.jpg|150px]]
 +
|image22 =[[Image:Reimoon1a.jpg|150px]]
 +
|image23 =[[Image:Reimoon4.jpg|150px]]
 +
|image24 =[[Image:Nerv swimming pool.jpg|150px]]
 +
|image25 =[[Image:Shinji Rei Escalator.jpg|150px]]
 +
|image26 =[[Image: Japan Blackout.jpg|150px]]
 +
|image27 =[[Image:Dance Vs Israfel.jpg|150px]]
 +
|image28 =[[Image:Fuyutsuki Candle.jpg|150px]]
 +
|image29 =[[Image:FGC 01 C003a.jpg|150px]]
 +
|image30 =[[Image:FGC 01 C076d.jpg|150px]]
 
|caption =
 
|caption =
The maximimum number of images in a table with two columns.
+
The maximimum number of images in a table with five columns.
 
}}
 
}}
 +
{{-}}
 +
  
 
[[Category:Templates]]
 
[[Category:Templates]]
  
 
</noinclude>
 
</noinclude>

Revision as of 06:59, 5 April 2008

This template is intended to make the presentation of multiple images in one gallery group easier.

The MontageBox can handle up to 30 images, in a 2, 3 or 5 column format. The format creates a new row if a column is full, and fills up the next row from left to right.

The MontageBox is also capable of displaying a single image.

In all cases, a title and caption may be provided, and floating behavior specified.

The header background colour may be specified using the colour parameter. Tye colour defaults to 'tan'

How To Use This

Just use the following code and fill in your values. Not all values need be used.

{{MontageBox
|float   =
|columns =
|title   =
|colour  =
|image1  =
|image2  =
|image3  =
|image4  =
|image5  =
|image6  =
|image7  =
|image8  =
|image9  =
|image10 =
|image11 =
|image12 =
|image13 =
|image14 =
|image15 =
|image16 =
|image17 =
|image18 =
|image19 =
|image20 =
|image21 =
|image22 =
|image23 =
|image24 =
|image25 =
|image26 =
|image27 =
|image28 =
|image29 =
|image30 =
|caption =

}}

Here is a shorter template provided for convenience

{{MontageBox
|float   =
|columns =
|title   =
|colour  =
|image1  =
|image2  =
|image3  =
|image4  =
|image5  =
|image6  =
|image7  =
|image8  =
|image9  =
|image10 =
|image11 =
|image12 =
|caption =

}}


Not all images need be supplied. The title and caption are optional. The default float behaviour is "left".

Examples

Including any of the following code snippets will generate the MontageBoxes shown below them

Example 1

{{MontageBox
|image1  =[[Image:Reimoon2.jpg|150px]]
|caption =
*text here
*and here
}}


Reimoon2.jpg
  • text here
  • and here


Example 2

{{MontageBox
|title   =Image of Rei
|image1  =[[Image:Reimoon2.jpg|150px]]
|caption =
*text here
*and here
}}


Image of Rei
Reimoon2.jpg
  • text here
  • and here


Example 3

{{MontageBox
|title   =3 Images of Rei (3 column table)
|colour  =LightPink
|columns = 3
|image1  =[[Image:Reimoon2.jpg|150px]]
|image2  =[[Image:Reimoon1a.jpg|150px]]
|image3  =[[Image:Reimoon4.jpg|150px]]
|caption =
*text here
*and here
}}


3 Images of Rei (3 column table)
Reimoon2.jpg Reimoon1a.jpg Reimoon4.jpg
  • text here
  • and here


Example 4

{{MontageBox
|title   =3 Images of Rei (2 column table)
|columns = 2
|colour  = LightBlue
|image1  =[[Image:Reimoon2.jpg|150px]]
|image2  =[[Image:Reimoon1a.jpg|150px]]
|image3  =[[Image:Reimoon4.jpg|150px]]
|caption =
*text here
*and here
}}


3 Images of Rei (2 column table)
Reimoon2.jpg Reimoon1a.jpg
Reimoon4.jpg
  • text here
  • and here


Example 5

{{MontageBox
|title   =4 Images (2 column table)
|colour  = LightBlue
|columns = 2
|image1  =[[Image:Shinji Rei Escalator.jpg|200px]]
|image2  =[[Image: Japan Blackout.jpg|200px]]
|image3  =[[Image:Dance Vs Israfel.jpg|200px]]
|image4  =[[Image:Fuyutsuki Candle.jpg|200px]]
|caption =
*text here
*and here
}}


4 Images (2 column table)
Shinji Rei Escalator.jpg Japan Blackout.jpg
Dance Vs Israfel.jpg Fuyutsuki Candle.jpg
  • text here
  • and here


Example 6

{{MontageBox
|title   =8 Images (3 column table)
|columns = 3
|image1  =[[Image:Reimoon2.jpg|150px]]
|image2  =[[Image:Reimoon1a.jpg|150px]]
|image3  =[[Image:Reimoon4.jpg|150px]]
|image4  =[[Image:Nerv swimming pool.jpg|150px]]
|image5  =[[Image:Shinji Rei Escalator.jpg|150px]]
|image6  =[[Image: Japan Blackout.jpg|150px]]
|image7  =[[Image:Dance Vs Israfel.jpg|150px]]
|image8  =[[Image:Fuyutsuki Candle.jpg|150px]]
|caption =
Various Images in a Table
}}


8 Images (3 column table)
Reimoon2.jpg Reimoon1a.jpg Reimoon4.jpg
Nerv swimming pool.jpg Shinji Rei Escalator.jpg Japan Blackout.jpg
Dance Vs Israfel.jpg Fuyutsuki Candle.jpg

Various Images in a Table


Example 7

{{MontageBox
|title   =8 Images (5 column table)
|columns = 5
|image1  =[[Image:Reimoon2.jpg|150px]]
|image2  =[[Image:Reimoon1a.jpg|150px]]
|image3  =[[Image:Reimoon4.jpg|150px]]
|image4  =[[Image:Nerv swimming pool.jpg|150px]]
|image5  =[[Image:Shinji Rei Escalator.jpg|150px]]
|image6  =[[Image: Japan Blackout.jpg|150px]]
|image7  =[[Image:Dance Vs Israfel.jpg|150px]]
|image8  =[[Image:Fuyutsuki Candle.jpg|150px]]
|caption =
Various Images in a Table
}}


8 Images (5 column table)
Reimoon2.jpg Reimoon1a.jpg Reimoon4.jpg Nerv swimming pool.jpg Shinji Rei Escalator.jpg
Japan Blackout.jpg Dance Vs Israfel.jpg Fuyutsuki Candle.jpg

Various Images in a Table


Example 8

{{MontageBox
|title   =30 Images (2 column table)
|columns = 2|image1  =[[Image:Reimoon2.jpg|150px]]
|image2  =[[Image:Reimoon1a.jpg|150px]]
|image3  =[[Image:Reimoon4.jpg|150px]]
|image4  =[[Image:Nerv swimming pool.jpg|150px]]
|image5  =[[Image:Shinji Rei Escalator.jpg|150px]]
|image6  =[[Image: Japan Blackout.jpg|150px]]
|image7  =[[Image:Dance Vs Israfel.jpg|150px]]
|image8  =[[Image:Fuyutsuki Candle.jpg|150px]]
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
|image11 =[[Image:Reimoon2.jpg|150px]]
|image12 =[[Image:Reimoon1a.jpg|150px]]
|image13 =[[Image:Reimoon4.jpg|150px]]
|image14 =[[Image:Nerv swimming pool.jpg|150px]]
|image15 =[[Image:Shinji Rei Escalator.jpg|150px]]
|image16 =[[Image: Japan Blackout.jpg|150px]]
|image17 =[[Image:Dance Vs Israfel.jpg|150px]]
|image18 =[[Image:Fuyutsuki Candle.jpg|150px]]
|image19 =[[Image:FGC 01 C003a.jpg|150px]]
|image20 =[[Image:FGC 01 C076d.jpg|150px]]
|image21 =[[Image:Reimoon2.jpg|150px]]
|image22 =[[Image:Reimoon1a.jpg|150px]]
|image23 =[[Image:Reimoon4.jpg|150px]]
|image24 =[[Image:Nerv swimming pool.jpg|150px]]
|image25 =[[Image:Shinji Rei Escalator.jpg|150px]]
|image26 =[[Image: Japan Blackout.jpg|150px]]
|image27 =[[Image:Dance Vs Israfel.jpg|150px]]
|image28 =[[Image:Fuyutsuki Candle.jpg|150px]]
|image29 =[[Image:FGC 01 C003a.jpg|150px]]
|image30 =[[Image:FGC 01 C076d.jpg|150px]]

|caption =
The maximimum number of images in a table with two columns.
}}


30 Images (2 column table)
Reimoon2.jpg Reimoon1a.jpg
Reimoon4.jpg Nerv swimming pool.jpg
Shinji Rei Escalator.jpg Japan Blackout.jpg
Dance Vs Israfel.jpg Fuyutsuki Candle.jpg
FGC 01 C003a.jpg FGC 01 C076d.jpg
Reimoon2.jpg Reimoon1a.jpg
Reimoon4.jpg Nerv swimming pool.jpg
Shinji Rei Escalator.jpg Japan Blackout.jpg
Dance Vs Israfel.jpg Fuyutsuki Candle.jpg
FGC 01 C003a.jpg FGC 01 C076d.jpg
Reimoon2.jpg Reimoon1a.jpg
Reimoon4.jpg Nerv swimming pool.jpg
Shinji Rei Escalator.jpg Japan Blackout.jpg
Dance Vs Israfel.jpg Fuyutsuki Candle.jpg
FGC 01 C003a.jpg FGC 01 C076d.jpg

The maximimum number of images in a table with two columns.


Example 9

{{MontageBox
|title   =30 Images (3 column table)
|columns = 3
|image1  =[[Image:Reimoon2.jpg|150px]]
|image2  =[[Image:Reimoon1a.jpg|150px]]
|image3  =[[Image:Reimoon4.jpg|150px]]
|image4  =[[Image:Nerv swimming pool.jpg|150px]]
|image5  =[[Image:Shinji Rei Escalator.jpg|150px]]
|image6  =[[Image: Japan Blackout.jpg|150px]]
|image7  =[[Image:Dance Vs Israfel.jpg|150px]]
|image8  =[[Image:Fuyutsuki Candle.jpg|150px]]
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
|image11 =[[Image:Reimoon2.jpg|150px]]
|image12 =[[Image:Reimoon1a.jpg|150px]]
|image13 =[[Image:Reimoon4.jpg|150px]]
|image14 =[[Image:Nerv swimming pool.jpg|150px]]
|image15 =[[Image:Shinji Rei Escalator.jpg|150px]]
|image16 =[[Image: Japan Blackout.jpg|150px]]
|image17 =[[Image:Dance Vs Israfel.jpg|150px]]
|image18 =[[Image:Fuyutsuki Candle.jpg|150px]]
|image19 =[[Image:FGC 01 C003a.jpg|150px]]
|image20 =[[Image:FGC 01 C076d.jpg|150px]]
|image21 =[[Image:Reimoon2.jpg|150px]]
|image22 =[[Image:Reimoon1a.jpg|150px]]
|image23 =[[Image:Reimoon4.jpg|150px]]
|image24 =[[Image:Nerv swimming pool.jpg|150px]]
|image25 =[[Image:Shinji Rei Escalator.jpg|150px]]
|image26 =[[Image: Japan Blackout.jpg|150px]]
|image27 =[[Image:Dance Vs Israfel.jpg|150px]]
|image28 =[[Image:Fuyutsuki Candle.jpg|150px]]
|image29 =[[Image:FGC 01 C003a.jpg|150px]]
|image30 =[[Image:FGC 01 C076d.jpg|150px]]
|caption =
The maximimum number of images in a table with three columns.
}}


30 Images (3 column table)
Reimoon2.jpg Reimoon1a.jpg Reimoon4.jpg
Nerv swimming pool.jpg Shinji Rei Escalator.jpg Japan Blackout.jpg
Dance Vs Israfel.jpg Fuyutsuki Candle.jpg FGC 01 C003a.jpg
FGC 01 C076d.jpg Reimoon2.jpg Reimoon1a.jpg
Reimoon4.jpg Nerv swimming pool.jpg Shinji Rei Escalator.jpg
Japan Blackout.jpg Dance Vs Israfel.jpg Fuyutsuki Candle.jpg
FGC 01 C003a.jpg FGC 01 C076d.jpg Reimoon2.jpg
Reimoon1a.jpg Reimoon4.jpg Nerv swimming pool.jpg
Shinji Rei Escalator.jpg Japan Blackout.jpg Dance Vs Israfel.jpg
Fuyutsuki Candle.jpg FGC 01 C003a.jpg FGC 01 C076d.jpg

The maximimum number of images in a table with three columns.


Example 10

{{MontageBox
|title   =30 Images (5 column table)
|columns = 5
|image1  =[[Image:Reimoon2.jpg|150px]]
|image2  =[[Image:Reimoon1a.jpg|150px]]
|image3  =[[Image:Reimoon4.jpg|150px]]
|image4  =[[Image:Nerv swimming pool.jpg|150px]]
|image5  =[[Image:Shinji Rei Escalator.jpg|150px]]
|image6  =[[Image: Japan Blackout.jpg|150px]]
|image7  =[[Image:Dance Vs Israfel.jpg|150px]]
|image8  =[[Image:Fuyutsuki Candle.jpg|150px]]
|image9  =[[Image:FGC 01 C003a.jpg|150px]]
|image10 =[[Image:FGC 01 C076d.jpg|150px]]
|image11 =[[Image:Reimoon2.jpg|150px]]
|image12 =[[Image:Reimoon1a.jpg|150px]]
|image13 =[[Image:Reimoon4.jpg|150px]]
|image14 =[[Image:Nerv swimming pool.jpg|150px]]
|image15 =[[Image:Shinji Rei Escalator.jpg|150px]]
|image16 =[[Image: Japan Blackout.jpg|150px]]
|image17 =[[Image:Dance Vs Israfel.jpg|150px]]
|image18 =[[Image:Fuyutsuki Candle.jpg|150px]]
|image19 =[[Image:FGC 01 C003a.jpg|150px]]
|image20 =[[Image:FGC 01 C076d.jpg|150px]]
|image21 =[[Image:Reimoon2.jpg|150px]]
|image22 =[[Image:Reimoon1a.jpg|150px]]
|image23 =[[Image:Reimoon4.jpg|150px]]
|image24 =[[Image:Nerv swimming pool.jpg|150px]]
|image25 =[[Image:Shinji Rei Escalator.jpg|150px]]
|image26 =[[Image: Japan Blackout.jpg|150px]]
|image27 =[[Image:Dance Vs Israfel.jpg|150px]]
|image28 =[[Image:Fuyutsuki Candle.jpg|150px]]
|image29 =[[Image:FGC 01 C003a.jpg|150px]]
|image30 =[[Image:FGC 01 C076d.jpg|150px]]
|caption =
The maximimum number of images in a table with five columns.
}}


30 Images (5 column table)
Reimoon2.jpg Reimoon1a.jpg Reimoon4.jpg Nerv swimming pool.jpg Shinji Rei Escalator.jpg
Japan Blackout.jpg Dance Vs Israfel.jpg Fuyutsuki Candle.jpg FGC 01 C003a.jpg FGC 01 C076d.jpg
Reimoon2.jpg Reimoon1a.jpg Reimoon4.jpg Nerv swimming pool.jpg Shinji Rei Escalator.jpg
Japan Blackout.jpg Dance Vs Israfel.jpg Fuyutsuki Candle.jpg FGC 01 C003a.jpg FGC 01 C076d.jpg
Reimoon2.jpg Reimoon1a.jpg Reimoon4.jpg Nerv swimming pool.jpg Shinji Rei Escalator.jpg
Japan Blackout.jpg Dance Vs Israfel.jpg Fuyutsuki Candle.jpg FGC 01 C003a.jpg FGC 01 C076d.jpg

The maximimum number of images in a table with five columns.