Template:GalleryItems: Difference between revisions
TechAngel85 (talk | contribs) |
TechAngel85 (talk | contribs) |
||
Line 31: | Line 31: | ||
<pre>{{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=Dummy Image}}</pre> | <pre>{{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=Dummy Image}}</pre> | ||
{{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=Dummy Image}} | {{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=Dummy Image}} | ||
<br> | |||
'''Defining Height and Width:''' | '''Defining Height and Width:''' | ||
<br> | |||
'''Note:''' | |||
When a GalleryItem is used outside the Gallery template, the GalleryItem template will still work. However, since it is not defined within a single gallery when clicked, it will default as page of a "page gallery". You will see all the images on that page as one gallery. | |||
== See Also == | == See Also == | ||
[[:Template:Gallery]] | [[:Template:Gallery]] | ||
</noinclude> | </noinclude> |
Revision as of 03:57, October 14, 2014
Purpose & Usage
The purpose of the GalleryItem template is to define and display one gallery item per usage. This template must be used within the Gallery template as such:
{{Gallery |enable=Yes |align=center |galleryitems= {{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=A wall}} {{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=Text}} {{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=More text}} }}
![Warning-Logo.png](/wiki/images/thumb/8/8e/Warning-Logo.png/35px-Warning-Logo.png)
WARNING
This template is deprecated. Please revise markup to use Template:GallerySimple instead.Here three instances of GalleryItem was used; one for each image. See below for the parameters that can be used with GalleryItem and their examples.
Example
The following will display a single gallery item within a gallery. A separate instance of GalleryItem must be used for each item to be displayed in a gallery.
Code:
{{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=Dummy Image}}
Defining Height and Width:
Note: When a GalleryItem is used outside the Gallery template, the GalleryItem template will still work. However, since it is not defined within a single gallery when clicked, it will default as page of a "page gallery". You will see all the images on that page as one gallery.