Template:Collapsegallery: Difference between revisions
Jump to navigation
Jump to search
imported>CrackRabbit No edit summary |
imported>CrackRabbit still broken, restoring to working revision |
||
Line 1: | Line 1: | ||
<includeonly><table cellpadding="5" cellspacing="0" border="0" style="{{#if:{{{border|}}}|border:.5em solid {{{border}}};{{roundy|{{{radius|.9em}}}}}|border:1px solid black;}}" align="{{#switch:{{{3}}}|center=center|left=left|right=right|left}}"> | |||
<!-- Header --> | |||
! | <tr style="background-color:{{{border|black}}};color:{{{color|white}}};font-size:14pt;"> | ||
< | <td align="left">{{{1}}}</td> | ||
< | <td align="right" style="font-size:6pt;">[[Template:pixpls|About missing Pics]]</td> | ||
</tr> | |||
<!-- Teaser --> | |||
<tr> | |||
<td align="center" colspan="2">{{{4}}}</td> | |||
</tr> | |||
<!-- Collapsing Link --> | |||
< | <tr> | ||
<td align="right" colspan="2"><span class="co;[Collapse Gallery];[Expand Gallery];0;{{{2}}}" style="font-size:14pt;font-weight: bold;"></span></td> | |||
</ | </tr> | ||
<!-- Rest of Gallery --> | |||
<noinclude> | <tr> | ||
<td align="center" colspan="2"><span class="{{{2}}}">{{{5}}}</span></td> | |||
</tr> | |||
</table></includeonly><noinclude> | |||
{{clear}} | {{clear}} | ||
Line 21: | Line 24: | ||
This is the collapsing gallery template. See [[Encyclopedia Dramatica:Collapsing Objects]] for an explanation. | This is the collapsing gallery template. See [[Encyclopedia Dramatica:Collapsing Objects]] for an explanation. | ||
<nowiki>{{collapsegallery | 1=title | 2=id | 3=align | 4=<gallery> expanded </gallery> | border | color}}</nowiki> | <nowiki>{{collapsegallery | 1=title | 2=id | 3=align | 4=<gallery> teaser </gallery> | 5=<gallery> expanded </gallery> | border | color}}</nowiki> | ||
{| border="1" | {| border="1" | ||
Line 35: | Line 38: | ||
|- | |- | ||
!4 | !4 | ||
|gallery | |teaser gallery | ||
|- | |||
!5 | |||
|expanded gallery | |||
|- | |- | ||
!border | !border | ||
Line 50: | Line 56: | ||
{{Collapsegallery|Hello, world!|cg1|center|<gallery> | {{Collapsegallery|Hello, world!|cg1|center|<gallery> | ||
File:Popcorn3.gif | |||
</gallery>|<gallery> | |||
File:Popcorn4.gif | File:Popcorn4.gif | ||
</gallery>}} | </gallery>}} | ||
Line 56: | Line 64: | ||
{{Collapsegallery|Hello, world!|cg2|center|<gallery> | {{Collapsegallery|Hello, world!|cg2|center|<gallery> | ||
File:Popcorn2.gif | |||
</gallery>|<gallery> | |||
File:Popcorn4.gif | File:Popcorn4.gif | ||
</gallery>|border=blue|color=cyan}} | </gallery>|border=blue|color=cyan}} | ||
Line 66: | Line 76: | ||
{{Collapsegallery|Hello, world!|cg1|center|<gallery> | {{Collapsegallery|Hello, world!|cg1|center|<gallery> | ||
File:Popcorn3.gif | File:Popcorn3.gif | ||
</gallery>|<gallery> | |||
File:Popcorn4.gif | File:Popcorn4.gif | ||
</gallery>}} | </gallery>}} | ||
Line 73: | Line 84: | ||
{{Collapsegallery|Hello, world!|cg2|center|<gallery> | {{Collapsegallery|Hello, world!|cg2|center|<gallery> | ||
File:Popcorn2.gif | File:Popcorn2.gif | ||
</gallery>|<gallery> | |||
File:Popcorn4.gif | File:Popcorn4.gif | ||
</gallery>|border=blue|color=cyan}} | </gallery>|border=blue|color=cyan}} | ||
[[Category:Formatting Templates|{{PAGENAME}}]]</noinclude> | [[Category:Formatting Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 10:41, 9 January 2021
Usage
This is the collapsing gallery template. See Encyclopedia Dramatica:Collapsing Objects for an explanation.
{{collapsegallery | 1=title | 2=id | 3=align | 4=<gallery> teaser </gallery> | 5=<gallery> expanded </gallery> | border | color}}
title | |
---|---|
id | unique id for collapse gallery (example:cg1, cg2, etc.) |
align | left, right or center, default is left. |
4 | teaser gallery |
5 | expanded gallery |
border | border color and have it be thicker with rounded edges. default is the traditional collapse gallery style. |
color | title color, default is white. |
Example
=== Traditional (border isn't set) === {{Collapsegallery|Hello, world!|cg1|center|<gallery> File:Popcorn3.gif </gallery>|<gallery> File:Popcorn4.gif </gallery>}} === Rounded === {{Collapsegallery|Hello, world!|cg2|center|<gallery> File:Popcorn2.gif </gallery>|<gallery> File:Popcorn4.gif </gallery>|border=blue|color=cyan}}
Output
Traditional (border isn't set)
Hello, world! | About missing Pics |
Rounded
Hello, world! | About missing Pics |