<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">Thanks Erik, the image is back.<br><div><span><br></span></div><div> </div><div><span style="font-style:italic;color:rgb(0, 0, 191);font-weight:bold;">Pierre <br></span><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">De :</span></b> Erik Lundin <erik@lists.lun.nu><br> <b><span style="font-weight: bold;">À :</span></b> talk@openstreetmap.org <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Mardi 1 janvier 2013 14h11<br> <b><span style="font-weight: bold;">Objet :</span></b> Re:
[OSM-talk] Image of the week points to wrong week<br> </font> </div> <br>Another way to get the week number that's not zero-padded is to bring <br>back the {{CURRENTWEEK}}, but then different syntaxes are mixed, which <br>is a bit ugly. I did this as a workaround just to get it working, but <br>we'll have to figure out the best long term solution.<br><br>Regards,<br>Erik<br><br>2013-01-01 19:52, Erik Lundin skrev:<br>> There was an edit [1] to get the correct year belonging to this week,<br>> since week number 1 of 2013 started before year 2012 ended. There is a<br>> syntax for this in MediaWiki, see [2]. However, the trouble seems to be<br>> that using that syntax, the week number is only available zero-padded,<br>> while the images have names that aren't zero-padded. I guess the easiest<br>> solution is to rename "Template:Iotw image/2013-1" to "Template:Iotw<br>> image/2013-01".<br>><br>> Regards,<br>>
Erik<br>><br>> [1]<br>> <a href="http://wiki.openstreetmap.org/w/index.php?title=Template:Image_of_the_week&diff=prev&oldid=848636" target="_blank">http://wiki.openstreetmap.org/w/index.php?title=Template:Image_of_the_week&diff=prev&oldid=848636</a><br>><br>> [2] <a href="http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time" target="_blank">http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time</a><br>><br>> 2013-01-01 19:35, Pierre Béland skrev:<br>>> In page <a href="http://wiki.openstreetmap.org/wiki/Main_Page" target="_blank">http://wiki.openstreetmap.org/wiki/Main_Page</a>, Image of the week<br>>> points to Template:Iotw image/2013-2.<br>>> <<a href="http://wiki.openstreetmap.org/w/index.php?title=Template:Iotw_image/2013-2&action=edit&redlink=1"
target="_blank">http://wiki.openstreetmap.org/w/index.php?title=Template:Iotw_image/2013-2&action=edit&redlink=1</a>><br>>><br>>><br>>> The first week image do not appear today. Is this the zero day bug?<br>>> Somebody nows how to correct?<br>>> Pierre<br>>><br>>><br>>> _______________________________________________<br>>> talk mailing list<br>>> <a ymailto="mailto:talk@openstreetmap.org" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>>> <a href="http://lists.openstreetmap.org/listinfo/talk" target="_blank">http://lists.openstreetmap.org/listinfo/talk</a><br>>><br>><br>> _______________________________________________<br>> talk mailing list<br>> <a ymailto="mailto:talk@openstreetmap.org" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>> <a href="http://lists.openstreetmap.org/listinfo/talk"
target="_blank">http://lists.openstreetmap.org/listinfo/talk</a><br><br>_______________________________________________<br>talk mailing list<br><a ymailto="mailto:talk@openstreetmap.org" href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/listinfo/talk" target="_blank">http://lists.openstreetmap.org/listinfo/talk</a><br><br><br> </div> </div> </blockquote></div> </div></body></html>