Difference between revisions of "Template:ASG"
From Geohashing
imported>Tjtrumpet2323 |
imported>Tjtrumpet2323 (don't categorise on subpages, only root pages; e.g., userpages) |
||
Line 5: | Line 5: | ||
-->{{#switch: {{PAGENAME}} | -->{{#switch: {{PAGENAME}} | ||
| ASG = <div style="font-size: 90%;">Created by [[User:Phyzome|Phyzome]] and [[User:Tjtrumpet2323|Tjtrumpet2323]].</div> | | ASG = <div style="font-size: 90%;">Created by [[User:Phyzome|Phyzome]] and [[User:Tjtrumpet2323|Tjtrumpet2323]].</div> | ||
− | | #default = [[Category:Geohashers|{{PAGENAME}}]][[Category:Geohashers in their {{#expr:{{#var:age}} - ({{#var:age}} mod 10)}}s|{{#expr:{{#var:age}} mod 10}}]][[Category:Geohashers in {{{lat}}},{{{lon}}}|{{PAGENAME}}]] | + | | #default = {{#ifeq: {{SUBPAGENAME}} | {{PAGENAME}} | [[Category:Geohashers|{{PAGENAME}}]][[Category:Geohashers in their {{#expr:{{#var:age}} - ({{#var:age}} mod 10)}}s|{{#expr:{{#var:age}} mod 10}}]][[Category:Geohashers in {{{lat}}},{{{lon}}}|{{PAGENAME}}]] }} |
}}<!-- | }}<!-- | ||
Line 27: | Line 27: | ||
== Why? == | == Why? == | ||
− | * It will help with stats analysis! Theoretically. | + | * It will help with stats analysis! Theoretically. We've already got [[Category:Geohashers by age|age-grouped categories]]. |
* It's nice to be able to look up someone's username and get some general idea of who and where they are. This just extends that into a standard format. | * It's nice to be able to look up someone's username and get some general idea of who and where they are. This just extends that into a standard format. | ||
* Maybe one day we'll have an IRC bot, script, or plugin that can use this template to gather information for easy lookup during chat. | * Maybe one day we'll have an IRC bot, script, or plugin that can use this template to gather information for easy lookup during chat. |
Revision as of 04:34, 12 July 2008
36 / m / 40,-79
Created by Phyzome and Tjtrumpet2323.
a/s/g: It's like a/s/l, only more elite.
Let people know your age, sex (well, gender), and graticule with this little template. (Blame chrisinajar for the idea.)
Contents
Usage
{{ASG|Y=1985|m=08|d=15|gender=m|lat=40|lon=-79}}
- Age: Automatically calculated from your provided birthdate.
- Y, m, and d parameters refer respectively to the year, month, and day of your birthdate.
- For the privacy-conscious, you can manually set your age:
{{ASG|age=23|gender=m|lat=38|lon=-78}}
, but don't forget to change it when you get older!
- Sex: Taken as
m
orf
from the gender parameter. - Graticule: Presents a link to lat,lon, which may require a redirect page. See Caveats.
Tweaks
- If the default userbox-style width of 238px just isn't doing it for you, you may also specify a CSS-valid width parameter, e.g.,
width=300px
orwidth=27em
.
Why?
- It will help with stats analysis! Theoretically. We've already got.
- It's nice to be able to look up someone's username and get some general idea of who and where they are. This just extends that into a standard format.
- Maybe one day we'll have an IRC bot, script, or plugin that can use this template to gather information for easy lookup during chat.
Caveats
You may need to create the redirect page for your grat's coordinates. Not all graticules have coordinate-based redirects to their page. Here's an example:
- Oh no! 38,-78 is a red link! What shall I do?
- Well, it should go to Shenandoah Valley, Virginia.
- I'll follow the red link and put this in:
#REDIRECT [[Shenandoah Valley, Virginia]]
- Magic: 38,-78