Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:REVISIONUSER

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]

About REVISIONUSER

[edit]

{{REVISIONUSER}} is a "magic word" that returns the last person to change an article. On November 14, 2013, this feature was expanded to include {{REVISIONUSER:(article-name)}}, which makes it possible to query who edited any of a number of other articles. This templatedoes not need to be used in place of the magic word normally, but is provided so that aWP:Lua module can useframe:expandTemplate to access this function. (There may well be some other better way to do this).

Example: {{REVISIONUSER|Astronomy}} -> Bruce1ee. (i.e.User:Bruce1ee)

But you can get this straight from the parser function by typing {{REVISIONUSER:Astronomy}}.

Limitations
  • There is aBug in the{{REVISIONUSER}} magic word (tracked in Phabricator as Task T166946) which prevents it from working properly if the user name starts with certain wiki-markup characters such as a * and possible other characters. The work-around is to wrap the call to the magic word with thenowiki function ofModule:String2:
    For this page:{{#invoke:String2|nowiki|{{REVISIONUSER}}}} -> Vaulter
    ForUser:***SkooterBecca***:{{#invoke:String2|nowiki|{{REVISIONUSER:User:***SkooterBecca***}}}} -> ***SkooterBecca***
    or{{#invoke:String2|nowiki|{{REVISIONUSER|User:***SkooterBecca***}}}} -> ***SkooterBecca***
For consistency with the magic word, this template doesnot make that adjustment. The assumption is that if you are usingframe:expandTemplate you also have the ability to implement code similar to thenowiki function ofModule:String2.

See also

[edit]
The abovedocumentation istranscluded fromTemplate:REVISIONUSER/doc.(edit |history)
Editors can experiment in this template's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:REVISIONUSER&oldid=604966733"
Category:

[8]ページ先頭

©2009-2026 Movatter.jp