Difference between revisions of "Template:Cg"

From CWCki
Jump to navigation Jump to search
m (1 revision)
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table cellpadding="5" cellspacing="0" border="0" style="border: 1px solid black;" align="{{#switch:{{{3}}}|center = center|left = left|right = right|left}}">
<table cellpadding="5" cellspacing="0" border="0" style="border: 1px solid black;" align="{{#switch:{{{3}}}|center = center|left = left|right = right|left}}">


Line 25: Line 23:
</tr>
</tr>


</table>
</table><noinclude>{{clear}}{{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 />
 
'''<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}}]][[Category:Broken Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 22:38, 3 December 2010

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

Usage

These usage notes will not be included in articles bearing this template.

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.