Module:Pvi-month-count-value

Hello, you have come here looking for the meaning of the word Module:Pvi-month-count-value. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:Pvi-month-count-value, but we will also tell you about its etymology, its characteristics and you will know how to say Module:Pvi-month-count-value in singular and plural. Everything you need to know about the word Module:Pvi-month-count-value you have here. The definition of the word Module:Pvi-month-count-value will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:Pvi-month-count-value, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module is used on MediaWiki:Pvi-month-count-value to produce a link to a pageviews graph whenever you go to the page information (e.g. https://en.wiktionary.orghttps://en.wiktionary.org/w/index.php?title=bee&action=info).


local export = {}

function export.main(frame)
	local viewcount = frame.args
	local pagename = frame.args
	local today = os.date("*t")

	-- Get the year and month one month ago.
	local year = today
	local month = today - 1
	if month == 0 then
		month = 12
		year = year - 1
	end

	return ""
end

return export