Template:Interactive COVID-19 maps/common and Template:Interactive COVID-19 maps/common/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
WugBot (talk | contribs)
m Updating map start date.
 
scale
 
Line 64: Line 64:
"type": "geopath",
"type": "geopath",
"value": "data",
"value": "data",
"scale": {{#expr:{{{scale|.8}}}*100}},
"scale": {{#expr:{{{scale|.8}}}*1}},
"center": [-180,125],
"center": [-180,125],
"translate": [0,0],
"translate": [0,0],
"projection": "equirectangular"
"projection": "mercator"
},
},
{
{
Line 124: Line 124:
"name": "currentDate",
"name": "currentDate",
// WugBot! humandate
// WugBot! humandate
"init": "May 31",
"init": "Jun 28",
"expr": "timeFormat({{#ifeq:{{CONTENTLANG}}|en|'%B %d %Y'|'%d/%m/%Y'}},scaledHandlePosition)"
"expr": "timeFormat({{#ifeq:{{CONTENTLANG}}|en|'%B %d %Y'|'%d/%m'}},scaledHandlePosition)"
/* %d = day (0-padded), %e = day (unpadded), %B = month name (English in all wikis), %m = month number, %Y = year. */
/* %d = day (0-padded), %e = day (unpadded), %B = month name (English in all wikis), %m = month number, %Y = year. */
/* Any order and characters between them is allowed. */
/* Any order and characters between them is allowed. */
Line 132: Line 132:
"name": "dateStamp",
"name": "dateStamp",
// WugBot! computerdate
// WugBot! computerdate
"init": "05/31/22",
"init": "06/28/21",
"expr": "timeFormat('%m/%d/%y',scaledHandlePosition)"
"expr": "timeFormat('%m/%d/%y',scaledHandlePosition)"
},
},