跳转到内容

模板:Incompatible

来自天灾之下:危险连接资料站
wiki>Shirayuki2025年11月29日 (六) 12:12的版本 (Marked this version for translation)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)


模板文档

Usage

{{Incompatible}}

Optional parameters

  • reason= – Reason for incompatibility (PHP errors, incompatible dependency, etc.).
    • 1= – Can be used alternatively to reason=.
  • alternative= – If you would like to list a possible alternative extension.
  • version= – Version of MediaWiki extension is incompatible with, if other than current stable version (1.45) - such as an upcoming release
  • pledge= – MediaWiki.org username (~~~~) of developer pledging to fix compatibility issues
  • nocat=yes – Do not add page to Category:Incompatible extensions - for demo purposes and not actual use.

Examples

Lua错误:expandTemplate: template loop detected。

With a reason

Lua错误:expandTemplate: template loop detected。

Showing a alternative

{{Incompatible|alternative={{ll|Extension:Cite}}
*{{ll|Extension:Poem}}}}

Lua错误:expandTemplate: template loop detected。

Version

{{Incompatible|version=1.20}}

Lua错误:expandTemplate: template loop detected。

Pledge

{{Incompatible|pledge=~~~~}}

Lua错误:expandTemplate: template loop detected。

Wrappers

The following wrapper templates based on {{Incompatible }} can be used to mention specific reasons for incompatibility:

{{WgParser }}
It uses the $wgParser variable, which was removed (1.39+)
{{Hooks::Run }}
It uses the Hooks::run method, which was removed (1.42+)
{{DB MASTER }}
Uses the DB_MASTER constant, which was removed (1.43+)
{{Linktarget incompatible }}
Never properly updated to reference the linktarget table (1.45+)
{{XML incompatible }}
Uses removed XML methods (1.45+)