Extension:Amp

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎español • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Amp
Release status: beta
Implementation Tag
Description Creates Amp pages for MediaWiki
Author(s) Nischay Nahata (Nischayn22talk)
Latest version 0.1 (2017-11-21)
MediaWiki 1.27+
PHP 5.3+
Database changes No
License MIT License
Download
README
Translate the Amp extension if it is available at translatewiki.net
Check usage and version matrix.

The Amp extension automagically creates Amp or Accelerated Mobile Pages for your MediaWiki Articles. The Amp project is created by Google to enable mobile-first viewing experience for readers. These pages are cached by Google's CDN and can be loaded instantly. To learn more about Amp visit their website

To enable amp for a page add <amp/> anywhere in the wikitext of the pages.

Installation[edit]

  • Download and place the file(s) in a directory called Amp in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'Amp' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Development and Help[edit]

Amp has been written by Nischay Nahata. Please contact him for consulting on further developments, feature requests or bug fixes on this extension.