A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Proofread_Page/Lua_reference below:

Extension:Proofread Page/Lua reference - MediaWiki

This page documents the latest version of the ProofreadPage extension. Some features may not be deployed yet.

On a MediaWiki wiki with ProofreadPage and Scribunto enabled, a Lua module is provided which allows access to certain features and information about pages in the Index and Page namespaces.

local index = mw.ext.proofreadPage.newIndex( 'Foobar.djvu' )
mw.log( index.pageCount )
Expensive functions[edit]

Some functions result in a database lookup and are classed as "expensive". Expensive lookups are cached where possible, so repeated access to the same data is "free" after the first lookup.

Note that there are several "types" of expensive data: first access to each of these is a new expensive lookup:

Constants and functions[edit]

Access an object representing an index object with the mw.ext.proofreadPage.newIndex function:

local index = mw.ext.proofreadPage.newIndex( 'Foobar.djvu' )

The argument can be a string or an mw.title object.

Fields and methods[edit]

The Index object has the following fields:

All fields are read-only.

Access an object representing an index object with the newPage function:

local page = mw.ext.proofreadPage.newPage( 'Foobar.djvu/1' )

The argument can be a string or an mw.title object.

Fields and methods[edit]

The Page object has the following fields:

All fields are read-only.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4