Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Deprecated/doc: Difference between revisions

Template page
update
No edit summary
 
(16 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{TemplateBox
  |1                  = 1
  |1label            = Template 1
    |1label-de          = Vorlage 1
  |1d                = First template that can be used as a replacement.
    |1d-de              = Erste Vorlage, die als Ersatz verwendet werden kann.
  |1type              = wiki-template-name
  |1def              =
  |1stat              = optional


{{incat|Deprecated templates}}
  |2                  = 2
=={{int:usage}}==
  |2label            = Template 2
{{LangSwitch
    |2label-de          = Vorlage 2
|en=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.<br/>
  |2d                = Second template that can be used as a replacement.
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).
    |2d-de              = Zweite Vorlage, die als Ersatz verwendet werden kann.
  |2type              = wiki-template-name
  |2def              =
  |2stat              = optional-


|de=Zum Markieren von veralteten Vorlagen. Der Vorlage-Code sollte am oberen Rand des veralteten Vorlage-Codes innerhalb des <nowiki><noinclude></nowiki> -Tag stehen.<br/>
  |3                  = p
Wenn eine Vorlage durch eine andere (oder zwei) ersetzt wurde, gebe einfach die Vorlagennamen als Parameter ohne den Template: -Präfix ein.
  |3label            = Parameter 1
    |3label-de         = Parameter 1
  |3d                = Parameters of the first replacement template
    |3d-de              = Parameter der ersten zum Ersatz vorgesehenen Vorlage
  |3type              = content
  |3def              =
  |3stat              = optional-


|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 <nowiki><noinclude></nowiki>
  |4                  = 2p
}}
  |4label            = Parameter 2
    |4label-de          = Parameter 2
  |4d                = Parameters of the Second replacement template
    |4d-de              = Parameter der zweiten zum Ersatz vorgesehenen Vorlage
  |4type              = content
  |4def              =
  |4stat              = optional-


==Examples==
  |5                  = note
  |5label            = Note
  |5label-de            = Hinweis
  |5d                = Supplementary note text
    |5d-de              = Ergänzender Hinweistext
  |5type              = string
  |5def              =
  |5stat              = optional-


<nowiki>{{</nowiki>deprecated|template}} → {{deprecated|template|category=}}
  |6                  = cat
  |6label            = category
  |6label-de            = Kategorie
  |6d                = set to "cat=-" to skip categorization
  |6type              = string
  |6def              =
  |6stat              = optional-


<nowiki>{{</nowiki>deprecated|template|2nd template}} → {{deprecated|template|2nd template|category=}}
  |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-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-ja            = 廃止されるテンプレートに印をつけ、誤用を防ぐためのテンプレートです。このテンプレート・コードの書き位置は、廃止されるテンプレート・コードの<nowiki><noinclude></nowiki>タグ内部の一番上に記述するべきです。
  |namespace          = Template
  |usergroup          = all
  |placement          = top
  |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).<br>


<nowiki>{{</nowiki>deprecated|template|p=parameter}} {{deprecated|template|p=parameter|category=}}
|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: 」を含めずに入力してください。
}}
  |type              = marker
  |example            = template
  |example-value      = {{Deprecated|template|test=y}}</div>


<nowiki>{{</nowiki>deprecated|note=Customized note.}} {{deprecated|note=Customized note.|category=}}
{{Tlf|deprecated|template|2nd template}}
{{deprecated|template|2nd template|category=|test=y}}


<nowiki>{{</nowiki>deprecated|template|p=<nowiki><nowiki>a=b|c=d</nowiki></nowiki>|2nd template|2p=e|note=Customized note.}} {{deprecated|template|p=<nowiki>a=b|c=d</nowiki>|2nd template|2p=e|note=Customized note.|category=}}
{{Tlf|deprecated|template|p&#61;parameter}}
{{deprecated|template|p=parameter|category=|test=y}}


{{Tlf|deprecated|note&#61;Customized note.}}
{{deprecated|note=Customized note.|category=|test=y}}


<includeonly>
{{Tlf|deprecated|template|p&#61;&lt;nowiki&gt;a&#61;b|c&#61;d&lt;/nowiki&gt;|2nd template|2p&#61;e|note&#61;Customized note.}}
[[Category:Marker templates|{{PAGENAME}}]]
{{deprecated|template|p=<nowiki>a=b|c=d</nowiki>|2nd template|2p=e|note=Customized note.|category=|test=y}}
[[Category:Template namespace templates|{{PAGENAME}}]]
<div>
  |i18n-method        = autotranslate
  |i18n-desc          =
  |i18n-mediawiki-msg =
  |i18n-subpage      =
  |seealso            =
* {{tl|Empty category}}
* {{tl|Update}}
* {{tl|Superseded}}
  |setscats          =
* [[:Category:Deprecated templates]] - for templates
* [[:Category:Deprecated template usage]] - for other pages
  |print              = one
  |shorthand          =
  |relieson          =


[[de:Vorlage:Veraltete Vorlage]]
}}<includeonly>
[[en:Template:Tdeprecated]]
[[Category:Internationalised marker templates]]
[[es:Plantilla:Plantilla en desuso]]
[[Category:Template namespace templates]]
[[hsb:Předłoha:Zestarjena předłoha]]
[[it:Template:Template obsoleto]]
[[ka:თარგი:თმოძველდა]]
[[ja:Template:移行中のテンプレート]]
[[sq:Stampa:Stampa të vjetruar]]
[[sl:Predloga:Todsvetovana]]
[[tr:Şablon:Geçersizş]]
</includeonly>
</includeonly>

Latest revision as of 14:04, 3 July 2024

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).

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
catcategoryset to "cat=-" to skip categorizationemptyoptional

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

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

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.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.