[OSM-talk] Image of the week points to wrong week

Pierre Béland infosbelas-gps at yahoo.fr
Tue Jan 1 19:26:25 GMT 2013


Thanks Erik, the image is back.


 
Pierre 



>________________________________
> De : Erik Lundin <erik at lists.lun.nu>
>À : talk at openstreetmap.org 
>Envoyé le : Mardi 1 janvier 2013 14h11
>Objet : Re: [OSM-talk] Image of the week points to wrong week
> 
>Another way to get the week number that's not zero-padded is to bring 
>back the {{CURRENTWEEK}}, but then different syntaxes are mixed, which 
>is a bit ugly. I did this as a workaround just to get it working, but 
>we'll have to figure out the best long term solution.
>
>Regards,
>Erik
>
>2013-01-01 19:52, Erik Lundin skrev:
>> There was an edit [1] to get the correct year belonging to this week,
>> since week number 1 of 2013 started before year 2012 ended. There is a
>> syntax for this in MediaWiki, see [2]. However, the trouble seems to be
>> that using that syntax, the week number is only available zero-padded,
>> while the images have names that aren't zero-padded. I guess the easiest
>> solution is to rename "Template:Iotw image/2013-1" to "Template:Iotw
>> image/2013-01".
>>
>> Regards,
>> Erik
>>
>> [1]
>> http://wiki.openstreetmap.org/w/index.php?title=Template:Image_of_the_week&diff=prev&oldid=848636
>>
>> [2] http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time
>>
>> 2013-01-01 19:35, Pierre Béland skrev:
>>> In page http://wiki.openstreetmap.org/wiki/Main_Page, Image of the week
>>> points to Template:Iotw image/2013-2.
>>> <http://wiki.openstreetmap.org/w/index.php?title=Template:Iotw_image/2013-2&action=edit&redlink=1>
>>>
>>>
>>> The first week image do not appear today. Is this the zero day bug?
>>> Somebody nows how to correct?
>>> Pierre
>>>
>>>
>>> _______________________________________________
>>> talk mailing list
>>> talk at openstreetmap.org
>>> http://lists.openstreetmap.org/listinfo/talk
>>>
>>
>> _______________________________________________
>> talk mailing list
>> talk at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk
>
>_______________________________________________
>talk mailing list
>talk at openstreetmap.org
>http://lists.openstreetmap.org/listinfo/talk
>
>
>
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20130101/820d3cfb/attachment.html>


More information about the talk mailing list