Author Topic: Collapsible templates  (Read 7455 times)

Offline Dragonfree97

  • Dragon Tamer
  • Newbie
  • *
  • Posts: 9
  • Gender: Male
  • I be a Rathalos
    • View Profile
Collapsible templates
« on: November 20, 2010, 11:23:33 PM »
Firstly, I apologise if this is in the wrong place. Anyway, how do you make templates collapse? I have tried copying the js from the MarioWiki, but to no success.
Toast falls butter side down, right? And a cat always falls on it's feet. So what happens if we attach some toast, butter side up to the back of a cat, then drop said cat? Levitation!

Offline Axiomist

  • Retired Staff
  • *
  • Posts: 618
  • Gender: Male
    • View Profile
    • WiKirby
Re: Collapsible templates
« Reply #1 on: November 21, 2010, 12:38:11 AM »
Ah the hide/show tools can be finicky. Copy this exactly and place it in a page with the exact same title.

Offline Jake

  • Nookipedia Staff
  • ***
  • Posts: 244
  • Gender: Male
  • Nookipedia Director / Server Admin
    • View Profile
    • Nookipedia
Re: Collapsible templates
« Reply #2 on: November 21, 2010, 01:53:47 AM »
I'll add the code for you Dragonfree. We'll see if it works. Thanks Axiomist! :)

Offline tacopill

  • Lylat Wiki Staff
  • ***
  • Posts: 3128
    • View Profile
    • csanimefan
Re: Collapsible templates
« Reply #3 on: November 21, 2010, 02:22:43 AM »
keep in mind, it's not the template that's collapsible, it's the table inside of it.


Code: [Select]
{| class="collapsible"
|-
|
|-
!  <-- first header row will have [show]/[hide]
|-
|
|-
|}







Offline leem01

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Collapsible templates
« Reply #4 on: November 22, 2010, 07:51:56 AM »
I think we've got it sorted out now.

Offline tacopill

  • Lylat Wiki Staff
  • ***
  • Posts: 3128
    • View Profile
    • csanimefan
Re: Collapsible templates
« Reply #5 on: November 22, 2010, 06:02:56 PM »
cool. Good luck with it.