Edgewall Software
Modify

Opened 15 years ago

Last modified 7 months ago

#1240 new enhancement

Persistent [[Timestamp]]

Reported by: chrisb .not at. ewetel .dot. net Owned by:
Priority: normal Milestone: topic-wikiengine
Component: wiki system Version: 0.8
Severity: minor Keywords: Timestamp javascript signature
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

If a wiki page is used to document a progress/process it may occur that multiple timestamps are used during successive edits.

Doing so results in renewal of older timestamp.

This ticket may be seen in context with ticket #955

Attachments (0)

Change History (8)

comment:1 by Christian Boos, 15 years ago

Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned

I think the current implementation should be renamed [[Now]]

and that we fix the [[Timestamp]] macro so that it becomes indeed peristent.

Comments?

comment:2 by Matthew Good, 15 years ago

Well, changing the meaning of existing macros is probably a bad idea. I agree that [[Now]] would be a more clear, so maybe this should be an alias for [[Timestamp]]. However, I don't understand how you would make the [[Timestamp]] macro persistent, since WikiMacros are only processed when the page is rendered, you don't know when the particular timestamp was added to the page. This would probably require a macro that was processed on saving the page, which isn't currently supported. I think we should probably give this some discussion before proceeding.

These wouldn't be a real substitute for the requested timestamp changes, but some possibly useful related macros would be [[LastSaved]] and [[Created]]

comment:3 by Christian Boos, 15 years ago

Status: assignednew

(changing the status, as I've not actually started to work on that yet)

comment:4 by Christian Boos, 14 years ago

Keywords: javascript added
Milestone: 1.0
Severity: normalminor

Instead of a macro, the functionality originally requested would perhaps be better achieved by the way of a new "Signature" button in the wiki toolbar of text edit fields, which will insert the current author name and the current time as plain text.

I think lots of other Wikis do it that way.

comment:5 by Christian Boos, 10 years ago

Keywords: signature added
Milestone: 1.00.13

Indeed timestamps and signatures are closely related. See MediaWiki:Help:Signatures for example, which has a nice syntax that we could adopt:

Function Wiki markup Resulting code Resulting display
Signature plus timestamp ~~~~ [[user:Username|Username]] [[timeline:2006-11-27T19:46:32+01:00|19:46:32, 27 November 2006 (UTC)]] Username 19:46:32, 27 November 2006 (UTC)
Signature alone ~~~ [[user:Username|Username]] Username
Timestamp alone ~~~~~ [[timeline:2006-11-27T19:46:32+01:00|19:46:32, 27 November 2006 (UTC)]] 19:46:32, 27 November 2006 (UTC)

In the above, Wiki markup would be what the user writes, Resulting code would be what would actually be saved. We would need a preprocessing stage here.

comment:4 still applies, the signature button could simply insert ~~~~.

comment:6 by Christian Boos, 10 years ago

Milestone: 0.130.14-wikiengine

comment:7 by Ryan J Ollos, 5 years ago

Owner: Christian Boos removed

comment:8 by john.de.rooij@…, 7 months ago

I have created the TracMediaWikiSignature plugin, which implements the possibility to include MediaWiki signatures ~~~, ~~~~ and ~~~~~ on a Wiki page. It is based on the suggestions from comment:5.

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.

The timestamps are stored in the content of the Wiki page, so successive editing of the Wiki page will not modify previous timestamps.

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

In my opinion, we can close this ticket now, since the plugin is available.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.