Template:Obsolete: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Add replace parameter)
m (Fixed image not showing)
Line 2: Line 2:
|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.
|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.
|small={{#if:{{{replacement|}}}|It has been replaced by {{{replacement}}}.}}
|small={{#if:{{{replacement|}}}|It has been replaced by {{{replacement}}}.}}
|image = [[File:obsolete.png|40px|link=]]
|image = [[File:Obsolete.png|40px|link=]]
|bdcolor = #F4C430
|bdcolor = #F4C430
}}<noinclude>[[Category:Notice templates|{{PAGENAME}}]]</noinclude><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.
}}<noinclude>[[Category:Notice templates|{{PAGENAME}}]]</noinclude><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.
Line 10: Line 10:
{{messagebox
{{messagebox
|text = This entity is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|text = This entity is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|image = [[File:obsolete.png|40px|link=]]
|image = [[File:Obsolete.png|40px|link=]]
|bdcolor = #F4C430
|bdcolor = #F4C430
}}
}}
Line 17: Line 17:
{{messagebox
{{messagebox
|text = This tool is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|text = This tool is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|image = [[File:obsolete.png|40px|link=]]
|image = [[File:Obsolete.png|40px|link=]]
|bdcolor = #F4C430
|bdcolor = #F4C430
}}
}}
Line 24: Line 24:
{{messagebox
{{messagebox
|text = This shader is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|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=]]
|image = [[File:Obsolete.png|40px|link=]]
|bdcolor = #F4C430
|bdcolor = #F4C430
}}
}}
Line 32: Line 32:
|text = This entity is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|text = This entity is '''obsolete'''; its use is discouraged and it may only exist/function in older engine branches.
|small = It has been replaced by [[func_brush]].
|small = It has been replaced by [[func_brush]].
|image = [[File:obsolete.png|40px|link=]]
|image = [[File:Obsolete.png|40px|link=]]
|bdcolor = #F4C430
|bdcolor = #F4C430
}}
}}
</noinclude>
</noinclude>

Revision as of 03:59, 8 January 2023

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|entity=1}}

Specifies that the page is an entity. Result below.

{{obsolete|tool=1}}

Specifies that the page is a tool. Result below.

{{obsolete|shader=1}}

Specifies that the page is a shader. Result below.

{{obsolete|replacement=<text>}}

Indicates a newer entity, tool, or shader that has been introduced to replace this. For example, {{obsolete|entity=1|replacement=[[func_brush]]}} would produce: