Difference between revisions of "Template:Gallery/doc"
imported>ChyranandChloe (update) |
imported>ChyranandChloe m (update) |
||
| Line 24: | Line 24: | ||
<span style="color:#0000FF;">{{</span><span style="color:#FF0000;">Gallery</span><br /> | <span style="color:#0000FF;">{{</span><span style="color:#FF0000;">Gallery</span><br /> | ||
<span style="color:#0000FF;">|</span><span style="color:#000000;">title='''Title of gallery goes here'''</span><br /> | <span style="color:#0000FF;">|</span><span style="color:#000000;">title='''Title of gallery goes here'''</span><br /> | ||
| − | <span style="color:#0000FF;">|</span><span style="color:#000000;">footer='''Image credit: Wikipedia, the free encycolopedia | + | <span style="color:#0000FF;">|</span><span style="color:#000000;">footer='''*Image credit: Wikipedia, the free encycolopedia<br />**and so on...'''</span><br /> |
<span style="color:#0000FF;">|</span><span style="color:#000000;">width='''150'''</span><br /> | <span style="color:#0000FF;">|</span><span style="color:#000000;">width='''150'''</span><br /> | ||
<span style="color:#0000FF;">|</span><span style="color:#000000;">lines='''2'''</span><br /> | <span style="color:#0000FF;">|</span><span style="color:#000000;">lines='''2'''</span><br /> | ||
| − | <span style="color:#0000FF;">|</span><span style="color:#000000;">'''Image:Wiki.png'''</span><span style="color:#0000FF;">|</span><span style="color:#000000;">''' | + | <span style="color:#0000FF;">|</span><span style="color:#000000;">'''Image:Wiki.png'''</span><span style="color:#0000FF;">|</span><span style="color:#000000;">'''this is a caption'''</span><br /> |
|Image:Wiki.png|<br /> | |Image:Wiki.png|<br /> | ||
|Image:Wiki.png|<br /> | |Image:Wiki.png|<br /> | ||
| Line 48: | Line 48: | ||
<div style="background:#FFFFFF;"> | <div style="background:#FFFFFF;"> | ||
{{Gallery | {{Gallery | ||
| − | | | + | |title=Title of gallery goes here |
|width=150 | |width=150 | ||
| − | |footer=Image credit: Wikipedia (c)2008<br /> | + | |footer=*Image credit: Wikipedia (c)2008<br />**and so on... |
|lines=2 | |lines=2 | ||
| − | |Image:Wiki.png| | + | |Image:Wiki.png|this is a caption* |
|Image:Wiki.png| | |Image:Wiki.png| | ||
|Image:Wiki.png| | |Image:Wiki.png| | ||
| Line 64: | Line 64: | ||
|Image:Wiki.png| | |Image:Wiki.png| | ||
|Image:Wiki.png| | |Image:Wiki.png| | ||
| − | |Image:Wiki.png|Full [[MediaWiki]]<br />[[syntax]] may now be used… | + | |Image:Wiki.png|Full [[MediaWiki]]<br />[[syntax]] may now be used…** |
|Image:Wiki.png| | |Image:Wiki.png| | ||
}} | }} | ||
Revision as of 02:16, 23 September 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 with caption. Each image with caption is embedded in a HTML-table of the same size. As a result, this is a tranclusion and is not fixed width, this allows the module to the browser displays them row by row, with as many on one row as fit in the window.
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 verical scroll box will appear for the caption. If the specification is too high: excessive space is place 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 specificed a image with a questionmark 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 intot 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 encycolopedia<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 ta:வார்ப்புரு:Gallery te:మూస:Gallery