扩展:Amp

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:Amp and the translation is 50% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎中文 • ‎日本語
MediaWiki扩展手册
Crystal Clear action run.svg
Amp
发布状态: 测试
实现 Tag
描述 创建用于MediaWiki的Amp页面
作者 Nischay Nahata (Nischayn22talk)
最新版本 0.1 (2017-11-21)
MediaWiki 1.27+
PHP 5.3+
数据更新
许可协议 MIT License
下载
README
翻译Amp扩展如果在translatewiki.net可用
检查使用和版本矩阵。

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.

安装

  • Download文件,并将其放置在您extensions/文件夹中的Amp目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'Amp' );
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

开发与帮助

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