Modify

Opened 15 years ago

Closed 4 years ago

#4625 closed enhancement (fixed)

Macro to timestamp wiki edits -- just like ~~~~ in MediaWiki

Reported by: alex@… Owned by: joro75
Priority: normal Component: Request-a-Hack
Severity: normal Keywords: MediaWiki
Cc: joro75 Trac Release: 0.11

Description

Would be nice to have a way to insert current timestamp into wiki. MediaWiki has such a feature. "~~~~" (4 tildas) in wiki gets replaced by username and timestamp of the moment the edit was done. This is a convenient way to have discussions or blog-style pages with timestamped comments or "posts".

Attachments (0)

Change History (6)

comment:2 Changed 15 years ago by Ryan J Ollos

Sounds like all that may be needed is a minor enhancement to AddCommentMacro.

comment:3 Changed 15 years ago by Ryan J Ollos

Summary: A macro to timestamp wiki edits -- just like ~~~~ in MediaWikiMacro to timestamp wiki edits -- just like ~~~~ in MediaWiki

comment:4 Changed 4 years ago by joro75

Cc: joro75 added

I think that I will be able to make this request possible. I didn't program it yet, however I have a good idea on how to realise this.

As this request is generated some years ago, the question is: Are you still interested to have the possibility to use the MediaWiki token to be replaced by the user-id/name and date time on the WikiPage?

Please let me know if you are still interested, or if it is not needed anymore.

comment:5 in reply to:  4 Changed 4 years ago by alex@…

Replying to joro75:

I think that I will be able to make this request possible. I didn't program it yet, however I have a good idea on how to realise this.

...

It would still be a valuable feature, I believe.

Last edited 4 years ago by Ryan J Ollos (previous) (diff)

comment:6 Changed 4 years ago by joro75

Owner: changed from anybody to joro75
Status: newaccepted

Ok. I will create a new trac plugin that will change the during a save of a WikiPage to the username and actual date.

Please have some patience before it is ready and finished. Will probably not be very soon due to other things that also has to be done...

comment:7 Changed 4 years ago by joro75

Keywords: MediaWiki added
Resolution: fixed
Status: acceptedclosed

I have created the TracMediaWikiSignature plugin, which implements the possibility to include MediaWiki signatures ~~~, ~~~~ and ~~~~~ on a Wiki page. A similar request was also added to the original Trac ticket list: t:#1240.

During the saving of the Wiki page, the ~-code will be replaced with the corresponding signature of the editing user and the timestamp.

The username and timestamp will be shown in the standard Trac formatting. The timestamp will for example be a pretty formatted time difference (like: "5 minutes ago"), and it is linked to the corresponding date and time in the timeline.

For the details of the TracMediaWikiSignature plugin, please see: ​https://github.com/joro75/TracMediaWikiSignature

In my opinion, we can mark this ticket as fixed now, since the plugin is available.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain joro75.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.