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
m -typos (de)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 16: Line 16:
   |2type              = wiki-template-name
   |2type              = wiki-template-name
   |2def              =  
   |2def              =  
   |2stat              = optional
   |2stat              = optional-


   |3                  = p
   |3                  = p
Line 25: Line 25:
   |3type              = content
   |3type              = content
   |3def              =  
   |3def              =  
   |3stat              = optional
   |3stat              = optional-


   |4                  = 2p
   |4                  = 2p
Line 34: Line 34:
   |4type              = content
   |4type              = content
   |4def              =  
   |4def              =  
   |4stat              = optional
   |4stat              = optional-


   |5                  = note
   |5                  = note
Line 43: Line 43:
   |5type              = string
   |5type              = string
   |5def              =  
   |5def              =  
   |5stat              = optional
   |5stat              = optional-


   |6                  = cat
   |6                  = cat
   |6label            = category
   |6label            = category
   |6label-de            = Kategorie
   |6label-de            = Kategorie
   |6d                = categorization option (when template is used):
   |6d                = set to "cat=-" to skip categorization
* empty: no categorization
* default:  categorization {{C|Maint:Deprecated template usage}}
* <code>string</code>:  categorization "Maint:<code>string</code>"
    |6d-de              = Kategorisierungsoption (wenn die Vorlage transkludiert wird):
* leer: no categorization
* default: Kategorisierung {{C|Maint:Deprecated template usage}}
* <code>string</code>: Kategorisierung "Maint:<code>string</code>"
 
   |6type              = string
   |6type              = string
   |6def              = default
   |6def              =  
   |6stat              = optional
   |6stat              = optional-


   |name              = Deprecated
   |name              = Deprecated
Line 70: Line 62:
   |placement          = top
   |placement          = top
   |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).<br>
 
|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.)
|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: 」を含めずに入力してください。
Line 97: Line 90:
* {{tl|Empty category}}
* {{tl|Empty category}}
* {{tl|Update}}
* {{tl|Update}}
* {{tl|Superseded}}
   |setscats          =  
   |setscats          =  
* [[:Category:Deprecated templates]]
* [[:Category:Deprecated templates]] - for templates
* [[:Category:Maint:Deprecated template usage]] or its subcategories
* [[:Category:Deprecated template usage]] - for other pages
   |print              = one
   |print              = one
   |shorthand          =  
   |shorthand          =  
   |relieson          =<br>
   |relieson          =
;Parameter "cat=":
 


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