Template:Obsolete: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Expanded templates in template documentation so that the template itself no longer appears in Obsolete categories, documented a little more)
No edit summary
 
(17 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{messagebox
{{obsolete}}
|text = This {{#if:{{{entity|}}}| entity<includeonly>[[Category:Obsolete Entities]]</includeonly>}}{{#if:{{{tool|}}}| tool<includeonly>[[Category:Obsolete Tools]]</includeonly>}} {{#if:{{{shader|}}}| shader<includeonly>[[Category:Obsolete Shaders]]</includeonly>}} is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
{{obsolete|type=Entity}}
|image = [[File:obsolete.png|40px|link=]]
{{obsolete|type=Tool}}
|bdcolor = #F4C430
{{obsolete|type=Shader|replacement={{ent|Example page link here}}}}
}}
{{obsolete|replacement={{ent|Example page link here}}}}
<noinclude>[[Category:Notice templates|{{PAGENAME}}]]</noinclude>
The above templates show the ''actual'' template, as the doc below always adds the "It may only exist/function in older engine branches" text. But that disappears if any of the "type=" parameters are used.{{todo|is it really supposed to not show the text when any of the parameters are shown? It seems wrong.}}
<noinclude>This template marks a page as obsolete. It has three parameters, used to specify if the page is an entity, a tool, or a shader. This template automatically adds a page to an Obsolete Entites, Obsolete Tools, or Obsolete Shaders category, depending on parameter. If no parameter is specified, the template does not specify what the page is, and it will not be added to any categories.
 
==Usage==
 
<code><nowiki>{{obsolete|entity=1}}</nowiki></code>
{{Translate|type=finish|Submit translations here [[Template:Obsolete/strings]]}}
: Specifies that the page is an entity. Result below.
{{todo|Autocats for each {{param|type}}}}
{{messagebox
<onlyinclude>{{metanotice
|text = This entity is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|text = {{#switch:{{{type|entity}}}
|image = [[File:obsolete.png|40px|link=]]
|entity|Entity={{Obsolete/strings|Entity}}
|bdcolor = #F4C430
|tool|Tool={{Obsolete/strings|Tool}}
}}
|shader|Shader={{Obsolete/strings|Shader}}
<code><nowiki>{{obsolete|tool=1}}</nowiki></code>
|QC command|qc command={{Obsolete/strings|QC command}}
: Specifies that the page is a tool. Result below.
|#default=''invalid type''}} {{Obsolete/strings|IsObsolete}} {{#switch: {{{type|entity}}}|entity|shader|tool={{Obsolete/strings|OldEngine}}}} {{#if:{{{replacement|}}}|<br/><small>{{Obsolete/strings|Replacement_lang}} {{{replacement}}}.</small>|}}
{{messagebox
|id = [[File:Obsolete-notext.png|40px|link=]]
|text = This tool is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|rgb = 244,196,48
|image = [[File:obsolete.png|40px|link=]]
}}</onlyinclude>
|bdcolor = #F4C430
<noinclude>[[Category:Metanotice templates|{{PAGENAME}}]]</noinclude><noinclude>
}}
{{Doc}}
<code><nowiki>{{obsolete|shader=1}}</nowiki></code>
</noinclude>
: Specifies that the page is a shader. Result below.
{{messagebox
|text = This shader is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|image = [[File:obsolete.png|40px|link=]]
|bdcolor = #F4C430
}}</noinclude>

Latest revision as of 10:56, 25 March 2025

Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
Obsolete-notext.png
This entity is obsolete. Its use is discouraged.
Obsolete-notext.png
This tool is obsolete. Its use is discouraged.
Obsolete-notext.png
This shader is obsolete. Its use is discouraged.
It has since been deprecated by: Example page link here.
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
It has since been deprecated by: Example page link here.

The above templates show the actual template, as the doc below always adds the "It may only exist/function in older engine branches" text. But that disappears if any of the "type=" parameters are used.

Todo: is it really supposed to not show the text when any of the parameters are shown? It seems wrong.


Info content.png
This page has not been fully translated.
You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
The following content or section specifically needs to be translated:
Submit translations here Template:Obsolete/strings
Todo: Autocats for each {{{type}}}
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.

This template marks a page as obsolete. It has three parameters, used to specify if the page is an entity, a tool, or a shader. This template automatically adds a page to an Obsolete Entites, Obsolete Tools, or Obsolete Shaders category, depending on parameter. If no parameter is specified, the template does not specify what the page is, and it will not be added to any categories.

Usage

{{obsolete|type=entity}}

Specifies that the page is an entity. Result below.
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

{{obsolete|type=tool}}

Specifies that the page is a tool. Result below.
Obsolete-notext.png
This tool is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

{{obsolete|type=shader}}

Specifies that the page is a shader. Result below.
Obsolete-notext.png
This shader is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

{{obsolete|replacement=<text>}}

Indicates a newer entity, tool, or shader that has been introduced to replace this. For example, {{obsolete|entity=1|replacement={{ent|func_brush}}}} would produce:
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
It has since been deprecated by: func_brush.