To get the latest data on a given page on your wiki, with default options, use:
https://pageviews.wmflabs.org/mediaviews?project=commons.wikimedia.org&files={{PAGENAMEE}}
replacing commons.wikimedia.org with a valid project. {{PAGENAMEE}} will resolve to the page the link is placed on Parameters Can be used in any order
- project
-
commons.wikimedia.org(default) or other valid project. - files
-
Escaped file names without the File: namespace prefix, separated by
|characters. Example:Lion_cubs_(Panthera_leo).webm|Example.jpg - range
-
A special range to use instead of exact
startandenddates. May be one of the following:-
latest(default) The last 20 days of data -
latest-Nwhere N is a number. For examplelatest-30will show the last 30 days of data -
currentThe latest available day -
this-weekThis week -
last-weekLast week -
this-monthThis month -
last-monthLast month -
this-yearThis year -
last-yearLast year -
all-timeAll time
-
- start
-
Start date in the format
YYYY-MM-DD.
Omit this parameter and theendparameter to show the most recent data.
Using the formatYYYY-MMwill be treated as the start month, and show monthly data instead of daily.
Useearliestfor the earliest available day. - end
-
End date in the format
YYYY-MM-DD, defaults to previous day.
Using the formatYYYY-MMwill be treated as the end month, and show monthly data instead of daily.
Uselatestfor the latest available day. - referer
-
One of:
all-referers(default),internal,external,search-engine,unknown,none - agent
-
One of
user(human viewer, default),spider(search engine crawlers),automated(automated programs), orall-agents(all types) - autolog
-
Set to
falseto disable automatically setting the "Logarithmic scale" option - mutevalidations
-
Set to
trueto disable warnings from being shown when validating the form. Defaults will still be applied to invalid input as they would normally.