Topic on Project:Support desk

How to print the username of the original author of a page?

4
2001:44C8:4179:6920:F17A:3CA6:DCB2:FC49 (talkcontribs)

We have a MediaWiki website in which registered users can publish opinion articles.

At the start of each opinion article there is a template indicating "This opinion article was written by USERNAME".


Right now, it shows {{{1}}} instead of USERNAME.


How to fix this?

Samwilson (talkcontribs)

It's possible to get the author of the latest revision, via the {{REVISIONUSER}} parser function, but I don't know if there's any way to get the first author. I'd suggest it'd be better to have this be provided to the template anyway, so that there is some control over who is listed as the author (which it sounds like your template is expecting anyway, as the first parameter).

Ammarpad (talkcontribs)
Reply to "How to print the username of the original author of a page?"