Difference between revisions of "Template:Deleted template/doc"
imported>Rd232 (tweak) |
imported>Rd232 |
||
| Line 31: | Line 31: | ||
<includeonly> | <includeonly> | ||
<!-- Categories and interwikis go here: --> | <!-- Categories and interwikis go here: --> | ||
| − | + | [[Category:Deletion templates]] | |
</includeonly> | </includeonly> | ||
Revision as of 14:53, 12 February 2011
| 40px | This is a documentation subpage for Template:Deleted template. It contains usage information, categories and other content that is not part of the original template page. |
{{Deleted template}} provides a way to delete templates but still retain them for the purpose of correctly displaying old revisions of pages. When using this method to delete a template, all existing transclusions should be removed in the usual way, and {{Deleted template}} added into the template being deleted. This should ensure correct display in old revisions, and a warning when used in a revision postdating the deletion.
Current revisions containing templates deleted in this way (as well as the deleted templates themselves) are automatically categorised in Category:Pages containing deleted templates.
Usage
The template takes 3 compulsory parameters:
- the revision ID of the template at the time of it being deleted.[1] The appropriate URL can be found via the page history - choose a revision close to the time of the conclusion of the Templates for Discussion discussion, if there has been one.
- template name
- date the template was deleted
To use this template, add it at the beginning of the template to be deleted, adding the closing brackets of {{Deleted template}} at the end:
Example:
{{Deleted template|388523941|Example|12 February 2011
Old template
did various things
and possibly other things
}}
Notes
- ↑ The revision ID is the number found in the URL of an old Wikipedia page, for example in
http://en.wikipedia.org/w/index.php?title=Template:Deleted_template&oldid=413284321
the revision ID is 413284321.