Difference between revisions of "Template talk:ASG"

From Geohashing
imported>Tjtrumpet2323
(Calculational Errors?)
imported>Tjtrumpet2323
m (Calculational Errors?: removing unnecessary <code> tags)
Line 2: Line 2:
 
Not sure how the age is calculated, but last I checked 2008 - 1966 was 42, not 38... --[[User:Thomcat|Thomcat]] 17:59, 18 June 2008 (UTC)
 
Not sure how the age is calculated, but last I checked 2008 - 1966 was 42, not 38... --[[User:Thomcat|Thomcat]] 17:59, 18 June 2008 (UTC)
 
: Thomcat, might you be trying to use a date format other than '''YYYY-MM-DD'''?  If not, can you paste the code you tried to use below inside <code><nowiki><code>...</code></nowiki></code> tags so that I can look into it?  Thanks.  --[[User:Tjtrumpet2323|Tim P]] 21:16, 18 June 2008 (UTC)
 
: Thomcat, might you be trying to use a date format other than '''YYYY-MM-DD'''?  If not, can you paste the code you tried to use below inside <code><nowiki><code>...</code></nowiki></code> tags so that I can look into it?  Thanks.  --[[User:Tjtrumpet2323|Tim P]] 21:16, 18 June 2008 (UTC)
:: Sorry, Tim, totally spaced this, and I write code for a living! This is still a problem; here's the code: <code><nowiki><code>{{ASG|birthdate=1966-05-10|gender=m|lat=47|lon=-122}}</code></nowiki></code> --[[User:Thomcat|Thomcat]] 19:33, 7 July 2008 (UTC)
+
:: Sorry, Tim, totally spaced this, and I write code for a living! This is still a problem; here's the code: <code><nowiki>{{ASG|birthdate=1966-05-10|gender=m|lat=47|lon=-122}}</nowiki></code> --[[User:Thomcat|Thomcat]] 19:33, 7 July 2008 (UTC)
 
::: It's using 1970 instead of 1966?  Epoch fail? -- [[User:Moose Hole|Moose Hole]] 00:01, 8 July 2008 (UTC)
 
::: It's using 1970 instead of 1966?  Epoch fail? -- [[User:Moose Hole|Moose Hole]] 00:01, 8 July 2008 (UTC)
 
:::: '''DOH!'''  Yes.  Epoch fail.  A lot of the code relies on PHP date()-like functionality.  Although, to be fair, I took the age calculation code straight from a similar Wikipedia template.  I'm sure there's a better one around, though, so I'll do a bit of looking and get back to you all here.  --[[User:Tjtrumpet2323|Tim P]] 02:45, 8 July 2008 (UTC)
 
:::: '''DOH!'''  Yes.  Epoch fail.  A lot of the code relies on PHP date()-like functionality.  Although, to be fair, I took the age calculation code straight from a similar Wikipedia template.  I'm sure there's a better one around, though, so I'll do a bit of looking and get back to you all here.  --[[User:Tjtrumpet2323|Tim P]] 02:45, 8 July 2008 (UTC)

Revision as of 02:45, 8 July 2008

Calculational Errors?

Not sure how the age is calculated, but last I checked 2008 - 1966 was 42, not 38... --Thomcat 17:59, 18 June 2008 (UTC)

Thomcat, might you be trying to use a date format other than YYYY-MM-DD? If not, can you paste the code you tried to use below inside <code>...</code> tags so that I can look into it? Thanks. --Tim P 21:16, 18 June 2008 (UTC)
Sorry, Tim, totally spaced this, and I write code for a living! This is still a problem; here's the code: {{ASG|birthdate=1966-05-10|gender=m|lat=47|lon=-122}} --Thomcat 19:33, 7 July 2008 (UTC)
It's using 1970 instead of 1966? Epoch fail? -- Moose Hole 00:01, 8 July 2008 (UTC)
DOH! Yes. Epoch fail. A lot of the code relies on PHP date()-like functionality. Although, to be fair, I took the age calculation code straight from a similar Wikipedia template. I'm sure there's a better one around, though, so I'll do a bit of looking and get back to you all here. --Tim P 02:45, 8 July 2008 (UTC)

Category:Geohashers

Imho, [[Category:Geohashers]] should be taken off this template. It will potentially cause a clutter on the category page, and is somewhat redundant with Special:Listusers. On the other hand, [[Category:Geohashers in {{{lat}}},{{{lon}}}]] seems pretty useful, I propose [[Category:Geohashers by graticule]] for sorting these, similar to [[Category:Geohashers]] by location. Even better: automatically transclude the list of geohashers in the graticule onto the graticule page. --r0d3n7z 18:54, 18 June 2008 (UTC)

Category:Geohashers by Sex

I think this template could be used to fill in a Geohashers by Sex category (or would that scare off all the Fs?). While we're at it, maybe also a Geohashers by Age. -- Moose Hole 00:10, 20 June 2008 (UTC)

Ok I put in the gender category. The age one needs a conditional for the birthdate thing, so I'll have to figure out exactly how that works I guess. -- Moose Hole 19:06, 7 July 2008 (UTC)
I removed it for now, as I don't think such a two-group division is necessary. Category:Geohashers groups together everyone with {{asg}, while the graticule categories group together by logical geographical means. Age might indeed be nice (if lumped into larger groups), but I just don't think a gender category is politically correct in this day and age, nor is it overly practical. --Tim P 19:17, 7 July 2008 (UTC)
Fair enough. We should have an algorithm that converts birthdates to age, and also groups age into groups, probably decades would be most convenient for grouping. -- Moose Hole 19:19, 7 July 2008 (UTC)
That would indeed be possible. Right now I'm working on automating Main Page, but I can definitely put this on my list of things to look into. Perhaps something like Geohashers in their 20s, and then sort by the second digit in the age? IMHO, that'd be nifty, and totally doable on my part... --Tim P 19:22, 7 July 2008 (UTC)

Dynamic Width?

Hey I made my own copy of this template so that I could make it slightly wider so I could put some smart-ass thing in the S field. Would it be possible/feasible to estimate the width needed for this template by counting the characters or evaluating each character, since the font isn't fixed-width? -- Moose Hole 20:13, 7 July 2008 (UTC)