Difference between revisions of "Template:Gallery/doc"
imported>RafaAzevedo (pt) |
imported>Anypodetos m (→Required: Typos) |
||
| Line 9: | Line 9: | ||
There are several parameters that should be specified after the tranclusion '''Gallery''': | There are several parameters that should be specified after the tranclusion '''Gallery''': | ||
| − | * '''lines''' the default is two, this parameter should be specified to the number of lines needed for the largest caption. If the specification is too low: a | + | * '''lines''' the default is two, this parameter should be specified to the number of lines needed for the largest caption. If the specification is too low: a vertical scroll box will appear for the caption. If the specification is too high: excessive space is placed below the caption. |
| − | * <span style="color:#4444FF;"><span style="color:#000000; font-weight:bold;">|</span>[image]<span style="color:#000000; font-weight:bold;">|</span>[caption]</span> following the ''pipe'' symbol " [[Vertical bar||]] " (generally located above the enter key) the image location should be specified, if this parameter is not | + | * <span style="color:#4444FF;"><span style="color:#000000; font-weight:bold;">|</span>[image]<span style="color:#000000; font-weight:bold;">|</span>[caption]</span> following the ''pipe'' symbol " [[Vertical bar||]] " (generally located above the enter key) the image location should be specified, if this parameter is not specified an image with a question mark is defaulted. Following a second ''pipe'', the caption should be specified, the default is a blank non-breaking space. Iterate the previous until all images are entered into the tranclusion, the limit is currently '''30'''. |
=== Optional === | === Optional === | ||
Revision as of 13:05, 27 November 2008
| This is a documentation subpage for Template:Gallery. It contains usage information, categories and other content that is not part of the original template page. |
This template:gallery, using template:gallery/aux, shows up to 30 images. Every image is embedded in its own HTML-table, and are floated left. The number of images per row is based upon the width specified and the width of the screen, which allows greator flexibility than the <gallery> tag.
Parameters
Required
There are several parameters that should be specified after the tranclusion Gallery:
- lines the default is two, this parameter should be specified to the number of lines needed for the largest caption. If the specification is too low: a vertical scroll box will appear for the caption. If the specification is too high: excessive space is placed below the caption.
- |[image]|[caption] following the pipe symbol " | " (generally located above the enter key) the image location should be specified, if this parameter is not specified an image with a question mark is defaulted. Following a second pipe, the caption should be specified, the default is a blank non-breaking space. Iterate the previous until all images are entered into the tranclusion, the limit is currently 30.
Optional
There are several parameters that are optional to this transculsion:
- title this parameter produces a title for the gallery
- width the default is 180px, this parameter specifies the maximum width and height of each image, and the width of each cell.
Example
Code
{{Gallery
|title=Title of gallery goes here
|footer=*Image credit: Wikipedia, the free encyclopedia<br />**and so on...
|width=150
|lines=2
|Image:Wiki.png|this is a caption
|Image:Wiki.png|
|Image:Wiki.png|
|Image:Wiki.png|
|Image:Wiki.png|
|Image:Wiki.png|
|Image:Wiki.png|
|Image:Wiki.png|
|Image:Wiki.png|[[Help:Contents/Links|Links]] can be put in captions.
|Image:Wiki.png|
|Image:Wiki.png|
|Image:Wiki.png|
|Image:Wiki.png|Full [[MediaWiki]]<br />[[syntax]] may now be used…
|Image:Wiki.png|
}}
Result
See also
- {{cleanup-gallery}}, the template marking unencyclopedic image galleries.
nl:Sjabloon:Gallery no:Mal:Gallery pt:Predefinição:Galeria ta:வார்ப்புரு:Gallery te:మూస:Gallery