Template:Obsolete: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (spacing fix?)
(Changed Obsolete template to change text to specify entity, tool or shader depending on parameter, documented usage)
Line 1: Line 1:
{{messagebox
{{messagebox
|text = This object 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.
|image = [[File:obsolete.png|40px|link=]]
|image = [[File:obsolete.png|40px|link=]]
|bdcolor = #F4C430
|bdcolor = #F4C430
}}[[Category:Obsolete Entities]]
}}
<noinclude>[[Category:Notice templates|{{PAGENAME}}]]</noinclude>
<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.
<code><nowiki>{{obsolete|entity=1}}</nowiki></code>
: Specifies that the page is an entity. Result below.
{{obsolete|entity=1}}
<code><nowiki>{{obsolete|tool=1}}</nowiki></code>
: Specifies that the page is a tool. Result below.
{{obsolete|tool=1}}
<code><nowiki>{{obsolete|shader=1}}</nowiki></code>
: Specifies that the page is a shader. Result below.
{{obsolete|shader=1}}</noinclude>

Revision as of 11:21, 9 June 2019

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.

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