Page MenuHomePhabricator

Parser function {{#lastuploader:filename}}
Closed, DeclinedPublicFeature

Description

Background

The parser function (magic word) {{REVISIONUSER}} outputs the username of the user who last edited a page. See https://www.mediawiki.org/wiki/Help:Magic_words#Technical_metadata_of_another_page. This should become {{#revisionuser}} due to T204370: Behavior switch/magic word uniformity.

If used on a file page, this will output the user who last edited the text element of the page, not the user who last uploaded a file with that name.

Proposal

{{#lastuploader}} (taking {{#lastuploader:filename}}). If used on a file; page, then defaulting to {{#lastuploader:pagename}}`. If used on a non-file page, then output error:

⚠️ No file specified for parser function {{#lastuploader}}

Spanner: If a file is reverted to an old version, should it output the user who did the reverting? Or the user who originally uploaded that file? What do people think?

Use case(s)

Would be useful on Commons. Could be used in templates there. 👍

Event Timeline

Please be more specific. What is the actual use case for this?

I'm opposed to adding parser functions for something this niche, especially without a concrete usecase.

I think adding something like this to lua would be fine, although it would still be nice to have a concrete usecase.

Declining for now per previous comments as no use case has been provided.