Jump to content

User:GhostInTheMachine/LastEditor

From Wikipedia, the free encyclopedia

GhostInTheMachineTalkAllHelpMiscModulesOtherLayoutPhotosProjectsScriptsTidyingTidyingSDTODOUBXWIP2024-08-11 12:47:16

Purpose

[edit]

This script displays information about the last edit to the page.

The following details are shown just below the page title:

  • ⇒ Last edited by
  • the username of the editor — linked to their user page
  • (talk | contribs) — standard links to the user's talk page and contributions
  • how long ago the page was edited — such as "46 minutes ago"
  • (diff) — a link to the diff for the edit
  • the edit summary

Prerequisites

[edit]

None.

Installing

[edit]

Add the following line to your common.js file.

{{subst:Lusc|User:GhostInTheMachine/LastEditor.js}}

Notes

[edit]

This script was shamelessly stolen from User:Eizen/LastEditor

I then made a few changes:

  • the information was split over two lines, so I reduced the output a bit and it now displays on one line
  • I added a couple of spaces at the start of the line, so that it aligns with the output from the xtools gadget
    XTools: dynamically show statistics about a page's history under the page heading

See also

[edit]