Thread:WonderBuono!/@comment-4627163-20140114051812

Since some pages are very long, for example Morning Musume, how about adding the back to top button, so that user can just click that button to go to the top of the pages instead of scrolling or pulling the scroll bar?

The codes are imported from dev wikia, and they need to be copied to MediaWiki:Common.js.

importArticles({   type: "script",    articles: [        "u:dev:BackToTopButton/code.js",        "u:dev:ShowHide/code.js",    ] });

The back to top button will appears on the right side of Universal Wikia Toolbar (bottom screen, the one with My contributions, Create a new page, My Tools, Customize, Admin, ...)

The "Show/Hide" code is a different stuff. I hope you don't mind to add it as well. I'm currently putting up some NAV templates which need that piece of code so that it can work.

Thanks a lot! :) 