This page is protected against editing.

Template:Deprecated

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Deprecated/doc.

To mark templates that are deprecated. It should go at the very beginning of the deprecated template's code inside of <noinclude> tags.

The template automatically sets the following categories:

Usage

{{Deprecated |1= }}

When a template is replaced by a different one (or two), simply enter the template's name as the 1st parameter without the Template: prefix (the 2nd parameter can be used for a second template).
It is possible to perform instead a substitute template (with parameters): {{ Deprecated...default = subst_template/parm1/parm2/... }}; example {{Derived}}.

Template parameters

ParameterDescriptionDefaultStatus
1Template 1First template that can be used as a replacement.emptyoptional
2Template 2Second template that can be used as a replacement.emptyoptional
pParameter 1Parameters of the first replacement templateemptyoptional
2pParameter 2Parameters of the Second replacement templateemptyoptional
noteNoteSupplementary note textemptyoptional
catcategorycategorization option (when template is used): defaultoptional
defaultparameterstemplate + parameter(s) for substituting
slash-separated parameter list; 1st=template name
emptyoptional

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

Example

{{Deprecated|template}}

renders as:

{{deprecated|template|2nd template}}
{{deprecated|template|p=parameter}}
{{deprecated|note=Customized note.}}
{{deprecated|template|p=<nowiki>a=b|c=d</nowiki>|2nd template|2p=e|note=Customized note.}}

See also

Localization

Bahasa Indonesia  čeština  dansk  Deutsch  eesti  English  español  Esperanto  français  galego  hrvatski  italiano  lietuvių  magyar  Nederlands  polski  português  português do Brasil  sicilianu  slovenščina  suomi  svenska  Türkçe  Zazaki  български  македонски  русский  српски / srpski  বাংলা  മലയാളം  ไทย  한국어  日本語  简体中文  繁體中文  العربية  فارسی  +/−

This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Deprecated/layout.

To add your language to the list of languages supported by this template, please copy the code of Template:Deprecated/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.