Khác biệt giữa bản sửa đổi của “Bản mẫu:Biểu đồ thống kê truy cập”

Nội dung được xóa Nội dung được thêm vào
Yurik (thảo luận | đóng góp)
sync from mw.org, removed hours, always use UTC days (hour=00), might help with phab:T133495
Yurik (thảo luận | đóng góp)
updated from mediawiki
Dòng 7:
// The graph uses PageViews API https://wikitech.wikimedia.org/wiki/Analytics/PageviewAPI
//
// NOTE: There is a URL-encoding limitation in MediaWiki that breaks page titles with quotes and a few more special symbols.
// To fix it, make sure there is a copy of Module:Graph present (copy it as is from de.wikipedia.org/wiki/Module:Graph)
 
"version": 2,
Hàng 18 ⟶ 20:
"url": "wikirest://wikimedia.org/api/rest_v1/metrics/pageviews/{{#ifeq: {{{2|}}} | _ | aggregate | per-article }}/{{trim|{{#ifeq: {{{3|{{SERVERNAME}}}}} | www.mediawiki.org | mediawiki.org | {{{3|{{SERVERNAME}}}}} }}}}/{{{platform|all-access}}}/user/{{#ifeq: {{{2|}}} | _
| {{{granularity | monthly}}}
| {{#ifexist: Module:Graph | {{#invoke:Graph|encodeTitleForPath|{{{2|{{ARTICLEPAGENAME}}}}}}} | {{urlencode:{{{2|{{ARTICLEPAGENAME}} }}}|PATH}} }}/daily
}}/{{#time: Ymd | -{{{1|30}}} days }}00/{{#time: Ymd }}00",
"format": {