FANDOM


This Forum has been archived

Visit the new Forums
Forums: Index Help desk Adding a Collapsible Template:Test css first?
FANDOM's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.

50px-Replacement filing cabinet.svg

Note: This topic has been unedited for 3672 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


So here's the deal: I am a new member of BioShock Wiki and I have been trying to update and add more templates to improve the site. I want to add a collapsible table template. After doing some research I realized that it would require adding on to the main css and js for the site. (as seen at [1]) (Bear with me; I am so new at this...)

I read on another help article that you can test any css and js scripts by posting them on Special:Mypage/common.css and Special:Mypage/common.js first. I tried copying and pasting the css and js scripts but never saw any effects when I tried to make a table (even after ctrl+shift+r in Firefox). I think you can look it over for yourself here, [2] and [3] to see if I made obvious mistakes.

So my question is: is this actually a good way of testing css/js script? How would I actually check to see if the table is working?--Gardimuer 06:05, October 28, 2009 (UTC)


If you take a read of the documentation at w:c:dev:ShowHide then I am confident you'll find that solution by Dantman does everything you might imagine wanting to do with collapsible tables. --najevi 06:46, October 28, 2009 (UTC)
Thank you, that is a useful link, but it doesn't answer my question about how to test the css and js codes before hand. Is there a way I can test whether they will work without accessing the BioShock wiki common.js?--Gardimuer 22:27, October 28, 2009 (UTC)
Special:Mypage/common.js. Ose TalkContribs 23:31, October 28, 2009 (UTC)
To be clear, Gardimuer, pasting your code in Special:Mypage/common.js will apply the changes (after clearing your cache) only to how YOU view the site. Same goes if you paste into Special:Mypage/common.css. --DaNASCAT 05:52, October 29, 2009 (UTC)

Wait, wait, wait... Your personal .js / .css page is under Special:Mypage/currentskin.js and Special:Mypage/currentskin.css respectively, where currentskin is the skin selected in your preferences, all lowercase. It usually is monaco, so it would be Special:Mypage/monaco.js. Common is only used in the MediaWiki namespace. Also, there's a global.js and global.css here on central to affect all wikis on wikia. --Ciencia Al Poder (talk) -WikiDex 15:04, October 30, 2009 (UTC)

Community content is available under CC-BY-SA unless otherwise noted.