Template:Cleanup/testcases

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history

Template:Template test cases notice

Sandbox vs. live version[edit source]

=== Test of {{Cleanup/sandbox}}

{{Cleanup/sandbox}} ===

Before April 2012[edit source]

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


{{Cleanup/sandbox|date=February 2012}}


{{Cleanup/sandbox|disambiguation page|date=February 2012}}

April 2012[edit source]

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


{{Cleanup/sandbox|date=April 2012}}


{{Cleanup/sandbox|disambiguation page|date=April 2012}}


After April 2012[edit source]

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


{{Cleanup/sandbox|date=May 2012}}


{{Cleanup/sandbox|disambiguation page|date=May 2012}}


No date specified[edit source]

{{Cleanup/sandbox|reason=Lorem ipsum dolor sit amet}}


{{Cleanup/sandbox}}

You must add a |reason= parameter to this Cleanup template - replace it with {{Cleanup|reason=<Fill reason here>}}, or remove the Cleanup template.


{{Cleanup/sandbox|disambiguation page}}

You must add a |reason= parameter to this Cleanup template - replace it with {{Cleanup|disambiguation page|reason=<Fill reason here>}}, or remove the Cleanup template.


=== Test of {{Cleanup}}

{{Cleanup}} ===

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

Test of missing reason parameter only[edit source]

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

You must add a |reason= parameter to this Cleanup template - replace it with {{Cleanup|reason=<Fill reason here>}}, or remove the Cleanup template.

Please provide a reason. {{Cleanup|reason=}}.

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

Test of reason without |reason=[edit source]

{{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=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[edit source]

{{Cleanup/sandbox|date=April 2012}}