Difference between revisions of "Template:Deleted template/doc"

From blackwiki
Jump to navigation Jump to search
imported>Rd232
(Created page with '{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> This template provides a way to delete templates but still retain them ...')
 
imported>Rd232
Line 2: Line 2:
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
<!-- Categories and interwikis go at the bottom of this page. -->
  
This template provides a way to delete templates but still retain them for the purpose of correctly displaying old revisions of pages.
+
<code><nowiki>{{Deleted template}}</nowiki></code> 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 <code><nowiki>{{Deleted template}}</nowiki></code> 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.
  
 
=== Usage ===
 
=== Usage ===

Revision as of 05:40, 12 February 2011

{{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.

Usage

The template takes 3 compulsory parameters:

  1. 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.
  2. template name
  3. 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

  1. 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.

See also