Template:TlDeprecate: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Caesar Schinas
mNo edit summary
imported>Caesar Schinas
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><br /><br />
<includeonly>
<span style="color:red; font-style:italic; font-weight:bold; font-size:1.5em;">WARNING</span><br />
<div style="border:3px solid #900; background: #fdd; padding:0.25em 0.75em 0; margin:1em 0 5em;">
<span style="color:red; font-style:italic; font-weight:bold; font-size:1.5em; line-height:1.5em;">WARNING</span><br />
'''This template is deprecated.''' ''Please do not use it.''<br />
'''This template is deprecated.''' ''Please do not use it.''<br />
{{{1|It is possible to obtain the same result using other templates or simple code.}}}<br /><br />
{{{1|It is possible to obtain the same result using other templates or simple code.}}}
[[Category:Templates/Deprecated]]
</div>
{{#ifeq:{{BASEPAGENAME}}|TlDeprecate||[[Category:Templates/Deprecated|{{BASEPAGENAME}}]]}}
</includeonly><noinclude>{{TlDoc}}</noinclude>
</includeonly><noinclude>{{TlDoc}}</noinclude>

Latest revision as of 04:25, 2 June 2009

This documentation is transcluded from Template:TlDeprecate/doc (edit | history)

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>

WARNING
This template is deprecated. Please do not use it.
It is possible to obtain the same result using other templates or simple code.


Custom notice

<noinclude>{{TlDeprecate|It is preferable to use {{tl|TlDoc}} instead.}}</noinclude>

WARNING
This template is deprecated. Please do not use it.
It is preferable to use {{TlDoc}} instead.