Template:TlDeprecate/doc: Difference between revisions
Jump to navigation
Jump to search
imported>Caesar Schinas (New page: This template is meant to be used to mark other templates as deprecated.<br /> It shows a standard message and adds the templates to Category:Templates/Deprecated. '''Note''': ''This...) |
imported>Caesar Schinas m (stop this page from showwing up in the category...) |
||
Line 11: | Line 11: | ||
;Standard notice | ;Standard notice | ||
<code><nowiki><noinclude>{{TlDeprecate}}</noinclude></nowiki></code> | <code><nowiki><noinclude>{{TlDeprecate}}</noinclude></nowiki></code> | ||
{{TlDeprecate}} | <includeonly>{{TlDeprecate}}</includeonly> | ||
;Custom notice | ;Custom notice | ||
<code><nowiki><noinclude>{{TlDeprecate|It is preferable to use {{tl|TlDoc}} instead.}}</noinclude></nowiki></code> | <code><nowiki><noinclude>{{TlDeprecate|It is preferable to use {{tl|TlDoc}} instead.}}</noinclude></nowiki></code> | ||
{{TlDeprecate|It is preferable to use {{tl|TlDoc}} instead.}} | <includeonly>{{TlDeprecate|It is preferable to use {{tl|TlDoc}} instead.}}</includeonly> |
Revision as of 04:28, 17 May 2009
This template is meant to be used to mark other templates as deprecated.
It shows a standard message and adds the templates to Category:Templates/Deprecated.
Note: This page is not deprecated; just those on which the template is used!
Usage
The code <noinclude>{{TlDeprecate}}</noinclude>
should be placed at the top of the page, outside any other noinclude
or includeonly
tags.
There is an optional parameter which changes the text of the last line. It is recommended that this be used to specify alternatives to using the deprecated template.
Example
- Standard notice
<noinclude>{{TlDeprecate}}</noinclude>
- Custom notice
<noinclude>{{TlDeprecate|It is preferable to use {{tl|TlDoc}} instead.}}</noinclude>