Am 13.07.2015 um 18:34 schrieb John Erling Blad:
You have versioning for templates, it is the last
timestamp your
labels should refer to. You don't have to regenerate a previous
template, you just have to figure out which labels were valid at the
time the template was last saved. That timestamp is one additional
column in your labels table. That is your time warp machine. You don't
need a time warp machine for everything, to use your example.
Works find until somebody renames or deletes a template, or oversights a
revision, or there are multiple revisions with the same timestampt (yes, that is
possible), etc. This has been tried, and it works ok-ish for the "normal"
cases,
and completely fails for edge cases, as far as I know:
https://www.mediawiki.org/wiki/Extension:Memento
--
Daniel Kinzler
Senior Software Developer
Wikimedia Deutschland
Gesellschaft zur Förderung Freien Wissens e.V.