This script/stylesheet is for PERSONAL use only!
You are free to install this script/stylesheet for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:ImportJS, MediaWiki:Common.js, MediaWiki:Common.css, MediaWiki:Fandomdesktop.js, MediaWiki:Fandomdesktop.css, or MediaWiki:FandomMobile.css), 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]
|
useUsernameAndLinks
|
Boolean | truefalse
|
true
|
useAvatar
|
Boolean | truefalse
|
true
|
useTimestamp
|
Boolean | truefalse
|
true
|
useUTC
|
Boolean | truefalse
|
true
|
useTimeago
|
Boolean | truefalse
|
false
|
avatarsize
|
Number | Any number integer
|
15
|
| 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 | Blog listing pages |
| 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],
useUsernameAndLinks: true,
useAvatar: true,
useTimestamp: true,
useUTC: false,
useTimeago: true,
avatarsize: 12
};
Notes
namespacescan be set to the stringallto enable PageCreator on all namespaces without needing add every namespace ID.
Changelog
- 07-10-21
- Final UCP update; removal of legacy code, refactoring of external dependency loader, restoration of
$.timeagofunctionality on UCP wikis - 28-09-21
- Addition of
useUsernameAndLinksoption to hide page creator name if desired - 21-07-20
- Addition of UCP support, addition of
avatarsizeconfig option per LastEdited, general cleanup/rewrite - 19-12-17
- Retrofitting of I18n-js, alteration of config options
- 04-08-17
- Cleanup, i18n expansion, method changes
- 04-02-17
- Slight cleanup/expansion of user options
- 23-12-16
- Local/UTC timezone options available
- 22-12-16
- Removed Help namespace in favor of Project/Sitename
- 12-12-16
- User-inputted namespaces accepted
- 9-12-16
- Initial revision