Template:Deleted template
Sarna News
- Shadow Of Kerensky Review - Clanners On The Salvage Menu
- In The Shadow Of Kerensky With MechWarrior 5 Narrative Director Chris Lowrey
- Your BattleTech News Round-Up For August, 2025
- Getting BattleTech: Gothic With Herb A. Beas II
- MechWarrior 2: 31st Century Combat’s 30th Anniversary Retrospective
- Read more →
| This template, module and/or subpages are based on or ported over completely to BattleTechWiki, using the Creative Commons Licensed content from this page on Wikipedia (The original authors of this page are shown on here). |
{{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.
Similar templates include {{Deprecated template}} and {{Historical template}}.
Usage[edit]
The template takes 4 parameters, the latter 3 are compulsory parameters:
|1=the revision ID of the template at the time of it being deleted. This parameter is no longer used, and the third parameter (date) is used to decide whether to treat the page like an old revision.|2=template name (withoutTemplate:)|3=14 September 2025date the template was deleted (in format: dd MM yyyy)- the fourth parameter is the output text itself that the template would have generated upon being called or transcluded. Usually its contents should be the entirety of the template to be deleted. However in some cases, the input text is outputted since the original template adapted input text to output garbage in modern-day browsers. So browsing old revisions would give garbage instead of the text.
To use this template, add it at the beginning of the template to be deleted, like {{Deleted template| and add the closing brackets of at the end of the template }}:
Example:
{{Deleted template|388523941|Example|12 February 2011|
Old template
did various things
and possibly other things
}}
- There is also one optional parameter: the
|extra=parameter may be used to add further information at the end of the message. Remember when calling a named parameter like|extra=it must appear after all unnamed parameters, i.e. at the end like|extra=''extra information''}}so, otherwise all unnamed parameters should be called using their 'names' like|1=|2=etc.
Template documentation[edit]
Associated template documentation may be worth retaining, for example for references to alternative templates.
- Use {{hat}}/{{hab}} to collapse usage instructions which are no longer relevant
- Remove any categories (possibly convert them to See Also links)
- Add a {{historical}} template as in this example for {{expand}}:
{{Historical|category=no|brief=yes|comment=This template was [[Template:Deleted template|deprecated]] following deletion discussion archived at [[Wikipedia:Templates_for_discussion/Log/2010_December_16#Template:Expand]]}} - If used with {{Ambox}} which has the
|name=parameter present for the|subst=parameter,|doc=nomust also be passed to {{Ambox}} and <noinclude>{{documentation}}</noinclude> manually placed at the end of the template code.

