Fandom Developers Wiki
Advertisement

Shows some stats about a page.

Syntax

  • {{#invoke:pagestats|main|page=pagename|stats=option}}

Where option can be any or all of following (separated by commas):

  • templates
  • words
  • tables
  • references
  • links


Example

{{#invoke:pagestats|main|stats=words}} ->

StatsCount
words85

Notes

  • This is expensive ONLY if the {{{page}}} parameter refers to another page.
  • If the {{{page}}} parameter is omited it will assume current page.
  • This page name is confused with Pagestat.

Documentation

Package items

Pagestats:main() (function)
Pagestat string output.
Returns: Wikitable with pagestats. (string)
Usage: p.main(page='Fandom Developers Wiki',stats='templates') == '<table class="wikitable"><th>Stats</th><th>Count</th><tr></tr><td>templates</td><td>3</td></table>'

Advertisement