User talk:Fiddling Frog

From Wikipedia, the free encyclopedia

[edit] Hidden templates

Ahoy there. I'm an admin on the YPPedia, the wiki for the Yohoho! Puzzle Pirates community. I noticed your name when looking over MediaWiki talk:Monobook.js. We have attempted to replicate the show/hide functionality of the {{hidden}} template on our wiki but with no success. If you have the time and inclination, would you be able to look over our files and see what we have missed? Everything that we have already copied uses the same name as on the Wikipedia, so you should have no trouble finding (or not finding) the relevant files. Thanks in advance, we appreciate any help you can give us.--Fiddling Frog 06:48, 9 September 2006 (UTC)

I took a quick look, and found two things which prevent it from working there. The first one is that the skin used there is not Monobook; it is a skin named Puzzlepirates (a quick view source at any page on that site shows it is trying to load from MediaWiki:Puzzlepirates.css instead of from MediaWiki:Monobook.css). This means you have to copy the code to MediaWiki:Puzzlepirates.js and MediaWiki:Puzzlepirates.css instead of the corresponding Monobook pages (I believe the Puzzlepirates skin is a monobook-derived one; if it isn't, you are out of look, since standard-derived skins currently do not have a JavaScript page at the MediaWiki namespace).
The second problem is smaller, but would also prevent it from working; you missed the addLoadEvent function from MediaWiki:Monobook.js (you correctly copied the line calling it, but didn't copy its definition which can be found a few screenfuls above). --cesarb 14:54, 9 September 2006 (UTC)