Template:Obsolete: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{WIP|[[User:Equalizer5118|Equalizer5118, an idiot who cant spel]] ([[User talk:Equalizer5118|talk]]) 09:28, 17 August 2023 (PDT)|Revamping text to make strings template possible.}}
{{Translate|Everything really, it would be beneficial to use a strings subpage}}
{{Translate|Everything really, it would be beneficial to use a strings subpage}}
<onlyinclude>{{metanotice
<onlyinclude>{{metanotice
|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.{{#if:{{{replacement|}}}|<br/><small>It has been replaced by {{{replacement}}}.</small>}}
|text = This {{{type|entity}}} is [[Obsolete]]. Its use is discouraged{{#switch: {{{type|entity}}|entity|shader|tool=, and it may only exist/function in older engine branches}}. {{#if:{{{replacement|}}}|<br/><small>It has since been replaced by {{{replacement}}}|}}
|id = [[File:Obsolete-notext.png|40px|link=]]
|id = [[File:Obsolete-notext.png|40px|link=]]
|rgb = 244,196,48
|rgb = 244,196,48
}}</onlyinclude><noinclude>[[Category:Notice templates|{{PAGENAME}}]]</noinclude><noinclude>
}}</onlyinclude><noinclude>[[Category:Metanotice templates|{{PAGENAME}}]]</noinclude><noinclude>
{{Doc}}
{{Doc}}
</noinclude>
</noinclude>

Revision as of 09:28, 17 August 2023

Template:WIP

Info content.png
This template needs translations.
This template does not contain translations for the most popular languages.
If you are fluent in one of these languages, please help out by translating the text inside this template. This can be done by using the {{language}} template where appropriate.
Also, please make sure the article complies with the alternate languages guide.
The following content or section specifically needs to be translated:
Everything really, it would be beneficial to use a strings subpage
Obsolete-notext.png
This entity is Obsolete. Its use is discouraged.
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.

{{obsolete|type=tool}}

Specifies that the page is a tool. Result below.
Obsolete-notext.png
This tool is Obsolete. Its use is discouraged.

{{obsolete|type=shader}}

Specifies that the page is a shader. Result below.
Obsolete-notext.png
This shader is Obsolete. Its use is discouraged.

{{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 has since been replaced by func_brush