Template:Stats.grok.se/doc

From MOASSpedia
Jump to navigation Jump to search

Usage

All parameters are optional. Parameters that can be passed are:

  • The page name for which to show visitor traffic (no parameter name is associated with this parameter)
  • year - The year for which to show traffic data (e.g. 2007). If no month is specified then the template will link to data for the entire year.
  • month - The month to be shown (as a number e.g. 1 for January, 12 for December). If no year is specified then the template will link to traffic data for the most recent occurrence of that month (either current year or prior year).
  • lang - The two-letter ISO language code for an international Wikipedia project (e.g. de for German, fr for French). The template will use this data to link to traffic data for other Wikipedia projects.
  • text - Custom text to be used as the link. If this parameter is specified then only this text will be used, and the template will not generate any automated text or date reference.

Examples:

Code Result
Page to show
{{stats.grok.se}} See visitor traffic to this page last month.
{{stats.grok.se | Statistics}} See visitor traffic to Statistics last month.
{{stats.grok.se | Talk:Statistics}} See visitor traffic to Talk:Statistics last month.
Date range
{{stats.grok.se | year=2008}} See visitor traffic to this page during 2008.
{{stats.grok.se | month=2}} See visitor traffic to this page during February.
{{stats.grok.se | Statistics | month=10}} See visitor traffic to Statistics during October.
{{stats.grok.se | Statistics | year=2008 | month=6}} See visitor traffic to Statistics during June 2008.
International Wikipedia
{{stats.grok.se | Statistik | lang=de}} See visitor traffic to Statistik last month on the German-language Wikipedia.
{{stats.grok.se | Tilastotiede | year=2008 | lang=fi}} See visitor traffic to Tilastotiede during 2008 on the Finnish-language Wikipedia.
{{stats.grok.se | Statistics | lang=en}} See visitor traffic to Statistics last month.
Custom link text
{{stats.grok.se | Statistics | text=Custom text}} Custom text
Combining {{stats.grok.se | Statistics | year=2008 | text=the template}} with inline text.. Combining the template with inline text.

The template also accepts an optional plainlinks parameter. Passing true as the value of plainlinks will remove the external link icon from the output:

See also