Difference between revisions of "Template:Cleanup/testcases"

From blackwiki
Jump to navigation Jump to search
imported>LightandDark2000
m (Reverted edits by 2402:3A80:D3E:C447:1724:D31B:47:6308 (talk) to last version by Jdaloner)
(Blanked the page)
Line 1: Line 1:
{{Template test cases notice}}
 
  
== Sandbox vs. live version ==
 
 
=== Test of {{Tl|Cleanup/sandbox}} ===
 
====Before April 2012====
 
<pre>
 
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=February 2012}}
 
</pre>
 
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=February 2012}}
 
 
<pre>
 
{{Cleanup/sandbox|date=February 2012}}
 
</pre>
 
{{Cleanup/sandbox|date=February 2012}}
 
 
<pre>
 
{{Cleanup/sandbox|disambiguation page|date=February 2012}}
 
</pre>
 
{{Cleanup/sandbox|disambiguation page|date=February 2012}}
 
====April 2012====
 
<pre>
 
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=April 2012}}
 
</pre>
 
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=April 2012}}
 
 
<pre>
 
{{Cleanup/sandbox|date=April 2012}}
 
</pre>
 
{{Cleanup/sandbox|date=April 2012}}
 
 
<pre>
 
{{Cleanup/sandbox|disambiguation page|date=April 2012}}
 
</pre>
 
{{Cleanup/sandbox|disambiguation page|date=April 2012}}
 
 
====After April 2012====
 
<pre>
 
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=May 2012}}
 
</pre>
 
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=May 2012}}
 
 
<pre>
 
{{Cleanup/sandbox|date=May 2012}}
 
</pre>
 
{{Cleanup/sandbox|date=May 2012}}
 
 
<pre>
 
{{Cleanup/sandbox|disambiguation page|date=May 2012}}
 
</pre>
 
{{Cleanup/sandbox|disambiguation page|date=May 2012}}
 
 
====No date specified====
 
<pre>
 
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet}}
 
</pre>
 
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet}}
 
 
<pre>
 
{{Cleanup/sandbox}}
 
</pre>
 
{{Cleanup/sandbox}}
 
 
<pre>
 
{{Cleanup/sandbox|disambiguation page}}
 
</pre>
 
{{Cleanup/sandbox|disambiguation page}}
 
 
=== Test of {{Tl|Cleanup}} ===
 
<pre>
 
{{Cleanup|reason=Lorem ipsum dolor sit amet|date=May 2012}}
 
{{Cleanup|date=May 2012}}
 
</pre>
 
{{Cleanup|reason=Lorem ipsum dolor sit amet|date=May 2012}}
 
{{Cleanup|date=May 2012}}
 
 
----
 
 
=== Test of missing reason parameter only ===
 
 
<pre>
 
{{Cleanup/sandbox}}
 
{{Cleanup}}
 
</pre>
 
{{Cleanup/sandbox}}
 
{{Cleanup}}
 
 
These should not produce any clean-up categories on this page, if the template works correctly.
 
 
=== Test of reason without {{para|reason}} ===
 
 
<pre>
 
{{Cleanup/sandbox|Lorem ipsum dolor sit amet|date=May 2012}}
 
</pre>
 
 
{{Cleanup/sandbox|Lorem ipsum dolor sit amet|date=May 2012}}
 
 
In [[Template talk:Cleanup#Implementing mandatory reason field|the discussion]], it was shown that flipping the unnamed parameter on a template that exists on many pages may not be a good idea.  Here's an example:
 
 
<pre>
 
{{Cleanup/sandbox|disambiguation page|reason=Lorem ipsum dolor sit amet|date=May 2012}}
 
</pre>
 
{{Cleanup/sandbox|disambiguation page|reason=Lorem ipsum dolor sit amet|date=May 2012}}
 
 
The real reason for cleanup will disappear, and the type of page, which is at present specified by the unnamed parameter, will become the reason!
 
 
=== Test of old tags with no reason ===
 
 
<pre>
 
{{Cleanup/sandbox|date=April 2012}}
 
</pre>
 
{{Cleanup/sandbox|date=April 2012}}
 

Revision as of 14:30, 16 July 2019