FANDOM


This script is for PERSONAL use only!

You are free to install this script for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:Common.js or MediaWiki:Wikia.js), as it would violate Fandom's Terms of Use.
(See the customization policy)

PageCreator (not to be confused with the similar MediaWiki extension) provides details regarding a page's creator and date of creation. It was initially conceived as an extension of the LastEdited script, and as such shares the same design, but it may be employed on its own.

It was designed for use on wikis dedicated to user-generated content where editing other users' pages might be prohibited. The script will provide content details on the Main, Project, MediaWiki, Template, and Category namespaces by default if no custom selection is indicated.

Installation

An avatar and timestamp may be added, namespaces customized at will, and UTC/local timezone preferences notated through the addition of a window object.

Variables Type Valid values Default value(s)
namespaces Array See below [0, 4, 8, 10, 14]
useAvatar Boolean true
false
false
useTimestamp Boolean true
false
false
useUTC Boolean true
false
false
useTimeago Boolean true
false
false
ID Namespace Description
-2 Media Used for direct linking to images. For example, Media:Wiki.png links directly to the image page.
-1 Special Special pages. Used by MediaWiki code and extensions
0 Mainspace Articles
1 Talk Article discussion
2 User Personal user pages
3 User talk Pages for discussion with users
4 Project/Sitename Wiki-related content
5 Project talk/Sitename talk Discussion of Project pages
6 Image/File File descriptions
7 Image talk/File talk File discussion
8 MediaWiki System messages and configuration
9 MediaWiki talk Discussion of MediaWiki pages
10 Template Templates
11 Template talk Template discussion
12 Help Help pages, also see Shared Help
13 Help talk Discussion about Help pages
14 Category Categories
15 Category talk Category discussion
110 Forum Old forum pages
111 Forum talk Discussion about old forum pages
500 User blog Blog pages
501 User blog comment User blog comments
502 Blog Blog listing pages
503 Blog talk Blog listing page discussion. Generally unused
828 Module Lua module pages
829 Module talk Lua module discussion pages
1200 Message Wall Pages used for the Wall extension. Touch only if you know what are you doing.
1201 Thread Message Wall thread namespace
1202 Message Wall Greeting Pages used for content above message boxes on Message Walls
2000 Board Board namespace. Used for storing board descriptions
2001 Board Thread Forum threads

For example:

window.pageCreatorConfig = {
    namespaces: [4, 8],
    useAvatar: true,
    useTimestamp: true,
    useUTC: true,
    useTimeago: true
};

Notes

  • namespaces can be set to the string "all" to enable PageCreator on all namespaces without needing add every namespace id.

Changelog

9-12-16

Initial revision

12-12-16

User-inputted namespaces accepted

22-12-16

Removed Help namespace in favor of Project/Sitename

23-12-16

Local/UTC timezone options available

04-02-17

Slight cleanup/expansion of user options

04-08-17

Cleanup, i18n expansion, method changes

19-12-17

Retrofitting of I18n-js, alteration of config options

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