User:Eizen/PageCreator

This is the documentation page for the PageCreator.js user script.

PageCreator, not be confused with the MediaWiki extension of the same name, is a JavaScript user script that displays data about a page's creator and first revision. The script provides links to the creator's user page, talk page, and contributions page, and displays the date and time of creation as a link to the first revision of the page.

It is meant to be paired with its twin user script LastEditor, with which it shares a similar design appearance and page placement, though it can be used independently.

Installation
The script may be used in any personal common.js, vector.js, or monobook.js file.

It may be imported to a global.js file as well through the addition of the following import statement:

Alternatively, the script accepts a window object of user-defined variables that can alter script performance at will. By default, the script will display all data and will be prepended to the header of all pages listed in namespaces 0, 4, 8, and 10 (mainspace, Project, MediaWiki, and template). The window variables enable users to remove the timestamp and first revision link, display the timestamp in local or UTC time, adjust namespaces to suit their specific needs, and exclude certain pages. An example window object is shown below: