NIWA Community Forums

NIWA Community => NIWA Discussion => Topic started by: Dragonfree97 on November 20, 2010, 11:23:33 PM

Title: Collapsible templates
Post by: Dragonfree97 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.
Title: Re: Collapsible templates
Post by: Axiomist on November 21, 2010, 12:38:11 AM
Ah the hide/show tools can be finicky. Copy this (http://www.wikirby.info/wiki/MediaWiki:Common.js) exactly and place it in a page with the exact same title.
Title: Re: Collapsible templates
Post by: Jake on November 21, 2010, 01:53:47 AM
I'll add the code for you Dragonfree. We'll see if it works. Thanks Axiomist! :)
Title: Re: Collapsible templates
Post by: tacopill 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.



{| class="collapsible"
|-
|
|-
!  <-- first header row will have [show]/[hide]
|-
|
|-
|}
Title: Re: Collapsible templates
Post by: leem01 on November 22, 2010, 07:51:56 AM
I think we've got it sorted out now.
Title: Re: Collapsible templates
Post by: tacopill on November 22, 2010, 06:02:56 PM
cool. Good luck with it.