Difference between revisions of "Template:Delete"

From Yugipedia
Jump to: navigation, search
(manually restore based on entries in the #recent-changes Discord channel)
 
(38 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<div name="Deletion notice" class="boilerplate metadata" id="delete" style="background-color: #fee; margin: 0 2.5%; padding: 0 10px; border: 1px solid #aaa;">
+
{{ #vardefine: $delete-reason | {{ #if: {{{reason|}}} | {{{reason}}} | {{{1|}}} }}
'''This page is a candidate for deletion, because: <font style="background:transparent;padding:2px">''{{{1|<big><span style="color:#c00">NO REASON GIVEN</span></big>}}}''</font>'''
+
}}{{ #vardefine: $delete-reason | {{ #replace: {{ #replace: {{ #replace: {{ #var: $delete-reason }} | {{!((}}File | {{!((}}:File }} | {{!((}}Image | {{!((}}:File }} | {{!((}}Category | {{!((}}:Category }}
 +
}}{{mbox
 +
| name  = Delete
 +
| subst = <includeonly>{{subst:substcheck}}</includeonly>
 +
| small = {{{small|}}}
 +
| date  = {{{date|}}}
  
If you disagree with this page's deletion, please explain why on [[{{NAMESPACE}} talk:{{PAGENAME}}|its talk page]]. If this page obviously should not be deleted, or you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
+
| type = delete
{{#if:{{{date|}}}|<p>This page has been marked for deletion since '''{{{date}}}''' {{#if:{{{by|}}}|by [[User:{{{by}}}]]| }}</p>| }}
+
| text = '''This {{namespace name}} is being considered for deletion''' in accordance with Yugipedia's [[Project:Deletion policy|deletion policy]].<br />Please share your thoughts on the matter on the [[{{ #if: {{{discussion|}}} | {{{discussion}}} | {{TALKPAGENAME}} }}|discussion page]].{{ #if: {{ #var: $delete-reason }}
<small class="plainlinks">''[[Special:Listadmins|Administrators]], remember to check [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|if anything links here]] and [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=history}} the page history] ([{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|diff=0}} last edit]) before deleting''</small>
+
    | <br />'''Reason for deletion:''' <span class="deletereason">{{ #var: $delete-reason }}</span><span id="delete-reason" style="display: none;">{{urlencode:{{ #var: $delete-reason }}}}</span>
</div>
+
  }}<br />'''Do <em style="text-decoration: underline; font-style: normal;">not</em> remove this notice or blank this page.'''<br />
<includeonly>[[Category:Candidates for deletion|{{PAGENAME}}]]</includeonly>
+
<small>[[Special:WhatLinksHere/{{FULLPAGENAMEE}}|What links here]]{{}} [{{fullurl:{{FULLPAGENAMEE}}|action=history}} Page history]<span class="sysop-show">{{}} [{{fullurl:{{FULLPAGENAMEE}}|action=delete{{ #if: {{ #var: $delete-reason }} | &wpReason={{urlencode:{{ #var: $delete-reason }}}} }}}} Delete]</span></small>
<noinclude>
+
}}<includeonly>{{ #if: {{{categories|}}} || [[Category:Candidates for deletion]] }}</includeonly><noinclude>
==Usage==
+
{{Documentation}}
<nowiki> {{delete
+
</noinclude>
  |Reason for deletion
 
  |date = Date marked for deletion (optional)
 
  |by  = Person nominating the page for deletion (optional)
 
}}</nowiki>
 
[[Category:Template|Delete]]</noinclude>
 

Latest revision as of 02:15, 16 September 2023