- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Template:Collapsegallery: Difference between revisions
Jump to navigation
Jump to search
imported>TabbyGarf No edit summary |
imported>TabbyGarf No edit summary |
||
Line 1: | Line 1: | ||
{| align="left" width="80%" cellpadding="0" cellspacing="0" style="{{#if:{{{border|}}}|border:.5em solid {{{border}}};{{roundy|{{{radius|.9em}}}}}|border:1px solid black;}}" align="{{#switch:{{{ | {| align="left" width="80%" cellpadding="0" cellspacing="0" style="{{#if:{{{border|}}}|border:.5em solid {{{border}}};{{roundy|{{{radius|.9em}}}}}|border:1px solid black;}}" align="{{#switch:{{{align}}}|center=center|left=left|right=right|left}}"> | ||
! align="left" style="background-color:{{{border|black}}};color:{{{color|white}}}"| '''{{{ | ! align="left" style="background-color:{{{border|black}}};color:{{{color|white}}}"| '''{{{title}}} [[Template:pixpls|<small><sup>About missing Pics</sup></small>]]'''<div class="mw-collapsible mw-collapsed" data-expandtext="[Expand Gallery]" data-collapsetext="[Collapse Gallery]"> | ||
<center> | <center> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
{| width="100%" | {| width="100%" | ||
! style="background-color:white;" | {{{ | ! style="background-color:white;" | {{{gallery}}} | ||
|}</div> | |}</div> | ||
</div></center> | </div></center> | ||
Line 16: | Line 16: | ||
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 | | <nowiki>{{collapsegallery | title | 2=id | align | gallery=<gallery> files </gallery> | border | color}}</nowiki> | ||
{| border="1" | {| border="1" | ||
Line 44: | Line 44: | ||
=== Traditional (border isn't set) === | === Traditional (border isn't set) === | ||
{{Collapsegallery|Hello, world!| | {{Collapsegallery|title=Hello, world!|id=cg2|align=center|gallery=<gallery> | ||
File:Popcorn4.gif | File:Popcorn4.gif | ||
</gallery>}} | </gallery>}} | ||
Line 50: | Line 50: | ||
=== Rounded === | === Rounded === | ||
{{Collapsegallery|Hello, world!|cg2|center|<gallery> | {{Collapsegallery|title=Hello, world!|id=cg2|align=center|gallery=<gallery> | ||
File:Popcorn4.gif | File:Popcorn4.gif | ||
</gallery>|border=blue|color=cyan}} | </gallery>|border=blue|color=cyan}} | ||
Line 59: | Line 59: | ||
=== Traditional (border isn't set) === | === Traditional (border isn't set) === | ||
{{Collapsegallery|Hello, world!| | {{Collapsegallery|title=Hello, world!|id=cg2|align=center|gallery=<gallery> | ||
File:Popcorn3.gif | File:Popcorn3.gif | ||
File:Popcorn4.gif | File:Popcorn4.gif | ||
Line 66: | Line 66: | ||
=== Rounded === | === Rounded === | ||
{{Collapsegallery|Hello, world!|cg2|center|<gallery> | {{Collapsegallery|title=Hello, world!|id=cg2|align=center|gallery=<gallery> | ||
File:Popcorn2.gif | File:Popcorn2.gif | ||
File:Popcorn4.gif | File:Popcorn4.gif |
Revision as of 15:04, 7 January 2021
{{{title}}} About missing Pics
|
---|
Usage
This is the collapsing gallery template. See Encyclopedia Dramatica:Collapsing Objects for an explanation.
{{collapsegallery | title | 2=id | align | gallery=<gallery> files </gallery> | border | color}}
title | |
---|---|
id | unique id for collapse gallery (example:cg1, cg2, etc.) |
align | left, right or center, default is left. |
4 | 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|title=Hello, world!|id=cg2|align=center|gallery=<gallery> File:Popcorn4.gif </gallery>}} === Rounded === {{Collapsegallery|title=Hello, world!|id=cg2|align=center|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 |
---|