Template:REVISIONUSER: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
m (Protected "Template:REVISIONUSER" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
(No difference)
|
Latest revision as of 20:50, 26 March 2024
About REVISIONUSER
{{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 template does not need to be used in place of the magic word normally, but is provided so that a BTW:Lua module can use frame:expandTemplate to access this function. (There may well be some other better way to do this).
Example: {{REVISIONUSER|Astronomy}} -> . (i.e. [[User:]])
But you can get this straight from the parser function by typing {{REVISIONUSER:Astronomy}}.
Limitations
- Note: Use of REVISIONUSER with a parameter appears to be counted as an expensive parser function against the page limit. This can be confirmed using Module:Preview expense.
- There is a Bug 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 the nowiki function of Module:String2: