Template:DeprecatedAPI: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '<center><div style="width: 98%; background-color:#F5D0A9; border:1px solid #FAAC58; padding: 10px; text-align: left;">{{Font|This {{{1}}} has been deprecated and may be removed i…')
 
No edit summary
Line 1: Line 1:
<center><div style="width: 98%; background-color:#F5D0A9; border:1px solid #FAAC58; padding: 10px; text-align: left;">{{Font|This {{{1}}} has been deprecated and may be removed in future versions of the Synthesis API. Do not use it in new applications. We recommend using {{{2}}} going forward.|10|Calibri|Normal|#8A4B08}}
<center><div style="width: 98%; background-color:#F5D0A9; border:1px solid #FAAC58; padding: 10px; text-align: left;">{{Font|This {{{1}}} has been deprecated and may be removed in future versions of the Synthesis API. Do not use it in new applications. We recommend using {{{2}}} going forward.|10|Calibri|Normal|#8A4B08}}
</div></center><noinclude>[[Category: Templates]]</noinclude>
</div></center><noinclude>[[Category: Templates]]{{DeprecatedAPI/documentation}}</noinclude>

Revision as of 21:13, 8 July 2015

This {{{1}}} has been deprecated and may be removed in future versions of the Synthesis API. Do not use it in new applications. We recommend using {{{2}}} going forward.


Template Documentation

This boilerplate template is for use with deprecated Synthesis API methods. It inserts a text box that alerts the reader to the deprecated status of the call. (Deprecated means that the method call is marked for removal in future versions of the API.)


Usage

This template has 2 optional string parameters:

1 = Allows you to indicate whether the deprecated call is a class or enumeration. The default value is "method."
2 = Allows you to append additional text to the message in the text box.

For example, the following code shows how to use the 1st parameter:

{{Template:DeprecatedAPI|class}}

The code output is as follows:

This class has been deprecated and may be removed in future versions of the Synthesis API. Do not use it in new applications. We recommend using {{{2}}} going forward.


The next example shows how to use the 2nd parameter:

{{Template:DeprecatedAPI|2=Blah Blah Blah.}}

The code output is as follows:

This {{{1}}} has been deprecated and may be removed in future versions of the Synthesis API. Do not use it in new applications. We recommend using Blah Blah Blah. going forward.


Related Templates

Template:DeprecatedAPIpic - This template is for use with in-line text. It inserts a label that says "Deprecated".