Difference between revisions of "Template:ASG"

From Geohashing
imported>Tjtrumpet2323
(100+)
 
(21 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
<includeonly>{{ #if: {{{age|}}} | {{#vardefine:age|{{{age}}}}} | {{#vardefine:age|{{age|{{{Y|{{CURRENTYEAR}}}}}|{{{m|{{CURRENTMONTH}}}}}|{{{d|{{CURRENTDAY2}}}}}}}}} }}<!--
 
<includeonly>{{ #if: {{{age|}}} | {{#vardefine:age|{{{age}}}}} | {{#vardefine:age|{{age|{{{Y|{{CURRENTYEAR}}}}}|{{{m|{{CURRENTMONTH}}}}}|{{{d|{{CURRENTDAY2}}}}}}}}} }}<!--
  
--><div style="border: 1px solid #ddd; float: right; font-size: 20px; width: {{{width|238px}}};">[[Image:Lol-asg.png|60px]] {{#var:age}} / {{{gender}}} / [[{{{lat}}},{{{lon}}}]]</div><!--
+
--><div style="border: 1px solid #ddd; float:{{#if:{{{float|}}}|{{{float}}}|right}}; font-size: 20px; width: {{{width|238px}}}; clear:{{{clear|none}}}">[[Image:Lol-asg.png|60px]] {{#var:age}} / {{{gender|-}}} / [[{{{lat}}},{{{lon}}}]]</div><!--
  
 
-->{{#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: User:{{SUBPAGENAME}} | {{FULLPAGENAME}} | [[Category:Geohashers|{{PAGENAME}}]]{{#iferror:{{#expr:{{#var:age}}}}|[[Category:Geohashers of indeterminate age]]|{{#ifexpr:{{#var:age}}>=100|[[Category:Geohashers aged 100 or more|{{#var:age}}]]|{{#ifexpr:{{#var:age}}>=0|[[Category:Geohashers in their {{#expr:{{#var:age}} - ({{#var:age}} mod 10)}}s|{{#expr:{{#var:age}} mod 10}}_{{PAGENAME}}]]|[[Category:Geohashers of indeterminate age]]}}}}}}[[Category:Geohashers in {{{lat}}},{{{lon}}}|{{PAGENAME}}]] }}
 
}}<!--
 
}}<!--
  
 
--></includeonly><noinclude><!--
 
--></includeonly><noinclude><!--
  
-->{{ASG|Y=1988|m=01|d=04|gender=m|lat=40|lon=-79}}
+
-->{{ASG|Y=1988|m=01|d=04|gender=m|lat=40|lon=-79|float=right}}
 
'''a/s/g: It's like a/s/l, only more elite.'''
 
'''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 [[User:chrisinajar|chrisinajar]] for the idea.)
+
Let people know your age, sex (well, actually your gender), and graticule with this little template. (Blame [[User:chrisinajar|chrisinajar]] for the idea.)
  
 
== Usage ==
 
== Usage ==
<code><nowiki>{{ASG|Y=1985|m=08|d=15|gender=m|lat=40|lon=-79}}</nowiki></code>
+
<code><nowiki>{{ASG|Y=1985|m=08|d=15|gender=m|lat=40|lon=-79|float=right}}</nowiki></code>
 
* '''Age:''' Automatically calculated from your provided birthdate.
 
* '''Age:''' Automatically calculated from your provided birthdate.
 
** ''Y'', ''m'', and ''d'' parameters refer respectively to the year, month, and day of your 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: <code><nowiki>{{ASG|age=23|gender=m|lat=38|lon=-78}}</nowiki></code>, but don't forget to change it when you get older!
 
** For the privacy-conscious, you can manually set your age: <code><nowiki>{{ASG|age=23|gender=m|lat=38|lon=-78}}</nowiki></code>, but don't forget to change it when you get older!
* '''Sex:''' Taken as <code>m</code> or <code>f</code> from the ''gender'' parameter.
+
* '''Sex:''' Whatever you put for the ''gender'' parameter. For most folks, this will be <code>m</code> or <code>f</code>.
* '''Graticule:''' Presents a link to ''lat,lon'', which may require a redirect page. ''See [[#Caveats|Caveats]].''
+
* '''Graticule:''' Presents a link to ''lat,lon''.
 +
* '''Float: (optional)''' - the default is '''right''' - '''left''' and '''none''' are also allowed.
  
 
=== Tweaks ===
 
=== 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., <code>width=300px</code> or <code>width=27em</code>.
 
* 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., <code>width=300px</code> or <code>width=27em</code>.
 +
* If you're using the <code>float</code> argument, and it's floating ''beside'' your images (instead of above or below), try adding <code>clear=both</code>. Ask [[User:SIGSTKFLT|SIGSTKFLT]] or anyone competent in CSS for help.
  
 
== Why? ==
 
== Why? ==
* It will help with stats analysis! Theoretically. (Y'know, as soon as someone actually writes a bot to do it.)
+
* It will help with stats analysis! We've already got [[:Category:Geohashers by age|age-grouped categories]] and some [[maps and statistics]].
* 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, and what pronouns they might prefer. 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.
+
* We have an IRC bot ([[User:relet/Shmulik|Shmulik]]) that can use this template to gather information for easy lookup during chat.
 
+
[[Category:Userboxes]]
== 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! [[Please don't create this fake page|38,-78]]<!-- don't fake this red link with styles, some people will be using different skins --> 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: <pre><nowiki>#REDIRECT [[Shenandoah Valley, Virginia]]</nowiki></pre>
 
# Magic: [[38,-78]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 15:57, 29 October 2021

Lol-asg.png 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, actually your gender), and graticule with this little template. (Blame chrisinajar for the idea.)

Usage

{{ASG|Y=1985|m=08|d=15|gender=m|lat=40|lon=-79|float=right}}

  • 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: Whatever you put for the gender parameter. For most folks, this will be m or f.
  • Graticule: Presents a link to lat,lon.
  • Float: (optional) - the default is right - left and none are also allowed.

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 or width=27em.
  • If you're using the float argument, and it's floating beside your images (instead of above or below), try adding clear=both. Ask SIGSTKFLT or anyone competent in CSS for help.

Why?

  • It will help with stats analysis! We've already got age-grouped categories and some maps and statistics.
  • It's nice to be able to look up someone's username and get some general idea of who and where they are, and what pronouns they might prefer. This just extends that into a standard format.
  • We have an IRC bot (Shmulik) that can use this template to gather information for easy lookup during chat.