Difference between revisions of "Template:PrettyRevisionTimestamp"

From Archiveteam
Jump to navigation Jump to search
m (Fix format)
m (Remove bolding; this can be added at the inclusion if it's useful)
 
Line 1: Line 1:
<includeonly>'''{{datetime|{{#time:Y-m-d|{{REVISIONTIMESTAMP:{{{1|}}}}}}}}}'''</includeonly><noinclude>
<includeonly>{{datetime|{{#time:Y-m-d|{{REVISIONTIMESTAMP:{{{1|}}}}}}}}}</includeonly><noinclude>
This template inserts the date on which an article was last edited. This has been used to communicate which of the lists in [[Projects]] haven't had an update in years.  
This template inserts the date on which an article was last edited. This has been used to communicate which of the lists in [[Projects]] haven't had an update in years.  



Latest revision as of 16:21, 24 August 2024

This template inserts the date on which an article was last edited. This has been used to communicate which of the lists in Projects haven't had an update in years.

The template is called PrettyRevisionTimestamp because it simply pretty prints the date of the REVISIONTIMESTAMP magic word.

Archiveteam1.png This template uses an "expensive parser function" (REVISIONTIMESTAMP with a different page as a parameter) but it isn't worse for rendering times than regular transclusions (in my testing.) Still, use it in moderation.

Usage

[[Manual projects]] was last updated: {{PrettyRevisionTimestamp|Manual projects}}

Manual projects was last updated: 2021-10-31