Difference between revisions of "Template:MontageBox"

From EvaWiki
Jump to: navigation, search
m (Template:ImagesBox moved to Template:MontageBox: Better name for template)
(Part of renaming)
Line 30: Line 30:
 
|colspan="{{{columns|1}}}" style="text-align: left; valign: top;"|
 
|colspan="{{{columns|1}}}" style="text-align: left; valign: top;"|
 
{{{caption}}}
 
{{{caption}}}
|}
+
|}</includeonly><noinclude>
</includeonly><noinclude>
 
 
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 ImagesBox 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 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 ImagesBox 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.
Line 42: Line 41:
 
== How To Use This ==
 
== How To Use This ==
  
<pre>{{ImagesBox
+
<pre>{{MontageBox
 
|float  =
 
|float  =
 
|columns =
 
|columns =
Line 66: Line 65:
  
 
==Examples==
 
==Examples==
Including any of the following code snippets will generate the ImageBoxes shown below them
+
Including any of the following code snippets will generate the MontageBoxes shown below them
  
 
===Example 1===
 
===Example 1===
<pre>{{ImagesBox
+
<pre>{{MontageBox
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|caption =
 
|caption =
Line 76: Line 75:
 
}}</pre>
 
}}</pre>
 
{{-}}
 
{{-}}
{{ImagesBox
+
{{MontageBox
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|caption =
 
|caption =
Line 84: Line 83:
 
{{-}}
 
{{-}}
 
===Example 2===
 
===Example 2===
<pre>{{ImagesBox
+
<pre>{{MontageBox
 
|title  =Image of Rei
 
|title  =Image of Rei
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
Line 93: Line 92:
 
{{-}}
 
{{-}}
  
{{ImagesBox
+
{{MontageBox
 
|title  =Image of Rei
 
|title  =Image of Rei
 
|image1  =[[Image:Reimoon2.jpg|150px]]
 
|image1  =[[Image:Reimoon2.jpg|150px]]
Line 102: Line 101:
 
{{-}}
 
{{-}}
 
===Example 3===
 
===Example 3===
<pre>{{ImagesBox
+
<pre>{{MontageBox
 
|title  =3 Images of Rei (3 column table)
 
|title  =3 Images of Rei (3 column table)
 
|columns = 3
 
|columns = 3
Line 114: Line 113:
 
{{-}}
 
{{-}}
  
{{ImagesBox
+
{{MontageBox
 
|title  =3 Images of Rei (3 column table)
 
|title  =3 Images of Rei (3 column table)
 
|columns = 3
 
|columns = 3
Line 127: Line 126:
  
 
===Example 4===
 
===Example 4===
<pre>{{ImagesBox
+
<pre>{{MontageBox
 
|title  =3 Images of Rei (2 column table)
 
|title  =3 Images of Rei (2 column table)
 
|columns = 2
 
|columns = 2
Line 139: Line 138:
 
{{-}}
 
{{-}}
  
{{ImagesBox
+
{{MontageBox
 
|title  =3 Images of Rei (2 column table)
 
|title  =3 Images of Rei (2 column table)
 
|columns = 2
 
|columns = 2
Line 152: Line 151:
  
 
===Example 5===
 
===Example 5===
<pre>{{ImagesBox
+
<pre>{{MontageBox
 
|title  =4 Images (2 column table)
 
|title  =4 Images (2 column table)
 
|columns = 2
 
|columns = 2
Line 165: Line 164:
 
{{-}}
 
{{-}}
  
{{ImagesBox
+
{{MontageBox
 
|title  =4 Images (2 column table)
 
|title  =4 Images (2 column table)
 
|columns = 2
 
|columns = 2
Line 179: Line 178:
  
 
===Example 6===
 
===Example 6===
<pre>{{ImagesBox
+
<pre>{{MontageBox
 
|title  =8 Images (3 column table)
 
|title  =8 Images (3 column table)
 
|columns = 3
 
|columns = 3
Line 195: Line 194:
 
{{-}}
 
{{-}}
  
{{ImagesBox
+
{{MontageBox
 
|title  =8 Images (3 column table)
 
|title  =8 Images (3 column table)
 
|columns = 3
 
|columns = 3
Line 213: Line 212:
  
 
===Example 7===
 
===Example 7===
<pre>{{ImagesBox
+
<pre>{{MontageBox
 
|title  =12 Images (3 column table)
 
|title  =12 Images (3 column table)
 
|columns = 3
 
|columns = 3
Line 234: Line 233:
 
{{-}}
 
{{-}}
  
{{ImagesBox
+
{{MontageBox
 
|title  =12 Images (3 column table)
 
|title  =12 Images (3 column table)
 
|columns = 3
 
|columns = 3
Line 257: Line 256:
 
===Example 8===
 
===Example 8===
  
<pre>{{ImagesBox
+
<pre>{{MontageBox
 
|title  =12 Images (2 column table)
 
|title  =12 Images (2 column table)
 
|columns = 2
 
|columns = 2
Line 277: Line 276:
 
{{-}}
 
{{-}}
  
{{ImagesBox
+
{{MontageBox
 
|title  =12 Images (2 column table)
 
|title  =12 Images (2 column table)
 
|columns = 2
 
|columns = 2
Line 296: Line 295:
 
}}
 
}}
  
 
[[Category: Infoboxes]]
 
 
[[Category:Templates]]
 
[[Category:Templates]]
  
 
</noinclude>
 
</noinclude>

Revision as of 03:30, 4 April 2008

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 is also capable of displaying a single image.

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

How To Use This

{{MontageBox
|float   =
|columns =
|title   =
|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)
|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
|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)
|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   =12 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:FGC 01 C219b.jpg|150px]]
|image12 =[[Image:FGC 01 C284r.jpg|150px]]
|caption =
The maximimum number of images in a table with three columns.
}}


12 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 FGC 01 C219b.jpg FGC 01 C284r.jpg

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


Example 8

{{MontageBox
|title   =12 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:FGC 01 C219b.jpg|150px]]
|image12 =[[Image:FGC 01 C284r.jpg|150px]]
|caption =
The maximimum number of images in a table with two columns.
}}


12 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
FGC 01 C219b.jpg FGC 01 C284r.jpg

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