Difference between revisions of "Template:Cleanup/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Paine Ellsworth
imported>Aircorn
(update days to May and add an April date to test older tags)
Line 6: Line 6:
  
 
<pre>
 
<pre>
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=April 2012}}
+
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=May 2012}}
{{Cleanup/sandbox|date=April 2012}}
+
{{Cleanup/sandbox|date=may 2012}}
 
</pre>
 
</pre>
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=April 2012|nocat=true}}
+
{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=May 2012|nocat=true}}
{{Cleanup/sandbox|date=April 2012|nocat=true}}
+
{{Cleanup/sandbox|date=May 2012|nocat=true}}
  
 
These should not produce any clean-up categories on this page, if the template works correctly.
 
These should not produce any clean-up categories on this page, if the template works correctly.
Line 16: Line 16:
 
==== Test of {{TL|Cleanup}} ====
 
==== Test of {{TL|Cleanup}} ====
 
<pre>
 
<pre>
{{Cleanup|reason=Lorem ipsum dolor sit amet|date=April 2012}}
+
{{Cleanup|reason=Lorem ipsum dolor sit amet|date=May 2012}}
{{Cleanup|date=April 2012}}
+
{{Cleanup|date=May 2012}}
 
</pre>
 
</pre>
{{Cleanup|reason=Lorem ipsum dolor sit amet|date=April 2012|nocat=true}}
+
{{Cleanup|reason=Lorem ipsum dolor sit amet|date=May 2012|nocat=true}}
{{Cleanup|date=April 2012|nocat=true}}
+
{{Cleanup|date=May 2012|nocat=true}}
  
 
These should not produce any clean-up categories on this page, if the template works correctly.  
 
These should not produce any clean-up categories on this page, if the template works correctly.  
Line 38: Line 38:
  
 
<pre>
 
<pre>
{{Cleanup/sandbox|Lorem ipsum dolor sit amet|date=April 2012}}
+
{{Cleanup/sandbox|Lorem ipsum dolor sit amet|date=May 2012}}
 
</pre>
 
</pre>
{{Cleanup/sandbox|Lorem ipsum dolor sit amet|date=April 2012|nocat=true}}
+
{{Cleanup/sandbox|Lorem ipsum dolor sit amet|date=May 2012|nocat=true}}
  
 
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:  
 
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:  
Line 50: Line 50:
  
 
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!
 
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|Lorem ipsum dolor sit amet|date=April 2012}}
 +
</pre>
 +
{{Cleanup/sandbox|Lorem ipsum dolor sit amet|date=April 2012|nocat=true}}

Revision as of 08:05, 22 April 2012

  1. REDIRECT Template:Testcases notice
  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

Sandbox vs. live version

Test of Template:TL

{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet|date=May 2012}}
{{Cleanup/sandbox|date=may 2012}}



These should not produce any clean-up categories on this page, if the template works correctly.

Test of Template:TL

{{Cleanup|reason=Lorem ipsum dolor sit amet|date=May 2012}}
{{Cleanup|date=May 2012}}

These should not produce any clean-up categories on this page, if the template works correctly.


Test of missing reason parameter only

{{Cleanup/sandbox}}
{{Cleanup}}


These should not produce any clean-up categories on this page, if the template works correctly.

Test of reason without |reason=

{{Cleanup/sandbox|Lorem ipsum dolor sit amet|date=May 2012}}


In 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:

{{Cleanup/sandbox|disambiguation page|reason=Lorem ipsum dolor sit amet|date=April 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

{{Cleanup/sandbox|Lorem ipsum dolor sit amet|date=April 2012}}