Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

User:Eizen/LastEditor

    From Wikipedia, the free encyclopedia
    <User:Eizen
    LastEditor
    DescriptionDisplays information concerning last editor of page
    AuthorsEizen
    (Using code byPleaseStand)
    StatusStable
    UpdatedAugust 11, 2017; 8 years ago (2017-08-11)
    BrowsersDeveloped inGoogle Chrome
    SkinsVector
    Monobook
    SourceUser:Eizen/LastEditor.js
    This is the documentation page for theLastEditor.js user script.

    LastEditor is aJavaScript user script that displays data about a page's last editor. The script provides links to the user's page, talk page, and contributions page, as well as displaying the time elapsed since the last edit, a link to the diff in question, an[m] marker in case of minor edits, and the edit summary of the last edit.

    The script is inspired bySlyst'sLastEdited script in use on theWikia network in terms of its design and general appearance, and borrows a pair of functions fromPleaseStand'sUserInfo script to replicate the TimeAgo jQuery plugin.

    Installation

    [edit]

    The script may be used in any personalcommon.js,vector.js, ormonobook.js file.

    importScript("User:Eizen/LastEditor.js");

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

    mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Eizen/LastEditor.js&action=raw&ctype=text/javascript");

    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 time elapsed text, the diff link, and the edit summary, as well as adjust namespaces to suit their specific needs and exclude certain pages. An example window object is shown below:

    window.LastEditorOptions={namespaces:[0,4,8,12,14],// Custom namespace selectionexcluded:["Elfin_woods_warbler"],// Excluded page (must be encoded)showTime:false,// Indicates that the duration of time not be shownshowDiff:false,// Hides diff linkshowSummary:false// Hides new line summary};
    VariablesTypeValid valuesDefault value(s)Description
    namespacesArrayAny valid namespace[0, 4, 8, 10]An array of namespaces upon whose pages the script will be appended
    excludedArrayAny encoded page[] (empty array)An array of pages to be excluded (must bewgPageName of page)
    showTimeBooleantrue,falsetrueDisplays the duration of time that has elapsed since the last edit
    showDiffBooleantrue,falsetrueProvides a link to the last revision of the page and displays a marker for minor edits
    showSummaryBooleantrue,falsetrueDisplays edit summary of last edit
    Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Eizen/LastEditor&oldid=1071422115"
    Category:

    [8]ページ先頭

    ©2009-2025 Movatter.jp