Last modified: 2010-02-24 15:10:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10336 - {{REVISIONUSER}} to print name of editor of current revision
{{REVISIONUSER}} to print name of editor of current revision
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.11.x
All All
: Normal enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
: 6553 12733 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-23 07:36 UTC by Jamie Hari
Modified: 2010-02-24 15:10 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
a REALLY bad hack (455 bytes, patch)
2009-01-31 05:32 UTC, X!
Details

Description Jamie Hari 2007-06-23 07:36:23 UTC
As we have today ~~~ signs your name encased in square braces to link to your user page.
Adding a fourth tilde (~~~~) signs your name as above, but with the date/time.
A fifth tilde produces the date/time without your username.

I propose another option:
Substitution of your username, but without the square braces for linking.

For example, ~~ (or ~~~~~~) would produce Jamie. No links, no namespace, just my username. This is similar in nature to Bug 4196 , but they were asking for a {{MAGICWORD}} which would be continually rendered on each page call. My suggestion is a one time substitution, exactly in the same method as for ~~~~.

This was brought up in comment #9 of Bug 4196, by Peter Halasz, but no one replied, probably because it was not the same thing as was being considered in that bug. I can foresee no reason whatsoever why this would not be possible. Neither from a technical, nor usage/abuse standpoint.

Probably wouldn't be hard to implement if we stole some of the code from the current handler for ~~~~ with a few modifications.


Any thoughts?
Comment 1 Filip Maljkovic [Dungodung] 2007-06-23 10:48:06 UTC
I, personally, wouldn't recommend tildes at all, because two of them is too few and six of them is too much. There are other 'special' characters out there (or combinations thereof). :)
Comment 2 AlexSm 2007-06-25 15:15:13 UTC
This is already doable: go to you personal preferences, put your name as signature, check 'Raw signature' checkbox. Note that this will annoy a lot of people (myself included).

Marking as INVALID.
Comment 3 Rob Church 2007-06-25 15:19:12 UTC
It isn't doable without messing about with preferences, *but* it adds another tilde-based string to a confusing repertoire and provides little practical benefit.
Comment 4 Jamie Hari 2007-06-25 17:40:30 UTC
@Alex,

This only works if you want to personally change this... my request is to allow for generic templating.

For instance, in wikinews, or similar, if you used 'inputbox' to create a new news article and wanted to sign the article as the author automagically, it would have something like: 

| Author = ~~ (or ~~~~~~, or other combo)

BUT, if the template categorizes based on the Author field, because ~~~~ produces brackets around the user name, it would categorize it as [[Category:[[User:Jamie|Jamie]]]] instead of [[Category:Jamie]] as desired.


@Rob,

I very much disagree that it provides little benefit; I am not even the first to suggest/request such a feature.

As for 'confusing repertoire', that is only in the mind of the beholder.




I would like a second opinion. 

It should be fairly easy to implement for someone who knows the MW code well, and it would provide a feature that several sites would find greatly useful, including Wikinews*. 

(*As stated in some other bug)
Comment 5 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-06-25 17:47:06 UTC
This would be potentially useful for stuff like templates, I *guess*, but as far as implementation goes, how about a magic word {{LASTEDITOR}}?  It could be substed to achieve this effect, or left unsubsted for who knows what ungodly purposes.  There should be no caching issue, since after all the caches are cleared on every edit.

I agree that this would be of somewhat limited utility, but I think we long ago passed the point of throwing out magic words that were of somewhat limited utility . . . how many variables do we have now?  :)  People want to create insane labyrinthine templates for all sorts of crazy purposes, and if we caved on ParserFunctions, there's probably no point in trying to retreat now. 
Comment 6 Jamie Hari 2007-07-07 02:40:51 UTC
Brion,

