Difference between revisions of "Template:Gallery/doc"

From blackwiki
Jump to navigation Jump to search
imported>Eubulides
(Merge improvements from Template:Image gallery/doc.)
imported>ChyranandChloe
(cleanup)
Line 41: Line 41:
 
}}
 
}}
  
== See also ==
+
==See also==
 
* {{tl|Image gallery}}
 
* {{tl|Image gallery}}
 
* {{tl|Cleanup-gallery}}, the template marking unencyclopedic image galleries.
 
* {{tl|Cleanup-gallery}}, the template marking unencyclopedic image galleries.
 
* {{tl|Scroll gallery}}
 
* {{tl|Scroll gallery}}
  
<span class="plainlinks" style="float:right;"><small>''[http://en.wikipedia.org/w/index.php?title=Template:Gallery&action=purge refresh page/purge cache]</small></span><!-- REMEMBER TO PURGE THE CACHE WHEN YOU'RE FINISHED EDITING THE PAGE --><br />
+
<includeonly>
 +
[[Category:Template documentation]]
  
‎<includeonly>
 
 
[[fa:الگو:نگارخانه]]
 
[[fa:الگو:نگارخانه]]
 
[[nl:Sjabloon:Gallery]]
 
[[nl:Sjabloon:Gallery]]
Line 55: Line 55:
 
[[ta:வார்ப்புரு:Gallery]]
 
[[ta:வார்ப்புரு:Gallery]]
 
[[te:మూస:Gallery]]
 
[[te:మూస:Gallery]]
[[Category:Template documentation]]
 
 
 
</includeonly>
 
</includeonly>

Revision as of 20:37, 29 July 2009

This template shows up to 30 images in an array. The number of images per row is based upon the width specified and the width of the screen, which allows greater flexibility than the <gallery> tag.

For style guidelines about where galleries are appropriate, see WP:IG.

This template is similar to {{Image gallery}}, except that it does not support alt text and thus does not produce galleries that are accessible to visually-impaired readers. Also, this template requires a "File:" or "Image:" prefix for image names, whereas {{Image gallery}} does not. Both templates use {{Gallery/aux}} to format individual images.

Parameters

Required

|Image|Caption
Specify one of these lines for each image. Image is the image name (with a File: or Image: prefix). Caption is the caption; see WP:CAPTION. If no such lines are present, a gallery with a single question-mark image is produced. There is currently a limit of 30 such lines.

Optional

title
The gallery's title.
width
(default 180) Maximum width and height of each image.
lines
(default 2) The number of text lines needed for the largest caption. Blank lines are appended to smaller captions. A caption that does not fit is cut off.

Example

Template:Pre2

See also