Extension:MobileFrontendContentProvider

The MobileFrontendContentProvider extension allows developers to make MediaWiki ignore the database and use HTTP APIs to access wiki page content. At the time of writing it can only be used for read only views.

Setup
MobileFrontendContentProvider was previously part of Extension:MobileFrontend. It can be configured locally to render articles from other MediaWiki instances. See this YouTube demo video

This can help you debug problems locally instead of importing articles which may have dependencies on various templates and Wikibase identifiers from production to your local instance.

This extension is a developer tool and is not recommended for production usage.

View another project
The code below will turn your local MediaWiki site into a Wikivoyage viewer:

This is particularly useful for testing different mobile skins in Extension:MobileFrontend using the wgMFDefaultSkinClass config option.

Testing Parsoid content
The extension can be used to test content from the Parsoid parser.

Local content
In some cases you may want to be able to test both local and foreign content. When enabled local content will be used if it exists. When disabled it will always be ignored.