Can you please comment on this since Rob seems intent to close as wontfix?
Comment 7 Brion Vibber 2007-07-09 14:38:10 UTC
Hmmmm, I'm not sure I see a big use case for this. Seems to me that signing your name on something you'd want it to be linked, so ~~~ already gets the job done.
Comment 8 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-09 18:43:33 UTC
Not if it's, e.g., a template parameter that's used to construct subpages or something.  Consider, I dunno, {{userinfo}} = {{userinfo/real|{{{1| {{<includeonly>subst:</includeonly>LASTEDITOR}} }}, {{userinfo/real}} = [[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|talk]], [[Special:Contributions/{{{1}}}|contribs]], [[Special:Log/block/{{{1}}}|block log]], ...).  Then it would be a generic-use template which, if substed, would default to the posting editor.  Similar constructs could be useful in, e.g., Wikipedia RfA templates, or instructions for how to set up links to a certain type of user subpage.  {{LASTEDITOR}} could even conceivably be useful when unsubsted, like to display a message at the top of a page if the last editor wasn't an admin or the owner of the page or something.  And as I say, not going to mess with parser cache, is it?  I don't see any reason not to do this.
Comment 9 Jamie Hari 2007-07-13 04:51:24 UTC
That is one of the many possible reasons, yes... for inclusion into a template parameter.
Such that the template automagic doesn't turn:

[[Category:~~'s Pictures]] into [[Category:[[User:Jamie|Jamie]]'s Pictures]]

when we want 

[[Category:~~'s Pictures]] to be [[Category:Jamie's Pictures]] or something like that.


Um... What Simetrical said, too. ;)
Comment 10 Jamie Hari 2007-08-31 04:57:45 UTC
I would like to see some other input other than from Rob who seems dead-set against this.
Simetrical and I are both on the same page and Brion didn't say no... He only implied there might not be use for such a feature, yet we have both provided usages. 

Our wiki would make great use of this and I am sure we are just the tip of an iceberg.

~~~ simply doesn't fulfill the need in this case.

Would you concede that this could be useful and that it (at some point down the road) shouldn't be too hard to implement/integrate using already existing code?
Comment 11 Brion Vibber 2007-09-04 18:59:58 UTC
Perhaps something like {{REVISIONUSER}} (matching existing {{REVISIONTIMESTAMP}}, {{REVISIONID}}, etc). That could be subst:ed via a template, which I believe would have the desired result.
Comment 12 Jamie Hari 2007-09-09 04:15:42 UTC
Sounds promising... :)
{{REVISIONUSER}} might open the range of possible usages even futher...

Do you think that would that be as easy to implement and as easy for user adoption as ~~? (or whatever syntax)
Comment 13 とある白い猫 2008-04-25 12:01:03 UTC
Isn't bug #4196 in a way a duplicate of this?
Comment 14 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-04-25 14:10:53 UTC
No.  If I edit a page and then you view it, this bug ({{REVISIONUSER}}) would give "Simetrical", bug 4196 ({{USERNAME}}) would give "White Cat" (or whatever your name is).  They're different.
Comment 15 FT2 2008-06-23 12:08:20 UTC
Seems to be the same as bug 12733 which contemplates adding {{subst:USERNAME}}, {{subst:LASTEDITOR}} and so on in place of the cumbersome and limiting "~~~~~" format. (Per Tim #c11, the "subst:" should be used and it should break "in an elegant way" if omitted)
Comment 16 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-06-23 13:24:41 UTC
No, it's really not related at all.  There is no reason {{REVISIONUSER}}/{{LASTEDITOR}}/whatever you call it has to be substed, ever.  If it's not substed, it will just update to the new name every time an edit is made.  This is a totally different situation from bug 12733, which is really a dupe of bug 4196.
Comment 17 Martin 2008-11-14 11:57:15 UTC
I came here to request this exact same thing: a magic word {{REVISIONUSER}} and also one for the username of the creator of a page, e.g. {{CREATEUSER}}.
Comment 18 X! 2009-01-31 05:32:38 UTC
Created attachment 5750 [details]
a REALLY bad hack

Well, it's a REALLY crappy hack, but it works.
Comment 19 Aryeh Gregor (not reading bugmail, please e-mail directly) 2009-01-31 23:50:18 UTC
Bleh, more pre-save transform magic.  A subst:-able magic word would be considerably nicer.  Especially since no other __UNDERSCOREWORD__ currently substs like that.
Comment 20 Pinky 2009-03-07 23:33:43 UTC
Added in r48149
Comment 21 MZMcBride 2009-03-08 21:21:00 UTC
*** Bug 12733 has been marked as a duplicate of this bug. ***
Comment 22 Happy-melon 2010-02-24 15:10:11 UTC
*** Bug 6553 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links