Extension:IDisplay/zh

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki扩展手册
OOjs UI icon advanced.svg
iDisplay
发布状态: 未维护
实现 解析器函数
描述 Allows to display external websites in an iframe and allows to put a page before the site to prevent loading the site.
作者 Dominik Sigmundtalk
维护者 User:BrentLaabstalk
最新版本 1.9 (2016年12月)
MediaWiki 1.17+
许可协议 GNU通用公眾授權條款2.0或更新版本
下载
翻译IDisplay扩展如果在translatewiki.net可用
检查使用和版本矩阵。

Template:Extension/archived

The iDisplay extension allows MediaWiki pages to embed external web pages. It also allows setting an option to put a blocking page in front of it, so you prevent loading the page until the user wants to load the page.

Parser functions[edit]

The extension has one parser function:

  • #idisplay displays a webpage.

Installation[edit]

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

Usage[edit]

To display pages call the following:

{{#iDisplay:URL|WIDTH|HEIGHT|SAFE}} 

Explanation:

  • The URL you want to display
  • The WIDTH of the iFrame
  • The HEIGHT of the iFrame
  • If SAFE == 1 then there will be the blocking page in between.

For example:

{{#iDisplay:http://my.example.com/interesting-page|100%|600}}

You do not need to define all parameters, but you must keep the order!

页面拟合[edit]

You might cannot get the iframe to fit the page. A guest user suggested this workaround / fix:

Paste this code into your "common.css" page ("MediaWiki:Common.css")

iframe {
	width: 100% !important;
	height: * !important;
	min-width: 600px;
	min-height: 500px;
}

Source

参见[edit]