OldFilePages reverts file pages to the old design—no tabs. It also makes some improvements, such as re-adding duplicate file listings and listing regular links to the file if there are no transclusions. The intention is to make it easier for people who are working on file maintenance and such tasks.
For personal use, add the code snippet below to your global.js page (for use on all wikis) or your common.js page on your wiki (for use on a single wiki). Note that personal JS must be enabled for your account.
Note: In this example, pay close attention to the placement of commas and other punctuation. For people who aren't familiar with programming (and even those who are!), a common mistake when writing code is to accidentally delete, forget, or misplace critical symbols like commas or quotation marks. This can cause a syntax error that breaks the code. Carefully follow the convention shown here when using importArticles.
Configuration of this script is done through the OFPoptions object. You should insert it into your global.js/common.js pages if you're importing it for personal use or into MediaWiki:Common.js page on your wiki if you're importing it for site-wide use. There are two configuration options you can use:
showlinks — Set to true if you want links to the file to show below transclusions regardless of whether it's used anywhere
limit — Set to a number to change the biggest amount of files that will be displayed in the transclusions section
This is only example configuration and isn't required for the script to work.
This will make the list of pages that link to the file show up regardless of whether a page transcludes it and the maximum amount of transclusions shown will be set to 200.
Using configuration options with FANDOM Open Source Library scripts