Difference between revisions of "Template:ASG"

From Geohashing
imported>Tjtrumpet2323
imported>Tjtrumpet2323
(adding decade-based age categorisation)
Line 1: Line 1:
<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: 238px;">[[Image:Lol-asg.png|60px]] {{#var:age}} / {{{gender}}} / [[{{{lat}}},{{{lon}}}]]</div>{{#switch: {{PAGENAME}}
+
<includeonly>{{ #if: {{{age|}}} | {{#vardefine:age|{{{age}}}}} | {{#vardefine:age|{{age|{{{Y|{{CURRENTYEAR}}}}}|{{{m|{{CURRENTMONTH}}}}}|{{{d|{{CURRENTDAY2}}}}}}}}} }}{{#vardefine:decade|{{#expr:{{#var:age}} - ({{#var:age}} mod 10)}}}}
 +
<div style="border: 1px solid #ddd; float: right; font-size: 20px; width: 238px;">[[Image:Lol-asg.png|60px]] {{#var:age}} / {{{gender}}} / [[{{{lat}}},{{{lon}}}]]</div>{{#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>
 
  | ASG/Documentation = <div style="font-size: 90%;">Created by [[User:Phyzome|Phyzome]] and [[User:Tjtrumpet2323|Tjtrumpet2323]].</div>
 
  | ASG/Documentation = <div style="font-size: 90%;">Created by [[User:Phyzome|Phyzome]] and [[User:Tjtrumpet2323|Tjtrumpet2323]].</div>
  | #default = [[Category:Geohashers|{{PAGENAME}}]][[Category:Geohashers in {{{lat}}},{{{lon}}}|{{PAGENAME}}]]
+
  | #default = [[Category:Geohashers|{{PAGENAME}}]][[Category:Geohashers in {{{lat}}},{{{lon}}}|{{PAGENAME}}]][[Category:Geohashers in their {{#var:decade}}s|{{PAGENAME}}]]
 
}}</includeonly><noinclude>{{ASG/Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{ASG/Documentation}}</noinclude>

Revision as of 18:54, 8 July 2008