Difference between revisions of "Template:Cg"

From CWCki
Jump to navigation Jump to search
m (Added documentation.)
(Added usage. Recategorized as an fomatting template.)
Line 23: Line 23:
</tr>
</tr>


</table><noinclude>
</table><noinclude>{Usage|1=This is a fomatting template used to display a collapsible gallery of images.  The format for using this template is as follows:<br />
{{documentation}}
 
</noinclude>
'''<pre>{{Cg|1=Gallery|2=picturesofsonichus|3=center|4=[[File:Punchy.jpg]]|5=[[File:206-SonichuPose.jpg]]}}</pre>'''
 
 
- Displays:{{Cg|1=Gallery|2=picturesofsonichus|3=center|4=[[File:Punchy.jpg]]|5=[[File:206-SonichuPose.jpg]]}}
 
Unfortunately, it doesn't work.  The above example should display the picture of Punchy with an option to show or hide the picture of Sonichu. 
 
Normally, the template would be used with a gallery of a few images where Punchy would be, and a much larger galley where Sonichu would be.  The idea here is to show a preview of the gallery without displaying the entire thing, which might be cumbersome if the gallery has a lot of images in it. 
 
[[Category:Formatting and function templates|{{PAGENAME}}]]</noinclude>

Revision as of 14:56, 1 December 2010

{{{1}}}
{{{4}}}
{{{5}}}

{Usage|1=This is a fomatting template used to display a collapsible gallery of images. The format for using this template is as follows:

{{Cg|1=Gallery|2=picturesofsonichus|3=center|4=[[File:Punchy.jpg]]|5=[[File:206-SonichuPose.jpg]]}}


- Displays:

Gallery
Punchy.jpg
206-SonichuPose.jpg

Unfortunately, it doesn't work. The above example should display the picture of Punchy with an option to show or hide the picture of Sonichu.

Normally, the template would be used with a gallery of a few images where Punchy would be, and a much larger galley where Sonichu would be. The idea here is to show a preview of the gallery without displaying the entire thing, which might be cumbersome if the gallery has a lot of images in it.