Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Tracking Current Versions  (Read 1354 times)

salithus

  • Bay Watcher
  • gottagofast
    • View Profile
Tracking Current Versions
« on: September 01, 2014, 10:45:17 pm »

Before I go much further down this rabbit hole - has anyone done any work on tracking the "current" version of a give module/graphics pack/utility?

I've put together the following so far and think it might work if I can get adoption of it, but there's also got to be a better way of doing it:

1) http://dwarffortresswiki.org/index.php/Template:Salithus defines the start of a template for utlity/module/whatever info. It accepts a title, updated, and version param right now.
2) If version isn't specified, it'll check the current location /version to grab that value:

Examples:
http://dwarffortresswiki.org/index.php/Sandbox:Test
http://dwarffortresswiki.org/index.php/Sandbox:Test/version

http://dwarffortresswiki.org/index.php/User:Salithus
http://dwarffortresswiki.org/index.php/User:Salithus/version

Next up: http://dwarffortresswiki.org/index.php/Sandbox:Test/version?action=raw gives me a string I can parse to check the version and compare to a currently installed version.

However, I know there is some kind of voodoo going on with how Raws are displayed via templates.

Any pointers here, or better ways to do this?
Logged