Template:GalleryItems: Difference between revisions
From Step Mods | Change The Game
TechAngel85 (talk | contribs) |
TechAngel85 (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
|align=center | |align=center | ||
|galleryitems= | |galleryitems= | ||
{{GalleryItems|url= | {{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=A wall}} | ||
{{GalleryItems|url= | {{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=Text}} | ||
{{GalleryItems|url= | {{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=More text}} | ||
}} | }} | ||
</pre> | </pre> | ||
{{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}} | |||
}} | |||
See below for the parameters that can be used with GalleryItem. | 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== | ==Example== |
Revision as of 03:49, 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
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.
Code:
{{GalleryItems|url=https://copy.com/b1qwohqNdVIc0ryw|caption=Dummy Image}}
Defining Height and Width: