This page is a translated version of the page Template:Deprecated and the translation is 40% complete.
Outdated translations are marked like this.
模板文档

示例

  • {{Deprecated|1.20.0}}
  • {{Deprecated|1.20.0|Optional message}}
  • {{Deprecated|1.20.0|newvarname=$IP|newvarlink=Special:MyLanguage/Manual:$IP}}

Copy and paste template

{{Deprecated
|replacement =
|1 =
|newvarlink =
|version =
|2 =
|newvarname =
|nocat =
|name = 
}}

Template data

[查看 · 讨论 · 编辑]

这是该模板的模板数据,用于可视化编辑器及其它工具。

Deprecated

Used to mark a feature as deprecated.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
replacementreplacement

used to identify the kind of deprecated page. Allowed values are mw (for a MediaWiki release) or an extension name, or empty.

Suggested values
mw extensionName
Default
empty
Stringoptional
varVersion1

identifies old MW version of this deprecated item.

Stringoptional
newvarlinknewvarlink

link which identifies a replacement page (if exists).

Default
Manual:{newvarname}
URLoptional
mwVersionversion

identifies the new version of MediaWiki when the deprecated function was moved to core

Stringoptional
optText2

free additional text

Default
none
Example
Legacy.
Stringoptional
newvarnamenewvarname

page name of Manual: namespace identifying newvarlink

Stringoptional
nocatnocat

when defined this flag means NOT to assign the page to Category:MediaWiki deprecated or obsolete features

Default
empty
Example
nocat=1
Booleanoptional
namename

text to display with the category message (validated by nocat)

Default
empty
Stringoptional