Difference between revisions of "Template:Deprecated"
From EVE University Wiki
(That extra ":" was doing something strange) |
(Add text adaptation based on namespace in which the template is used.) |
||
Line 1: | Line 1: | ||
− | {{Color box|color=#723913|border=#d16d2a|'''This article is deprecated and no longer in use.''' <!-- | + | {{Color box |
− | -->{{#if: {{{newinfo|}}} |Please visit {{{newinfo}}} for current info.|There is no replacement information available.}} <!-- | + | |color= #723913 |
+ | |border= #d16d2a | ||
+ | |width= 85% | ||
+ | |align= center | ||
+ | |'''This <noinclude><article / file / template / category / page></noinclude><includeonly>{{#switch: {{NAMESPACENUMBER}} | ||
+ | | 0= article | ||
+ | | 6= file | ||
+ | | 10= template | ||
+ | | 14= category | ||
+ | | #default= page | ||
+ | }}</includeonly> is deprecated and no longer in use.''' <!-- | ||
+ | -->{{#if: {{{1|}}} | ||
+ | |<br>Please visit {{{1}}} for current info. | ||
+ | |{{#if: {{{newinfo|}}} | ||
+ | |<br>Please visit {{{newinfo}}} for current info. | ||
+ | |There is no replacement information available. | ||
+ | }} | ||
+ | }} <!-- | ||
-->{{#if: {{{user|}}} |User: {{{user|}}}|}} | -->{{#if: {{{user|}}} |User: {{{user|}}}|}} | ||
}} | }} | ||
− | <includeonly>[[Category:Deprecated pages]]</includeonly><noinclude> | + | <includeonly>{{#ifeq: {{NAMESPACENUMBER}}|10|[[Category:Deprecated templates]]|[[Category:Deprecated pages]]}}</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 13:43, 20 October 2021
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- This template should be used to show that a page is no longer in use. It may be kept to point towards information not on the wiki, for historical reasons, or may be deleted later.
- In order to ensure correct records are kept, please copy the following format to sign and date the template to verify yourself. While doing so, please replace the parameter
<newinfo>
with a link to current information, if applicable, or otherwise leave it blank:
{{Deprecated|user= ~~~~|<newinfo>}} |
- Adding this template will also add it to the category Deprecated pages or, for templates, add it to the category Deprecated templates.
- This template will automatically adapt its text based on the namespace in which it is used.
Namespace text Main article File file Template template Category category all other page
- Dependencies
- Uses:
- {{Banner}}
- Syntax
- {{Deprecated|<user= name>|<link to new information>}}
- user=
- to indicate who placed the template. Preferably use the 4 tildes (~~~~) which will automatically be replaced by user name, date and time.
- link to new information
- for a link to the new information
- user=
- Sample
gives...{{Deprecated|user= ~~~~|[[Main Page]]}}
This page is deprecated and no longer in use.
Please visit Main Page for current info. User: Evon R'al (talk) 13:13, 20 October 2021 (UTC)
Please visit Main Page for current info. User: Evon R'al (talk) 13:13, 20 October 2021 (UTC)
- See also
{{Deletion}}
, for pages which should be deleted{{Historical}}
, for obsolete pages which should be kept as a historical record{{Update}}
, for pages which should be brought up to date