yoohoo! hot sauce please
10:27, 7 September 2026 (UTC)
Editing
2swagg wiki:Collapsing objects
(section)
From 2swagg wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Using Templates== The templates require you to specify a target class name. This allows you to extend the functionality of each template by adding more links or content regions to suit your need. A target class name must be unique to the page and contain no spaces. ==={{tname|cs}}: Section=== Level 2 collapsing section header. <pre> {{cs|A|B|C|D}} A: Unique name to the page, no spaces. Hint: The section name with no spaces works. B: The section name. C: The section content. May contain nested collapsable sections. D: The initial state. 0 = collapsed, anything else = expanded. </pre> For instance, <pre> {{cs|testSectionOne|Test Section One|Here's some sample content under a large header.|0}} </pre> gives you: {{cs|testSectionOne|Test Section One|Here's some sample content under a large header.|0}} ==={{tname|cg}}: Gallery=== <pre> {{cg|A|B|C|D|E}} A: Gallery title to be displayed in the black box B: Unique name to the page. Hint: The gallery title with no spaces works fine. C: Horizontal alignment of gallery on page. "left", "right", or "center". D: Teaser gallery images. Must be enclosed in <gallery></gallery> tags and should be a multiple of four images. E: Remaining gallery images. Must be enclosed in <gallery></gallery> tags. </pre> Example: <pre> {{cg|Dotjak Gallery|dotjakgallery|center|<gallery> <gallery widths="110px" heights="150" perrow="5"> File:Dotjak_calm.gif File:Dotjak_calm3.gif File:Dotjak_calm2.gif File:Dotjak_GigaGoofy.gif </gallery>|<gallery> File:Dotjak pepe.gif File:Dotjak_pepe2.gif File:Dotjak glowie.gif File:Dotjak_glowie2.gif </gallery>}} </pre> gives you: {{cg|Dotjak Gallery|dotjakgallery|center|<gallery> <gallery widths="110px" heights="150" perrow="5"> File:Dotjak_calm.gif File:Dotjak_calm3.gif File:Dotjak_calm2.gif File:Dotjak_GigaGoofy.gif </gallery>|<gallery> File:Dotjak pepe.gif File:Dotjak_pepe2.gif File:Dotjak glowie.gif File:Dotjak_glowie2.gif </gallery>}} <br clear="all" /> [[Category:Pages that look like the thing they're about]]
Summary:
Please note that all contributions to 2swagg wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
2swagg wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Project page
Discussion
Read
Edit source
History
Page actions
Project page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
janny
Noticeboard
Tools
What links here
Related changes
Special pages
Page information