扩展:Amp

This page is a translated version of the page Extension:Amp and the translation is 56% complete.
Other languages:
Deutsch • ‎English • ‎Türkçe • ‎español • ‎français • ‎magyar • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
Amp
发布状态: 测试
实现 标签
描述 创建用于MediaWiki的Amp页面
作者 Nischay Nahata (Nischayn22talk)
最新版本 0.1 (2017-11-21)
MediaWiki 1.27+
PHP 5.3+
数据庫更新
许可协议 MIT授權條款
下载
README
检查使用和版本矩阵。

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.

安装

  • 下载文件,并将其放置在您extensions/文件夹中的Amp目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'Amp' );
    
  •   完成 – 在您的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.