Template:Deprecated/doc: Difference between revisions
More actions
m Reverted edits by 208.87.236.201 (talk) to last revision by Sarang |
m -typos (de) |
||
| Line 4: | Line 4: | ||
|1label-de = Vorlage 1 | |1label-de = Vorlage 1 | ||
|1d = First template that can be used as a replacement. | |1d = First template that can be used as a replacement. | ||
|1d-de = Erste Vorlage, die als Ersatz verwendet | |1d-de = Erste Vorlage, die als Ersatz verwendet werden kann. | ||
|1type = wiki-template-name | |1type = wiki-template-name | ||
|1def = | |1def = | ||
| Line 13: | Line 13: | ||
|2label-de = Vorlage 2 | |2label-de = Vorlage 2 | ||
|2d = Second template that can be used as a replacement. | |2d = Second template that can be used as a replacement. | ||
|2d-de = Zweite Vorlage, die als Ersatz verwendet | |2d-de = Zweite Vorlage, die als Ersatz verwendet werden kann. | ||
|2type = wiki-template-name | |2type = wiki-template-name | ||
|2def = | |2def = | ||
| Line 22: | Line 22: | ||
|3label-de = Parameter 1 | |3label-de = Parameter 1 | ||
|3d = Parameters of the first replacement template | |3d = Parameters of the first replacement template | ||
|3d-de = Parameter der ersten zum Ersatz | |3d-de = Parameter der ersten zum Ersatz vorgesehenen Vorlage | ||
|3type = content | |3type = content | ||
|3def = | |3def = | ||
| Line 31: | Line 31: | ||
|4label-de = Parameter 2 | |4label-de = Parameter 2 | ||
|4d = Parameters of the Second replacement template | |4d = Parameters of the Second replacement template | ||
|4d-de = Parameter der zweiten zum Ersatz | |4d-de = Parameter der zweiten zum Ersatz vorgesehenen Vorlage | ||
|4type = content | |4type = content | ||
|4def = | |4def = | ||
| Line 63: | Line 63: | ||
|name = Deprecated | |name = Deprecated | ||
|desc = To mark templates that are deprecated. It should go at the very beginning of the deprecated template's code inside of <nowiki><noinclude></nowiki> tags. | |desc = To mark templates that are deprecated. It should go at the very beginning of the deprecated template's code inside of <nowiki><noinclude></nowiki> tags. | ||
|desc-de = Mit dieser Vorlage können veraltete Vorlagen markiert | |desc-de = Mit dieser Vorlage können veraltete Vorlagen markiert werden. Sie soll am Anfang des Vorlagen-Codes stehen und mit <nowiki><noinclude></nowiki> markiert werden. | ||
|desc-fr = Pour marquer les modèles dépéréciés. It doit aller au tout début du code du modèle, entre des balises | |desc-fr = Pour marquer les modèles dépéréciés. It doit aller au tout début du code du modèle, entre des balises | ||
|desc-ja = 廃止されるテンプレートに印をつけ、誤用を防ぐためのテンプレートです。このテンプレート・コードの書き位置は、廃止されるテンプレート・コードの<nowiki><noinclude></nowiki>タグ内部の一番上に記述するべきです。 | |desc-ja = 廃止されるテンプレートに印をつけ、誤用を防ぐためのテンプレートです。このテンプレート・コードの書き位置は、廃止されるテンプレート・コードの<nowiki><noinclude></nowiki>タグ内部の一番上に記述するべきです。 | ||
| Line 71: | Line 71: | ||
|usage-notes = {{LangSwitch | |usage-notes = {{LangSwitch | ||
|en=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). | |en=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). | ||
|de=Wenn eine Vorlage durch eine andere (oder zwei) ersetzt wurde, kann der | |de=Wenn eine Vorlage durch eine andere (oder zwei) ersetzt wurde, kann der Vorlagenname als Parameter ohne die Vorlage eingegeben werden: -Präfix ein. (Der zweite Parameter kann für eine zweite Vorlage verwendet werden.) | ||
|ja=印をつけると同時に、利用を推奨するテンプレート名をお知らせすることができます。推奨するテンプレート名を第一パラメーターに入力します(第二パラメーターは2つめのテンプレートがある場合に利用します)。このときテンプレート名には接頭語「Template: 」を含めずに入力してください。 | |ja=印をつけると同時に、利用を推奨するテンプレート名をお知らせすることができます。推奨するテンプレート名を第一パラメーターに入力します(第二パラメーターは2つめのテンプレートがある場合に利用します)。このときテンプレート名には接頭語「Template: 」を含めずに入力してください。 | ||
}} | }} | ||
Revision as of 17:25, 11 October 2020
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:
- Category:Deprecated templates
- Category:Maint:Deprecated template usage or its subcategories
Usage
{{Deprecated |1= |2= |p= |2p= |note= |cat= }}
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).
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Template 1 | First template that can be used as a replacement. | empty | optional |
2 | Template 2 | Second template that can be used as a replacement. | empty | optional |
p | Parameter 1 | Parameters of the first replacement template | empty | optional |
2p | Parameter 2 | Parameters of the Second replacement template | empty | optional |
note | Note | Supplementary note text | empty | optional |
cat | category | categorization option (when template is used):
| default | optional |
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
Relies on:
- Parameter "cat="
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
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.