Opened 16 years ago
Closed 5 years ago
#4625 closed enhancement (fixed)
Macro to timestamp wiki edits -- just like ~~~~ in MediaWiki
Reported by: | 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
comment:3 Changed 15 years ago by
Summary: | A macro to timestamp wiki edits -- just like ~~~~ in MediaWiki → Macro to timestamp wiki edits -- just like ~~~~ in MediaWiki |
---|
comment:4 follow-up: 5 Changed 5 years ago by
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 Changed 5 years ago by
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.
comment:6 Changed 5 years ago by
Owner: | changed from anybody to joro75 |
---|---|
Status: | new → accepted |
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 5 years ago by
Keywords: | MediaWiki added |
---|---|
Resolution: | → fixed |
Status: | accepted → closed |
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.
Sounds like all that may be needed is a minor enhancement to AddCommentMacro.