missing
Template documentation
Examines the age of a given pageviews file based on the calendar date of the last data line in the file, and returns one of four strings: 1) 'missing' if there is no pageviews file; 2) empty string if the file is present and up-to-date; 3) 'stale' if it is older than param 2 or the default staleness value (30) if param 2 is absent; or 4) 'aging' if it is older than param 2 or the aging default (7) if absent.
Usage
{{xviews/pvstatus}}
{{xviews/pvstatus|pageviews file}}
{{xviews/pvstatus||days}}
{{xviews/pvstatus|pageviews file|days}}
Parameters
|1=
– name of a Talk subpage containing page views data dumped from the pageviews tool (optional; default: pageviews subpage of the current page).
|2=
– number of days threshold (optional; default: 30)
Examples
{{xviews/pvstatus|Talk:Liberation of France/pageviews}}
→ stale{{xviews/pvstatus|Talk:Liberation of France/pageviews|0}}
→ stale{{xviews/pvstatus|Talk:World War II/pageviews}}
→ stale{{xviews/pvstatus|Talk:NO SUCH PAGENAME/pageviews}}
→ missing
See also
- {{xviews/age}}
- {{xviews/gSTALE}}
- {{xviews/max views}}