User talk:Tjtrumpet2323

From Geohashing
Revision as of 15:16, 8 July 2008 by imported>Nemo (question... template magic)

Talk to me! Just be sure to sign with "~~~~" when you do... --Tim P 02:21, 25 May 2008 (UTC)


Re:St. Louis

No big, thanks for letting me know. MToolen 19:34, 30 May 2008 (UTC)

Bot for writing current coordinates

I saw that you are responsable for automatically updating the front page. I assume this means that you have a bot which calculates the coordinates and inserts them onto the front page. Would it be possible to have your bot also create a template that contains just the coordinates for a given day? For examply, it could create Template:Coords06-13-2008 that would take Lat and Long as input. That way, for setting up pages about a specific graticule on a specific day, we could just put in a string that is something like {{Coords2008-06-13|Lat=42|Long=71}} instead of having to copy and paste from the reference implementation. If you wanted to get fancy, you could even have the bot update a master template that uses if statements to lookup a certain day's coordinates, so that we would just have to call {{Coordinates|Date=2008-06-13|Lat=42|Long=71}}.--Ahecht 15:38, 13 June 2008 (UTC)

Unfortunately, I actually edit and create the pages manually (for the time being, it forces me to be up at 09:15). I am planning on eventually programming templates to automate almost all of the calculational stuff you mentioned; however it is all reliant on installation of the MediaWiki Implementation on this wiki, as stuff like md5() isn't a default wiki function. Please, feel free to bounce ideas off of me... but know that until the MWI is installed, not much can happen. --Tim P 15:45, 13 June 2008 (UTC)

Coordinates Template Automation

I see that there are newer implementations of the coordinates on the main page. I'd just like to use a similar table on the expedition pages. (Something simple like this: {| class="wikitable" style="text-align: center; vertical-align: top; border: 3px solid black; border-collapse: collapse; margin: 1em" border="1" cellpadding="2" width="300" !width=50%| Date !width=50%| Coordinates |- ! {{date link|2008-06-29|D j M Y}} | {{coordinates|2008-07-02|30w=1}} |} Is there a way to put the integer parts of my graticule in front of the fractional parts? Thanks: --Tom 08:59, 2 July 2008 (UTC)

There will be eventually! In fact, that's probably next on my list of things to do with this exciting new functionality! --Tim P 15:33, 2 July 2008 (UTC)
DONE! Template:Coordinates graticule now offers this functionality! --Tim P 02:26, 3 July 2008 (UTC)
Hey tjtrumpet, awesome work on all the template magic. Might be worth writing up a little primer somewhere for what template magic exists and roughly how they're intended to be used. Hate to see them all get barely any use... --Nemo 09:33, 3 July 2008 (UTC)
Hey, so nice. We're all thankful. --Tom 14:24, 3 July 2008 (UTC)

template magic question

Tim: I've got a little bit of magic on the top of the Canberra, Australia which gives auto-links each day to upcoming points. (checks up to four days ahead and if DJIA is available, gives a link). THis was working fine when I got it up just before the DJIA long weekend, but now gives one extra day worth of coords - which are wrong due to the lack of DJIA data to feed the md5. This has only begun tonight though... I've not checked the changelogs of all the nested templates it's using, so might be something there. Otherwise, any ideas? (aside: it was this link box which got me generalising Template:Announce before realising that, as it stands, it's still unusable for that box. (though may be in the future yet) --Nemo 15:16, 8 July 2008 (UTC)