வார்ப்புரு:Deprecated/doc
This is a documentation subpage for வார்ப்புரு:Deprecated. It contains usage information, categories and other content that is not part of the original வார்ப்புரு page. |
Usage
[தொகு]Marks a template as deprecated (i.e. do not use this template from now on). Existing templates may be replaced by a suitable replacement.
This template will only be visible (by default) in the Template namespace. If the template is wrapped in <noinclude> tags, it will not be able to categorise instance of the template.
Example
[தொகு]{{deprecated|See the replacement: {{tl|new template}}}}
This template has been deprecated. See the replacement: {{new template}} |
Categorisation
[தொகு]Deprecate templates, template with this template, will be sorted into Category:Deprecated templates.
Pages that use deprecated templates will be sorted into the maintenance category, Category:Pages containing deprecated templates. This function will only work if the {{deprecated}} template is transcluded with the rest of the deprecated template code (ie. it is not omitted by the use of <noinclude> or <includeonly> tags).
Display in all namespaces
[தொகு]To display a warning in other namespaces (to more easily determine where in a page a deprecated template is being used), add the following to your common.css:
.deprecated-template-warning { display:inline!important }